Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,175
    Plugin Contributions
    11

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

    https://docs.zen-cart.com/user/admin...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.
    Last edited by dbltoe; 15 Sep 2020 at 06:14 PM. Reason: clarification

  3. #3
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default 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).

  4. #4
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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.

 

 

Similar Threads

  1. v139h New customers and orders not showing on admin home or individual pages
    By RNRN in forum Upgrading from 1.3.x to 1.3.9
    Replies: 15
    Last Post: 15 Feb 2021, 09:17 AM
  2. Addin Repeat Customers in Admin -> Customers -> Orders.php
    By fabburl in forum Managing Customers and Orders
    Replies: 3
    Last Post: 25 Feb 2014, 05:05 AM
  3. How to Increas a numbers of rows in Customers Admin Menager ?
    By local1970 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Nov 2011, 04:45 PM
  4. Payapl orders not showing in admin and customers account
    By haykgrigory in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 28 Jul 2010, 04:06 AM
  5. Why do my admin customers and orders pages show no details?
    By kjreif in forum Managing Customers and Orders
    Replies: 3
    Last Post: 23 Apr 2010, 09:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR