Re: QuerySet "disappearing"

2011-04-05 Thread Matthew Riedel
Nevermind- I *finally* figured it out.. It was this bit: "for contact in contacts[startIndex:startIndex+100]:" The contacts.count() in this case would steadily decrease as I changed the status of the objects to no longer fit the queryset criteria. So the startIndex value would get to the point whe

QuerySet "disappearing"

2011-04-05 Thread Matthew Riedel
Ok, I'm having a bit of a weird issue with a medium-sized QuerySet (~21k records). I have an app that syncs information from our LDAP Directory and creates shared contacts in Google Apps for our domain. Google puts a limit on 100 entries per batch, so I'm cycling through these 21k records 100 at a