8000 Switch to a relational database by goto-bus-stop · Pull Request #637 · u-wave/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Switch to a relational database #637

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

Merged
merged 98 commits into from
Nov 22, 2024
Merged

Switch to a relational database #637

merged 98 commits into from
Nov 22, 2024

Conversation

goto-bus-stop
Copy link
Member
@goto-bus-stop goto-bus-stop commented Sep 12, 2024

Closes #549
Remaining items in issue

Mostly works using SQLite. A few things to do:

  • votes
  • vote test uses a non existent history ID, no longer supported
  • playedAt time is wrong (timezones?)
  • i would probably want this to also work with other SQL databases
  • Redis is randomly used for some booth / waitlist / online users related storage. probably just stuff that into a simple key-value table in the database to make it easier to run.
  • use SQL transactions where necessary--with mongodb there are no transactions so a bunch of code YOLO'd consistency, but with a sql database we dont need to yolo anything.
  • put the migration code into a standalone migration script so i can release the next version without depending on mongo
  • performance test it with wlk data. i expect this will be dramatically faster...

This changes how roles work internally (now there's "roles" and "permissions" instead of permissions being specially-treated roles), but it shouldn't be a breaking change for clients.

@goto-bus-stop goto-bus-stop changed the title Switch to a relational database, closes #549 Switch to a relational database Oct 9, 2024
@goto-bus-stop goto-bus-stop marked this pull request as ready for review November 22, 2024 21:46
@goto-bus-stop goto-bus-stop merged commit 8765523 into default Nov 22, 2024
11 of 14 checks passed
@goto-bus-stop goto-bus-stop deleted the sql-db branch November 22, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change the database
3 participants
0