dbTalk Databases Forums  

Slow performance while scanning large database files

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Slow performance while scanning large database files in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Florian Weimer
 
Posts: n/a

Default Re: database checksum - 09-14-2004 , 06:08 PM






* Patrick Schaaf:

Quote:
Oh, updates may happen in varying order on the seperate instances.

You need some commutative system.

Right. XOR is commutative.
Yes, of course it will do. But you have a^a = 0 for any a (this is
what I meant when I wrote that any element has order two). It means
that you can't detect some errors in the presence of duplicate rows.
If you use another commutative operation, say + (addition with
carries), you don't run into this problem.

Quote:
This leads to an important question: How do you check that the
databases are consistent? You'll need a consistent cut to answer this
question.

You can make a copy of the database and log files at any time,
and reconstruct any previous version at will. Lots of consistent
cuts to look at. This should be doable out-of-line on a backend
system.
Ah, I assumed that you wanted to perform on-line consistency checks.
Please ignore most of my comments. 8-P (My point about the inferiority
of XOR is still valid, though.)


Reply With Quote
  #12  
Old   
Patrick Schaaf
 
Posts: n/a

Default Re: database checksum - 09-15-2004 , 01:31 AM






Florian Weimer <fw (AT) deneb (DOT) enyo.de> writes:

Quote:
Right. XOR is commutative.

Yes, of course it will do. But you have a^a = 0 for any a (this is
what I meant when I wrote that any element has order two). It means
that you can't detect some errors in the presence of duplicate rows.
I'm not concerned with fully duplicate rows, and, each 'a' being an md5sum,
the probability of different rows nulling each other is rather low. So that
won't hurt me...

Quote:
If you use another commutative operation, say + (addition with
carries), you don't run into this problem.
.... but now I understand what you were getting at. Thank you!

best regards
Patrick


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.