This is the bug tracker for Photo Organizer.
FS#298 - Add support for memcached
Attached to Project:
Photo Organizer
Opened by Solomon Peachy (pizza) - Friday, 26 October 2007, 13:26 GMT-4
Last edited by Solomon Peachy (pizza) - Thursday, 26 June 2008, 16:18 GMT-4
Opened by Solomon Peachy (pizza) - Friday, 26 October 2007, 13:26 GMT-4
Last edited by Solomon Peachy (pizza) - Thursday, 26 June 2008, 16:18 GMT-4
|
Details http://danga.com/memcached/
It's basically a distributed key=value service. entirely In-RAM. (What happens when it fills? LRU?) Initially, cache things that don't chagne often -- like usernames and folder names/parents but on a random photo page load, we have to hit several times. This isn't a big deal now, but on high-traffic sites it can make quite a difference in performance. Adding general support for this is a bit more complicated, as it would have to sit inbetween the querys and the database, so I'd rather just add it to a few hotspots as needed. |
This task depends upon
Closed by Solomon Peachy (pizza)
Thursday, 26 June 2008, 16:18 GMT-4
Reason for closing: Implemented
Additional comments about closing: There's always room for improvement, but the first parts are there. The search/folder browse improvements are a much more complex problem.
Thursday, 26 June 2008, 16:18 GMT-4
Reason for closing: Implemented
Additional comments about closing: There's always room for improvement, but the first parts are there. The search/folder browse improvements are a much more complex problem.
We could also use it to store session info.
*) userid -> info [un,fn,ln] (called once per page and almost never changes)
*) folderid -> info (and/or 'get_path_to_folder' cache)
*) albumid -> info (and/or 'get_path_to_album' cache)
*) photoid -> keywords
*) photoid -> tech_info
Then:
*) Search results -- the search query return everything, and it gets cached for a short time. we page back and forth from the cache.
locationid -> info added
get_users_folder, get_users_album added
photoid->keywords added
get_path_to_folder, get_path_to_album added