You are not logged in.
Pages: 1
Hi,
Amazing framework, nice job.
I was looking at batch operations with the class TSQLHttpclient and I would like to know, what is the number of records that is recomended to use in a batch transaction?
More than 3? What would be more optimized?
Offline
Even with 1 record per batch, I suspect you won't find any speed difference.
The server-side JSON parsing is blazzing fast, and won't be slower than direct execution via a CRUD method.
The real bottleneck will be the database engine, not the ORM/JSON process.
What may be optimized is the maximum number of records per batch.
Depending on the database engine, too many rows within a transaction may be slower: before the transaction is committed, all data is stored in a temporary WAL file, which takes time to maintain.
Here, a maximum of some 1000s of rows per transaction is a good idea.
In fact, this is not a limitation of the batch itself, but the transaction handling.
With Oracle or SQLite3, this maximum number of rows per transaction is a known speed parameter.
Online
ok,
Does the event OnUpdateEvent is called when I use the Batch Update/Insert?
If yes, Is it call for each row?
Last edited by Kobe (2013-04-09 13:11:48)
Offline
Hello, after I updated my source with the lastest version (http://synopse.info/fossil/info/0ec7937 … 2d6927dde3) the OnUpdateEvent is not being called anymore after Batch Update/Insert !
My software really rely on this feature. Is there some new configuration, that I have to do for it to work as it used to work before?
Last edited by Kobe (2014-09-04 17:32:00)
Offline
I don't know if it's right, but looks like it stopped after this change -> http://synopse.info/fossil/info/c999b07 … f8996d3552
Offline
Ticket created -> http://synopse.info/fossil/info/7a2d9a2 … b2e3720f23
Offline
No, I think it has nothing to do with the "fixed BATCH process to generate valid JSON conten" commit - http://synopse.info/fossil/info/c999b07e314012b
What is your database configuration? Are you using the internal SQLite3 engine, or an external DB?
Do the regular Update()/Add() methods trigger the notifications? Is it a BATCH problem only?
From our side, we only found out a problem with BATCH insert and SQlite3.
Should be fixed by http://synopse.info/fossil/info/d04e19bec3
No problem detected with BATCH update and SQLite3, or other BATCH modes.
We need additional info here, if this fix is not enough.
Online
I use internal SQLite3 engine. Now it's fixed, thank you.
Offline
Pages: 1