MattHeard / Dendrite

Write an interactive adventure story with the rest of the world
MIT License
2 stars 0 forks source link

Reduce number of Datastore read operations. #76

Open MattHeard opened 10 years ago

MattHeard commented 10 years ago
MattHeard commented 10 years ago

First, log messages for every query, create, read, update, and delete.

MattHeard commented 10 years ago

Being logged in appears to cause an approximately 30 extra queries. Why?

MattHeard commented 10 years ago

I have made a spreadsheet with the current number of operations for each action:

https://docs.google.com/spreadsheets/d/18fm1pLCo502Sl2MWKbUQvqnYstClUhza5dprWeeemXQ/edit?usp=sharing

MattHeard commented 10 years ago

When logged in, the /preferences page performs about 142 queries and 70 read operations. WHY?!

MattHeard commented 10 years ago

On the latest test, when /preferences is accessed:

MattHeard commented 10 years ago

Commit 5333546791e12f92188c4b131e73b6fd2ee35ea3 produced the following changes: