[csw-devel] SF.net SVN: gar:[21930] csw/mgar/gar/v2/lib/web/pkgdb_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sat Sep 14 17:38:05 CEST 2013
Revision: 21930
http://gar.svn.sourceforge.net/gar/?rev=21930&view=rev
Author: wahwah
Date: 2013-09-14 15:38:05 +0000 (Sat, 14 Sep 2013)
Log Message:
-----------
pkgdb-web: Speed up queries by reducing pkg info
Most clients don't need all that information, and should be able to make
additional queries to find out. The non-quick mode will eventually be removed
entirely.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/web/pkgdb_web.py
Modified: csw/mgar/gar/v2/lib/web/pkgdb_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/pkgdb_web.py 2013-09-14 15:37:57 UTC (rev 21929)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py 2013-09-14 15:38:05 UTC (rev 21930)
@@ -499,7 +499,7 @@
)
try:
srv4 = res.getOne()
- mimetype, data = srv4.GetRestRepr()
+ mimetype, data = srv4.GetRestRepr(quick=True)
web.header('Content-type', mimetype)
return cjson.encode(data)
except sqlobject.main.SQLObjectNotFound:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list