--
You received this message because you are subscribed to the Google Groups "hamsterdb User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hamsterdb-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you get an answer that fast, it would be stupid to give up that early :-)
>
> I was able to reproduce this bug with anonymous transactions - i.e. when you call ham_db_insert, the second parameter ("txn") is set to NULL. Is that the case in your application?
>
Yes in deed, I used the version with automatic transaction....
>
> It looks like the problem does not exist if you explicitly use transactions, i.e. like this:
> ham_txn_t *txn;
> ham_txn_begin(&txn, env, 0, 0, 0);
>
> ham_db_insert(db, txn, &key, &record, 0); // now use the txn pointer!
>
> ham_txn_commit(txn, 0);
>
I will give this a try tomorrow and will report the outcome.
>
> You can use this workaround till i've fixed the issue (hopefully early next week).
>
This would be great!
> best regards
> Christoph
>
>
Kind regards,
Michael
Hi Michael,There is no parameter to adjust this size; it's hard coded. But it would not be much effort to change it. If you feel the need then just drop me a mail.
yes, this is the correct behavior. The two files switch. The size of the files is depending on the number of transactions; currently the switch is made every 16 transactions. If your transactions are very large then the files will be larger.
best regards
Christoph
--
You received this message because you are subscribed to the Google Groups "hamsterdb User" group.
Thank you for the additional notes.
I had a look at the journal code. It looks as if you changed the number of transactions per journal to 32 with the fix for issue 38.
If I understand you right this would double the size of my journal files?
Could there be a problem with performance, when the journal files are bigger than the cache of the hard disk where the journal files live on?
So maybe setting a minimum number of transactions and a maximum size of the journal files as environment parameter would be something that might have to be set to tweak the performance?
Looking at the code I wonder, why you have favored to use enums for class const int instead of a static const int construct. I have something in mind that enum is an integer type, but the size of the int is up to the compiler. And 1024*1024 is beyond 16bit int.... many this might be a problem on some embedded device compilers...
Anyway, thanks again for your quick reaction on this issue.