On 7/9/2010 11:08 PM, Dennis Lee Bieber wrote:
On Sat, 10 Jul 2010 06:56:13 +0200, Rene Veerman<rene7...@gmail.com>
declaimed the following in gmane.comp.python.general:

hi.

i'm using this function;


        def dbCacheGet(self, appParams):
                results = db.GqlQuery(
                        "SELECT * "
             "FROM DBcache "
             "WHERE url='"+appParams['urlCalled']+"'"
                ).fetch(1)
                if results.count('*')==0:
                        return None
                else:
                        return results
                

i dont think this will work correctly.
i need a function that returns the complete count in the results variable.

   This is really a Google AppEngine question.  Ask in their support
forums.

   It's worth noting that for many database queries, asking how many
hits there are can cost almost as much as actually retrieving them.

                                John Nagle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to