-
|
I am running ejabberd with multiple vhosts, each using its own MySQL database in the "Default Schema". I have identified so far six tables (archive, privacy_list, privacy_list_data, pubsub_item, pubsub_node, pubsub_state) that use auto-increment indexes. When merging, there is a risk of collisions. One approach I considered is offsetting the IDs before merging. For example, if the IDs are currently all four digits, adding 100,000 to the IDs in the first database, 200,000 to the second, and so on. Would this work, or is there a better way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I was about to propose using export_piefxis_host and then import_piefxis. But if you have many many accounts, maybe your idea runs faster. |
Beta Was this translation helpful? Give feedback.
I was about to propose using export_piefxis_host and then import_piefxis.
But if you have many many accounts, maybe your idea runs faster.