server/querier.py
changeset 2621 1b9d08840a0e
parent 2601 5196d213f4e3
child 2629 0d445c2171e4
equal deleted inserted replaced
2620:de68f84b8f54 2621:1b9d08840a0e
   584 
   584 
   585         to maximize the rql parsing/analyzing cache performance, you should
   585         to maximize the rql parsing/analyzing cache performance, you should
   586         always use substitute arguments in queries (eg avoid query such as
   586         always use substitute arguments in queries (eg avoid query such as
   587         'Any X WHERE X eid 123'!)
   587         'Any X WHERE X eid 123'!)
   588         """
   588         """
   589         if server.DEBUG & (server.DBG_RQL | server.DBG_RQL):
   589         if server.DEBUG & (server.DBG_RQL | server.DBG_SQL):
   590             print '*'*80
   590             if server.DEBUG & server.DBG_MORE:
   591             print 'QUERIER INPUT', rql
   591                 print '*'*80
       
   592             print 'QUERIER INPUT', rql, args
   592         # parse the query and binds variables
   593         # parse the query and binds variables
   593         if eid_key is not None:
   594         if eid_key is not None:
   594             if not isinstance(eid_key, (tuple, list)):
   595             if not isinstance(eid_key, (tuple, list)):
   595                 eid_key = (eid_key,)
   596                 eid_key = (eid_key,)
   596             cachekey = [rql]
   597             cachekey = [rql]