Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6244799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:23:28+00:00 2026-05-24T12:23:28+00:00

Currently Magento has a problem with the way it handles mass actions. It returns

  • 0

Currently Magento has a problem with the way it handles mass actions. It returns a bit of JS that contains EVERY db id for the current collection and filter, regardless of pagination. This is to support the ‘Select All’ vs. ‘Select All Visible’ option in the grid header. This isn’t such a problem when you have a smaller number of records, but if you have 850k records (orders in this case) it becomes a serious problem.

My question is, does anyone have an elegant solution to this problem?

I can think of several solutions, each with its own drawbacks, but I’m hoping someone has solved this in a simple manner that works as an add-on module. Paid or Open-Source solutions are both welcome suggestions.

Clarification:

I’m looking for an elegant/drop-in solution to the problem of 850k+ records using the grid widget in Magento. The stock Magento code makes the bone headed decision to return the id for every record that is matched by the current filter, even if they are not being displayed. This is not about offline processing of records, it’s about using the grid widget for daily admin tasks.

One possible solution would be to store the results of the filtered search in a temp table and return a reference to the search result. Then you could change it from using the actual ids on a ‘Select All’ to using a specific callback for the action using the reference. This would preserve the current behavior.

So, to ask again, does anyone have a good solution to this already created?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:23:29+00:00Added an answer on May 24, 2026 at 12:23 pm

    Well, the least invasive solution to the problem is to turn off the ‘Select All’ option for grids with large numbers of records. This is easily accomplished by extending the grid class and adding the following code:

    protected function _prepareMassaction()
    {
        $this->getMassactionBlock()->setUseSelectAll(false);
        return parent::_prepareMassaction();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an install that is currently running Magento CE v1.5 (it has been
Is there a way to programmatically reopen an order in Magento that has already
we've got an almost-finished-ready-to-go magento shop, that has developed an annoying problem. On the
I'm currently learning Magento and seem to have come across a problem that is
I am currently writing a script that lets me import multiple products in magento.
Is Magento somehow unique in a way that would make the (now becoming a
I've come across an interesting problem with a Magento store that deals primarily in
I have a magento store that sells glasses, clothing etc. The problem is that
I currently work on a magento webshop, which loads PrototypeJS as framework. However i
I'm currently working on a new Magento template, and I'm facing problems with jQuery.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.