Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Switch to NDB #50

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Switch to NDB #50

wants to merge 8 commits into from

Conversation

erlichmen
Copy link

Improvements to how entities are stored and retrieved.
In AppEngine you can assign an entity an id and retrieve it quick later on by using this id.
This way is way faster and cheaper (money wise) then querying for the entity by slug and returning the first item.
This change break the scheme of the entities, you will need to start from scratch or convert somehow your old entities.

I also converted the project to use NDB which is the next DB API of AppEngine, the project gained by that the auto memcache when retrieving entities (by id) and allow me to use parallel queries in various places (using tasklets).

2. Use the slug as the key name of the entity (scheme break)
3. allow passing the slug when creating a service
4. remove the memcache from app.yaml as it comes out of the box now
2. using async query in order to fetch queries in parallel
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant