Re: [web2py] question about processing db entries in chunks

2012-04-12 Thread Johann Spies
On 12 April 2012 08:51, weheh wrote: > I need to limit my processing of db entries to chunks of, let's say, 100. > So I want to first get the data: > > data = db(db.mytable.flag == False).select(limitby=(0,100)) > > for d in data: > # do something > > Then I want to set mytable.flag to True a

[web2py] question about processing db entries in chunks

2012-04-11 Thread weheh
I need to limit my processing of db entries to chunks of, let's say, 100. So I want to first get the data: data = db(db.mytable.flag == False).select(limitby=(0,100)) for d in data: # do something Then I want to set mytable.flag to True after the above loop is done, but only for the same 1