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

Improve Dashboard Speed #41

Open
driaug opened this issue Aug 8, 2024 · 3 comments
Open

Improve Dashboard Speed #41

driaug opened this issue Aug 8, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@driaug
Copy link
Member

driaug commented Aug 8, 2024

Currently, there are three parts of the dashboard that don't stay fast at scale

These are:

  • The feed on the main page of the dashboard
  • The analytics page
  • The campaign page (due to the loading of the contact selector)

There is a lot of improvement that can be done here!

@driaug driaug added the enhancement New feature or request label Aug 8, 2024
@killion
Copy link
Contributor

killion commented Aug 22, 2024

Yeah, I've been hitting timeouts with the campaign page. Our newsletters are over 500K emails. Maybe removing the count or having a special COUNT(*) to get the numbers instead?

I haven't used Prisma before, but it seems like a few additional indexes might help out. Especially around Campaigns and Contacts.

@yasoob
Copy link

yasoob commented Sep 14, 2024

@killion this is a bit off topic but considering that you mentioned your newsletter subscriber count, do you mind sharing what was your system resource usage while sending a campaign to your whole list and what was the performance like? (how long did it take to deliver the whole campaign)

@killion
Copy link
Contributor

killion commented Oct 22, 2024

System utilization is low during the actual sends. The system can lock when loading the pages with counts on them though. I ran into a problem when I would set the number of emails per batch higher that duplicate jobs would run and send the same email multiple times. I added a PR for locking but I haven't been able to get back and finish working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants