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

refactor: switch database to document-based #50

Closed
wants to merge 5 commits into from

Conversation

heyhippari
Copy link
Contributor

A relational database isn't really suited for what I want to do here. And with the lack of graph databases you can embed, a document-based one seems like a better fit.

So this switches the entire database layer to use clover, which seems like a decent (If somewhat new and bare-bones in terms of features) embeddable database.

If this proves to be "not enough" at some point, the current structures makes it pretty easy to change which kind of database we're using, and we can always go "lower level" if we need to, with something like goleveldb, bbolt or something.

This PR also reworks the Sentry integration a little, mainly by properly deferring a flush (So if a crash happens, we still get whatever Sentry needs to send before the program exits) and by adding a config option to opt out of crash reporting.

@heyhippari
Copy link
Contributor Author

Closing this, as it seems like clover has issues with doing updates in goroutines...

It might be me not being proficient enough with Go, though, so I'm leaving the branch there, just in case someone who knows how to fix this stumbles on the repo.

@heyhippari heyhippari closed this Jun 11, 2022
@heyhippari
Copy link
Contributor Author

Turns out this is exactly what Mutexes are for. Who knew?

Good thing I didn't delete the branch. This is still on the table, so reopening.

Can you tell I'm a frontend engineer and don't do backend work all that often? 😄

@heyhippari heyhippari reopened this Jun 17, 2022
@heyhippari heyhippari changed the base branch from master to devel June 17, 2022 19:26
@heyhippari heyhippari changed the title refactor: switch database to document-based + other improvements refactor: switch database to document-based Jun 17, 2022
@heyhippari heyhippari closed this Jul 14, 2022
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.

None yet

1 participant