Garbage Collect old persisted queries
jasonbahl opened this issue · comments
When using Automated Persisted Queries, the query documents are stored but never cleaned up, so anytime clients change the documents they're using the old ones stick around.
I believe that Query Documents should update their modified timestamp any time they're executed against, and any document that's not been executed in xx amount of time should be deleted.
Query Documents should be able to be marked as excluded from automatic garbage collection as well.
Thanks for this. I just set up automatic persisted queries in our project yesterday and noticed that the persisted queries list grows pretty quickly as changes to queries are pushed up and was wondering if there was a mechanism to purge them.
If I can beta test or anything just let me know!