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: Store Tags in separate table rather than inline #67

Closed
to11mtm opened this issue Mar 19, 2022 · 0 comments · Fixed by #68
Closed

Feature: Store Tags in separate table rather than inline #67

to11mtm opened this issue Mar 19, 2022 · 0 comments · Fixed by #68
Labels
discussion enhancement New feature or request

Comments

@to11mtm
Copy link
Member

to11mtm commented Mar 19, 2022

Is your feature request related to a problem? Please describe.

Users would like the ability to use a separate table for tags with SQL Persistence, as described in akkadotnet/akka.net#5296 .

Additionally, Existing users of Akka.Persistence.Linq2Db would like to ensure they continue to maintain fast read and write performance from their existing journals.

It would be extra great, if we could provide users a way to migrate with zero downtime (if more effort.)

Describe the solution you'd like

We can leverage Linq2Db and Akka.Persistence.Linq2Db's pipeline to provide a solution.

By providing 3 Read and Write modes, we can allow for a 'seamless' deployment, ideal state would be:

  • Writers and readers are in 'old' mode.
  • Deploy code for writers and readers in 'migration' mode. Writers will write both the comma separated tags and to the tag table, Readers will check for tags from both.
  • Run utility or DB Script to put old tags into the tag table.
  • Deploy code for writers and readers in 'new' mode.
  • DBAs can clear out tag column if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant