If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / admin/orders and admin/customers - limit rows

admin/orders and admin/customers - limit rows

Started by lindasdd on 15 Sep 2020, 4:07 PM · Views: 1,685

Results 1 to 4 of 4
15 Sep 2020, 4:07 PM
#1
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

admin/orders and admin/customers - limit rows

Due to the size of my database, admin/orders and admin/customers puts a strain on the database to load when loading just the default.

If I change the maximum value to a low amount, the query is still pulling all the data, it is just changing the pagination (I think).

I'd like to either limit the default data pull to something like 10 entries or change the whole page so no sql is queried until there is an entry in the search boxes.

I figure locating the correct SQL statement and adding a LIMIT would be the easiest option, but I'm having trouble locating the correct query.

15 Sep 2020, 5:13 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: admin/orders and admin/customers - limit rows

https://docs.zen-cart.com/user/admin_pages/configuration/all/#maximum_display_of_customers_on_customers_page

Those are default at 50 and usually load in less than a second. You may have some other, underlying problem.

We have several sites with over 5000 orders and customers and have no such problems.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

15 Sep 2020, 7:35 PM
#3
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: admin/orders and admin/customers - limit rows

I don't know at what level things start to get a little dicier, but my customers database has over 400K entries and my orders table has over 500K.

I could archive some of that, except it would be a lot easier to just not call ALL of it to appear when I don't need any of it (I just need to get to a search input).

16 Sep 2020, 5:54 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: admin/orders and admin/customers - limit rows

A query update to the orders page in v1.5.7 has improved load time.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.