Hello,
I have to often create lots of tables (I know this is a silly use
case). To speed up this process I pass a transaction to the
createTable() method:
con = so.connectionForURI("sqlite:/data.db")
trans = con.transaction()
so.sqlhub.processConnection = trans
# ...
cls.createTable(ifNotExists=True, connection=trans)
If I have to bulk insert a lot of data, I do not need to pass the transaction.
Why the difference?
Is there a way to implicitly tell createTable to use that transaction?
Thanks,
--
jt
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss