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

Simplified log insertion #180

Merged
merged 4 commits into from
May 4, 2022
Merged

Simplified log insertion #180

merged 4 commits into from
May 4, 2022

Conversation

applejag
Copy link
Contributor

@applejag applejag commented May 4, 2022

Summary

  • Removed the batch insertion logic into the database.
  • Removed the time.Sleep... Silly me forgetting to remove that before

Motivation

This reduces the complexity of wharf-api a lot, while giving up some performance.

It was a premature optimization anyway, and in the end it resulted in glitchy behaviour. We can look back at this PR later if we want a reference implementation later to add it back, but for now we stick with the one-SQL-query-per-insertion logic, which is much faster than we need anyway.

@applejag applejag added the bug Something isn't working label May 4, 2022
@applejag applejag self-assigned this May 4, 2022
@applejag applejag requested a review from Alexamakans May 4, 2022 06:38
grpc.go Outdated Show resolved Hide resolved
grpc.go Outdated Show resolved Hide resolved
applejag and others added 2 commits May 4, 2022 14:45
Co-authored-by: Alexamakans <79503481+Alexamakans@users.noreply.github.com>
@applejag applejag merged commit 70f25b2 into master May 4, 2022
@applejag applejag deleted the feature/fix-things branch May 4, 2022 12:51
@applejag applejag mentioned this pull request May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants