sfu-natlang / lensingwikipedia

Lensing Wikipedia is an interface to visually browse through human history as represented in Wikipedia. This the source code that runs the website:
http://lensingwikipedia.cs.sfu.ca
Other
11 stars 4 forks source link

cache all queries in backend #135

Closed anoopsarkar closed 8 years ago

anoopsarkar commented 9 years ago

I was talking with Andrei and the issue of caching all query results was raised. We could use memcache on the server to cache results from whoosh query. Any LRU eviction scheme (as in memcached) would work fine I think.

anoopsarkar commented 9 years ago

Can this be done as an extension of Issue #125?

avacariu commented 9 years ago

The backend will still end up having to query memcached itself. I can wrap the queries to the backend to go through the Flask backend, but I'm not sure if there's much benefit to doing that (although if we want to clean up the codebase it'd be a good idea to have Flask handle all of the HTTP stuff).

anoopsarkar commented 9 years ago

Cleaning up the codebase would be a good idea. As long as the code is modular so that the backend can be connected to another framework easily then having flask handle everything would be good.

avacariu commented 8 years ago

This is fixed in the develop branch.