Quantcast
Channel: AutoIt v3 - Developer Chat
Viewing all articles
Browse latest Browse all 750

SQLite and transactions

$
0
0

This is here because it's not explicitly an AutoIt question.

 

In my loop some SQL statements are generated, there can be anything between 0 and 20.

I make the SQLite query when broken out of loop.

 

jchd mentioned to me last week about transactions, and I had no idea what they were, but now I do.

 

My question is, how many statements do you think there has to be to warrant encapsulating them in one transaction

as opposed to x amount of single operations?

 

Speed is important to me, but not as much as safety, I want to do as much as is reasonable, to ensure the data is written

while not compromising speed too much.

 

From what I've read, if one single record is not written for some reason, then none are written at all when encapsulating 

statements within a single transaction, that is not at all desirable to me.

 

I have done my search but found virtually nothing about it, so I'm asking here rather than a flock of e-strangers elsewhere.

 

Thanks for reading.


Viewing all articles
Browse latest Browse all 750

Latest Images

Trending Articles



Latest Images