Running out of memory when requesting data

Created on 26 October 2021, about 3 years ago
Updated 17 July 2024, 5 months ago

I've installed the dashboard on a test D9 install, in a subdirectory.

Version: 9.2.7
Drupal Commerce: 8.x-2.27

Everything works in the store except the dashboard. All report widgets/items/areas are blank. Currency config to match default on dashboard (=EUR)

Appreciate any help.

Rgds

🐛 Bug report
Status

Active

Component

User interface

Created by

🇳🇴Norway gnorf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • I encountered this issue as well.

    In the process of fixing this, I also:
    - Updated the order query so that it can be executed just once
    - Fixed a loop on getSalesData that would run 14 * 86400 times more than needed
    - Refactored getTopProducts so that it can use the new getOrders() function
    - Added a few checks to ensure there will be no errors when getting top products
    - Ordered top products by revenue and limited the result to top 20 (maybe this should be configurable in the future)
    - Added a limit to return the top 40 most recent carts
    - Updated the module dependencies
    - Fixed an issue where numbers would show up with many decimal points

    Here is a proposed patch.

Production build 0.71.5 2024