I’m wrinting a webapp in bottle.
I have a small interface that lets user run sql statements.
Sometimes it takes about 5 seconds until the user get’s a result because the DB is quite big and old.
What I want to do is the following:
1.Starte the query in a thread
2.Give the user a response right away and have ajax poll for the result
There is one thing that I’m not sure of….Where do I store the result of the query?
Should I store it in a DB ?
Should I store it in a variable inside my webapp ?
What do you guys think would be best ?
This would be a good use for something like memcached.