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

Slow loading of outgoing messages page and exporting data #429

Closed
vishnus opened this issue Dec 13, 2017 · 8 comments
Closed

Slow loading of outgoing messages page and exporting data #429

vishnus opened this issue Dec 13, 2017 · 8 comments

Comments

@vishnus
Copy link
Contributor

vishnus commented Dec 13, 2017

Hi team,

We have processed few million emails so far using Postal. We have a raw message retention for 7 days and meta data for 180 days. The outgoing messages page is extremely slow because of the number of messages. I can see that its loading all messages and then its paginated which is probably why its this slow. Can this be paginated and fetched first and loaded instead of just a UI pagination? The UI takes atleast 3-4 minutes to load (had to increase server timeouts drastically)

Also we'd like to download few reports like suppression email ids, bounce list etc. Is it possible to export them without having to use webhooks? (feature request:) )

@willpower232
Copy link
Collaborator

There is a general lack of reports and metrics from Postal at the minute, I'm not sure if that will be picked up. I'd like to see some more stats in the UI and some customisations.

The page loading issue is interesting though, can you send us a screenshot of the pagination to get an idea of the numbers involved?

Something like
image

I'd like to think that its just the page count that is falling apart but will need to have a look at the code for it first.

@vishnus
Copy link
Contributor Author

vishnus commented Dec 13, 2017

Just the chrome network tab for outgoing:
image

And the screenshot you requested:
image

@vishnus
Copy link
Contributor Author

vishnus commented Dec 13, 2017

Another interesting thing is, if we give a search term, say just email, which is not a valid filter it shows this red banner

image

But again, this shows up after 2-3 minutes of fetching data which shouldnt be the case. Validation of input should be done in front end also i suppose?

@willpower232
Copy link
Collaborator

Without reworking the page to include an ajax loaded list (similar to jQuery DataTables) theres not really a lot that can be done in the short term.

@adamcooke
Copy link
Contributor

Postal just stores messages in the MySQL database so making queries for messages depends on the speed of the MySQL server itself. We have added indexes for common searches but there may be some missing and/or simply too much mail to handle quickly. We've seen some speed issues with loading message lists on servers that handle lots of mail so we may be able to investigate this ourselves. I've made a note of this on our internal task tracking and we'll try and take a look soon.

@shopglobal
Copy link

shopglobal commented Jan 13, 2018 via email

@willpower232
Copy link
Collaborator

@shopglobal please open a new issue with the problems you are experiencing

@shopglobal
Copy link

shopglobal commented Jan 13, 2018 via email

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

No branches or pull requests

4 participants