Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: ordering field #47

Open
sapzxc opened this issue Dec 21, 2020 · 1 comment
Open

Feature request: ordering field #47

sapzxc opened this issue Dec 21, 2020 · 1 comment

Comments

@sapzxc
Copy link

sapzxc commented Dec 21, 2020

Hi!

I have several huge tables with primitive versioning. Actual data are in the end of table, so I prefer to sync from end of table to beginning but there are no such option.

I found orderBy($primaryKey) line but not sure it's correct thing to change this line without changing something #else.

@mrjgreen
Copy link
Owner

Its an interesting question, and I can see the value of wanting to start from the end of the table but I don't think it would be quite as simple as changing the order when fetching the values for the primary key.

The iteration through the blocks is managed here: https://github.com/mrjgreen/db-sync/blob/v3/src/DbSync.php#L96

and I think there are quite a few assumptions in here that we will be searching forwards through the table: https://github.com/mrjgreen/db-sync/blob/v3/src/Table.php#L257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants