MySQL Forums
Forum List  »  MySQL Shell

Re: How can I minimise data transfer when rsyncing subsequent dumps?
Posted by: Steve Drangus
Date: August 16, 2022 10:21AM

Peter Brawley Wrote:
-------------------------------------------------------
> > I optimistically thought that any tables with
> autoincrementing
> > primary keys should dump in a deterministic way.
>
> Agreed that's optimistic---doesn't it assume
> there've been no changes since the inserts?
>
> To get your row-by-row differences, wouldn't you
> need two-way exclusion joins on paired tables, and
> wouldn't that be more expensive (by far) than just
> dumb dumping the data?

Well rsync handles the diffing between the two dumps so no need to do exclusion joins.

The key here is that I'm not updating old rows; they are historical and don't change. So if I'm dumping a large table with an autoincrementing primary key, and we're dumping in order of the primary key, then the dump should be identical every time up until we hit a chunk that has new records. But, for whatever reason that's now how it goes. Just trying to nail down the reasons why.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How can I minimise data transfer when rsyncing subsequent dumps?
171
August 16, 2022 10:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.