I have created an app using GAE. I am expecting 100k request daily. At present for each request app need to lookup 4 tables and 8 diff columns before performing needed task.
These 4 tables are my master tables having 5k,500, 200 and 30 records. It is under 1 MB (The limit).
Now I want to put my master records in memcache for faster access and reduce RPC call. When any user update master i'll replace the memcache object.
I need community suggestion about this.
Is it OK to change the current design?
How can i put 4 master table data in memcache?
Here is how application works currently
- 100 of users access same application page.
- They provide a unique identification token and 3 more parameters (lets say p1,p2 and p3).
- My servlet recieve the request.
- Application Fetch User Table by token and and check enable state.
- Application fetch another table (say departmment) and check p1 existance. If exists check enable status.
- If above return true, a service table is quried based on parameter p2 to check whether this service is enabled or not for this user and check Service EndDate.
- Based on p3 length another table is checked for availability.