Hi Vijay,
I think the best practice must be to do the puts at some intervals. Like
say if I am processing pay records for a month and it counts to like 2000.
then I will do 500 records/put. If you want to keep the count of whole
number of records, then use % operator on the record count to do the puts.
recordCount = 0
for pay in payRecords:
# do some processing
processedRecords.append(pay)
recordCount += 1
if recordCount%500 == 0:
db.put(processedRecords)
processedRecords = []
if len(processedRecords) > 0:
# put the remaining/last records which is obviously less than 500
db.put(processedRecords)
Hope this helped you.
On Mon, Nov 25, 2013 at 2:36 PM, timh <[email protected]> wrote:
> You do it the same way you insert 1000 records, you just insert a few
> more, then you will have more than 1000 records.
>
>
> On Monday, November 25, 2013 2:51:54 PM UTC+8, Vijay Kumbhani wrote:
>>
>> pls help
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
*Jayakrishnan Damodaran*
*Moooble Solutions*
Skype: jayakrishnand88
Phone: 8281853554
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.