Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Free up storage space: Table "UserQueryBase"

Posted on by 141

Hello,

I am currently working on reducing our storage capacity and one of our top 10 storage cause tables is the "UserQueryBase".

This currently occupies ~8 GB in our production environment. 

Does anyone have experience with this table and can answer the following:

  1. when is this table filled? 
  2. how can this table be reduced?

Many thanks in advance!

  • Verified answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: Free up storage space: Table "UserQueryBase"

    Click on Validate Query after that it will show Record Count in below highlighted part then click on Delete Records:

    pastedimage1674117493909v1.png

  • MichaelFo96 Profile Picture
    MichaelFo96 141 on at
    RE: Free up storage space: Table "UserQueryBase"

    Hello!

    Thank you for your fast answer.

    I would like to try it out in our test instance and loaded the bulk delete tool. I tried to write down the code like you but it doesnt look like on your end. What did I do wrong here?:

    pastedimage1674117249531v1.png

  • Verified answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    RE: Free up storage space: Table "UserQueryBase"

    Hi,

    Please check below link about "User Query Base".

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/userquery?view=dataverse-latest

    1. when is this table filled? 
    Answer- It store the personal views owned by CRM user. 

    2. how can this table be reduced?
    Answer:- You can Bulk Delete Tool of XRMtoolbox with below query
    pastedimage1674115737073v1.png

    Below I have used
    pastedimage1674115841520v2.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans