How to identify unused data store index?

50 views
Skip to first unread message

A. Kong

unread,
Jan 13, 2016, 10:50:16 PM1/13/16
to Google App Engine
Hi all,

Over time I have a number of indexes in the index.yaml . Some of them may be no longer needed because over time my application ceases to make a certain query.

Is there an easy way to identify unused indexes?

Cheers

Christian F. Howes

unread,
Jan 14, 2016, 7:34:35 PM1/14/16
to Google App Engine
I have not found a great way to do that either.  we have a mirrored test server setup that we sometimes delete indexes from and see if anything crashes.  not a great solution though....but aside from exercising all the queries that your code runs there is nothing that can detect if an index is missing.

cfh

Nick (Cloud Platform Support)

unread,
Jan 15, 2016, 12:31:51 PM1/15/16
to Google App Engine
There are really two issues at play here: detecting which of your indexes are under-used, and detecting which indexes are absolutely not used. The first is a matter of profiling, monitoring, logging from your own side, and the second is a matter of running appcfg.py vacuum_indexes to delete any indexes which aren't explicitly mentioned in index.yaml (that is, any indexes which you didn't explicitly code for).

You could make a Feature Request in the Public Issue Tracker for something which could help with this, such as collection of statistics in the Developers Console as to how often an index gets hit in a given time period. 
Reply all
Reply to author
Forward
0 new messages