Migration between databases #9620
|
Hi all, I am migrating Langfuse v2 to Langfuse v3. However, I will be using a different database on different infrastructure after the migration. I would like to manually run background migrations from a specific date. Is this possible? |
Replies: 2 comments 1 reply
|
Based on the documentation, you can customize background migrations to start from a specific date by modifying the migration cursor in the The background migrations use date-based cursors to track progress(1). You can manually adjust the starting point by editing the For deployments created before May 2024, there's a specific issue where the migration script may get stuck because all traces have the same To customize the migration starting point:
The migration scripts can be customized by modifying the files in Keep in mind that background migrations are executed on startup of the worker container and run until completion(1). You can monitor their progress through the Langfuse UI by clicking on the version tag and selecting "Background Migrations"(1). 📚 Sources: Have another question? Just tag @inkeep. |
|
Hi @julian-hecker, was inkeep able to help you? |
Based on the documentation, you can customize background migrations to start from a specific date by modifying the migration cursor in the
background_migrationstable(1).The background migrations use date-based cursors to track progress(1). You can manually adjust the starting point by editing the
background_migrationstable in your Postgres database and updating the cursor position(2).For deployments created before May 2024, there's a specific issue where the migration script may get stuck because all traces have the same
created_attimestamp(2). In such cases, you can modify the migration script to use thetimestampfield instead ofcreated_atas the cursor(2).To customize the migrat…