I am trying to get the list of models in decreasing order of most frequently written models. This is what I have tried so far.This client query set gives the details of models and their attributes/properties, with these model related details : Entity count, Built-in index count, Built-in index size, Data size, Composite index size, Composite index count, Total Size. But there is no detail about write frequencies and/or any analytics about database put() or save() operations.
from google.cloud import datastore
import math
def run_quickstart():
# [START datastore_quickstart]
# Imports the Google Cloud client library
client = datastore.Client()
query = client.query(kind='__Stat_Kind__')
detail_list = []
items = list(query.fetch())
for results in items:
results = results.viewitems()
detail_list.append(results)
print detail_list
if __name__ == '__main__':
run_quickstart()
Does GAE Cloud Datastore provide any such information of database write frequencies? My main objective is to get most busy model/ database table with most writes.