-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix: orders performance #5096
fix: orders performance #5096
Conversation
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Removing the aggregation form the As per @aldeed's #5094 (comment) on the linked ticket, it may be necessary to make this a GraphQL query instead and completly remove the publication altogether. It may also in part be to an inneficently designed UI relying on many Meteor trackers. |
@mikemurray I know that this is still WIP but pagination seems a bit slow for me when I'm displaying more than 20 rows of orders. My system struggles to paginate when there are 25 and 50 orders on each page and 100 just seems to kill it. My specs are: Dual core i7 4510U |
@manueldelreal Yea, that's what I'm seeing. The publication seems to be as simple as it gets, even simpler than the Products publication. I wonder if it's a UI problem, or if the publication itself is just bad all around. If it's either of those two problems, this would require a refactor of the Orders UI at the least, and at the worst, a full refactor of data and UI to use GQL. |
cc @spencern @zenweasel |
@mikemurray @manueldelreal Maybe try adding a |
@aldeed Tried that, didn't seem to help. I removed the sort by It seems like the further you paginate through orders, the slower it gets. |
@mikemurray Not surprising. Seems like that's what we have to do then. |
I'm not really surprised that the UI rendering is part of the issue. @rymorgan this probably gets us further from the design aesthetic that you're really looking for here. Curious if you're okay with this move "temporarily" in order to drastically improve the performance. |
@spencern yes, but this design needs upgrades anyway. So yes i'm ok with some version of this to improve performance. Especially since performance seems to be a blocker for using the UI at all. Can we provide at least sorts for order and shipping status? and even better a table search? (aka a similar table component to tags). |
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
Signed-off-by: Mike Murray <hellomikemurray@gmail.com>
@manueldelreal @spencern @rymorgan So here we are. A more performant orders table. It's definitely faster, but like 99% of the time. That 1% may just be a system hiccup as I can usually click as fast as possible through all 700 orders. This is an improvement no doubt, but probably not the last we'll see of the orders performance issues. This is ready for review now @manueldelreal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this actually is much faster now, I can increase/decrease number of displayed orders and paginate without any visible hiccups
Resolves #5094
Impact: major
Type: performance
Issue
The orders admin panel is performing very poorly.
Solution
Breaking changes
Multi-shop orders will no longer work
Testing