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

Optimizations #517

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Optimizations #517

wants to merge 5 commits into from

Conversation

hawken93
Copy link

@hawken93 hawken93 commented Feb 9, 2023

Hi,

I've made some changes to make snorby run faster with a large database and offline.

Some of the changes like removing gravatar is probably not universally wanted and it would be better to actually make a global toggle for it.

Removing the signature activity from the event detail view may not be wanted either, but helps loading time.

You can test this by inserting about 500k-1 million events and running snorby on it.

  • index "timestamp" column in event table
  • remove gravatar
  • remove signature activity from event details view, it is slow because of two count(*) queries
  • signature events_count updating faster and without deadlock?
  • faster top 5 signatures query

The first and the last two changes listed may be of universal usefulness :)

Let me know what you think, and I'll update the PR :)

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.

1 participant