-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 18/05/11 11:10, P.Kremen wrote:
> Hi Damian
>
>> model.add _does not need_ batches to be indicated. By default each
>> add operation, that is each statement, list of statements or model
>> add, happens in a batch load. If your results were occasionally
>> lost something is definitely wrong and we ought to investigate.
>> Could you post your code?
>
> Well, I said it wrong way.
>
> It is the same project as the SDB/MySQL issue discussed with you last
> time.
Doh, Captain Memory strikes again, failed to notice who was asking the
question.
> I just do not have much control over the client
> logic. So I want to make it as efficient as possible from the SDB
> backend point of view. Basically, the currenty (ugly) API is as
> follows (which was designed before, so the only degree of freedom for
> me is the content of these methods):
>
> public OntModel getOntModel() { 1) create an SDB-backed OntModel 2)
> Model.startBatchUpdate 3) return the model to the user }
>
> public void saveOntModel(OntModel) { 1) Model.finishBatchUpdate 1)
> Model.startBatchUpdate }
>
> Thx
>
> Petr
>
That's a tough thing to do, but you clearly know this. In my opinion
it's not worth it: poor performance is better than data loss, and
typically easy to fix.
If I have any inspiration in the meantime I'll let you know.
Damian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk3TzJYACgkQAyLCB+mTtyn2yQCcCtfk9shsxhi80ZBTtBKFcuQa
XNAAoMwVLMjXYMbfTRIHOql76I9VkAop
=hKUq
-----END PGP SIGNATURE-----