Replies: 1 comment 1 reply
-
|
I think your approach is sound. for 1, you can use two identical entities with different table names |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a requirement to atomically replace all data in a table with new data converted from a specific source, potentially involving massive volumes (millions of rows). Using a single transaction to insert all data directly seems risky. My current approach involves creating a temporary table with an identical schema, inserting the new data into this temporary table, and then atomically replacing the original table. This method appears theoretically viable (e.g., MySQL's RENAME TABLE can swap tables, assuming temporary tables are safely discardable).
The challenge lies in implementing this with SeaORM due to two main hurdles:
What are the best practices to address these issues? Are there alternative methods better suited for atomic data replacement in SeaORM?
Beta Was this translation helpful? Give feedback.
All reactions