[google-appengine] Re: this cause an error ,why?

2009-04-08 Thread djidjadji

When there are no '00' in deptId then deptId and deptIdBig are equal.

How can something be >=x AND :
>
>        deptId = self.request.get('deptId','0100')
>        deptIdBig = deptId.replace('00','99')
>
>        personsInfoQuery = db.Query(BS_EMPLOYEE_BASEINFO)
>        PersonsInfo = personsInfoQuery.filter('DEPT_ID >=',
> deptId).filter('DEPT_ID <', deptIdBig).fetch(100,offset=0)
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: this cause an error ,why?

2009-04-08 Thread DiveIntoGAE

you are right,but this is not the main problem.this query exceeds
time, and that is the problem

On 4月8日, 午後3:52, djidjadji  wrote:
> When there are no '00' in deptId then deptId and deptIdBig are equal.
>
> How can something be >=x AND 
> 2009/4/8 DiveIntoGAE :
>
>
>
> >deptId = self.request.get('deptId','0100')
> >deptIdBig = deptId.replace('00','99')
>
> >personsInfoQuery = db.Query(BS_EMPLOYEE_BASEINFO)
> >PersonsInfo = personsInfoQuery.filter('DEPT_ID >=',
> > deptId).filter('DEPT_ID <', deptIdBig).fetch(100,offset=0)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---