In MySQL you can get the next or previous record based on the key/id.
Anyone know how i can achieve this in app engine (im using python) by only knowing/passing the key? Thanks
In MySQL you can get the next or previous record based on the key/id
Share
Assuming that by ‘next/previous’, you mean ‘the entity with the key that is lexicographically closest to a given key’, yes, you can do this using queries. Supposing your key is in ‘my_key’, and your model is called MyModel, in Python it would work like this: