1 Feb 21:49
RFP: SQLObject-Web ?
Stef Telford <stef <at> ummon.com>
2009-02-01 20:49:46 GMT
2009-02-01 20:49:46 GMT
Hello Everyone,
Okay.. I have a question. I think (perhaps wrongly but) that most
people are using SQLObject in a web fashion these days. To my limited
sight, the code seems structured to exist in a more non-web fashion.
What do I mean by this ?
*) There is writeLocks - surely not required since most frameworks
run the entire thread under a transaction anyway. Surely these are
therefore, at best, depreciated in a web environment and, at worst,
obsolete. It also makes pickle hard (obviously) cause I have to remove
them from the object before storing into memcache and then assign a
new one after a 'get' (of course, I have to do this with sqlmeta
-anyway-, but at least I can see the reason d'etre with that. very
handy and cool)
*) cache built in at a fundamental level - most web people would
probably feel safer with memcache, currently I don't see anyway to
disable this other than by hacking the get method inside SQLObject to
not put items into it's cache (at least, that's the way I got memcache
to be used and the inbuilt cache never used). Yes, I -can- subclass
the object, but surely the base object should be 'light' and then a
new SQLObject with caching derives from that. This would mean anyone
could subclass from the base object and the FK/Join goodness without
being forced to use SQLObjects caching.
*) no query caching - seems strange to have object caching but no
query caching, when query caching is generally where 'web' starts to
notice major slowness. I have created a simple queryCache using a
global inside the servlet/framework request to do this, and it seems
(Continue reading)



RSS Feed