Closed
Description
Caching API looks really awesome, seems like it will bring big performance gains in my app which has many heavy objects.
One question, is it possible to do two-pass implementation something like:
- Query DB for only object ID and updated_at (lightweight query)
- Send ID + timestamp list for serializer, serializer readies the objects which it has cached and returns the list of only those IDs which are not cached
- Query the DB again for the full objects with ID list from step 2 which aren't cached (heavy query)
- Serializer outputs full set objects from steps 2 (cached) and 3 (heavy query)