theodore.tar
2010-01-14 16:48:40 UTC
Hi:
I am trying to insert 10,000 records to test speed of pgSQL4RB.
Partial code below:
For i=1 to 10000
temp="INSERT INTO
"+chr(34)+"public"+chr(34)+"."+chr(34)+"TEST"+chr(34)+ "
VALUES(nextval('serial'),'Hi');"
TheCache.QueueSimpleQuery(temp)
next i
However, it only writes approx 1,900 records and then stops. I usually
get a lost connection error while in process. Any ideas how i can
ensure that all 10,000 records get processed?
Regards,
Theo
I am trying to insert 10,000 records to test speed of pgSQL4RB.
Partial code below:
For i=1 to 10000
temp="INSERT INTO
"+chr(34)+"public"+chr(34)+"."+chr(34)+"TEST"+chr(34)+ "
VALUES(nextval('serial'),'Hi');"
TheCache.QueueSimpleQuery(temp)
next i
However, it only writes approx 1,900 records and then stops. I usually
get a lost connection error while in process. Any ideas how i can
ensure that all 10,000 records get processed?
Regards,
Theo