Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

triggers for copying #2

Open
ghazel opened this issue Jan 7, 2011 · 1 comment
Open

triggers for copying #2

ghazel opened this issue Jan 7, 2011 · 1 comment

Comments

@ghazel
Copy link

ghazel commented Jan 7, 2011

table_migrator currently relies on updated_at/created_at, indexes on those, and avoiding things like DELETE during a migration. These problems could be solved by switching to a AFTER_{INSERT/UPDATE/DELETE} trigger-based copy mechanism.

Has this been considered? It's a bit more complicated, but I believe it's a better way to go about it.

There's a thorough explanation here: http://www.facebook.com/note.php?note_id=430801045932

@freels
Copy link
Owner

freels commented Jan 9, 2011

I'm aware of that blog post, though I wrote this a year or so before. I'd like to make this use triggers at some point, but I haven't had the time.

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

No branches or pull requests

2 participants