Menu

#4027 (ok 4.2.6) $cfg['MaxExactCount'] is ignored when BROWSING is back

4.0.4
fixed
None
1
2014-08-14
2013-07-18
Eichl
No

Hi,

I have a problem with phpmyadmin version 4.0.4.1
We have some very large innodb tables (more than 750 mio rows)
If I click on this large table in phpmyadmin only a orange window with "Loading" is shown.
In the background a SELECT COUNT( * ) FROM TABLE is running and never comes back.
I found a old bug with title "$cfg['MaxExactCount'] is ignored when BROWSING".
But this bug is fixed since years.

http://sourceforge.net/p/phpmyadmin/bugs/865/

I tried to set MaxExactCount to different values but nothing seems to fix the problem.

Regards
Eichl

Discussion

  • Marc Delisle

    Marc Delisle - 2013-07-24

    Could you tell me if this commit could be the culprit?
    https://github.com/phpmyadmin/phpmyadmin/commit/f5d631db

    And which MySQL version are you using?

     

    Last edit: Marc Delisle 2013-07-24
  • Marc Delisle

    Marc Delisle - 2013-07-24
    • assigned_to: Marc Delisle
     
  • Eichl

    Eichl - 2013-07-25

    We are using.

    Software version:
    5.5.8-enterprise-commercial-advanced-log - MySQL Enterprise Server - Advanced Edition (Commercial)

    and
    Database client version:
    libmysql - 5.1.66

    I will try the fix in the comment immediately.

     
  • Marc Delisle

    Marc Delisle - 2013-07-25

    To be more exact, I'm asking you to remove the fix done in the commit I referenced.

     
  • Marc Delisle

    Marc Delisle - 2013-07-27
    • assigned_to: Marc Delisle --> nobody
     
  • Eichl

    Eichl - 2013-07-29

    hi,

    that seems to fix the problem.

     
  • Sergey Solozhentsev

    I have the same issue in 4.0.9. I've attache config

     
  • Marc Delisle

    Marc Delisle - 2013-12-09

    Sergey,
    how many rows are there in your table, and which MySQL version are you using?

     
  • Sergey Solozhentsev

    There are about 20 million rows. I use percona 5.6

     
    • Marc Delisle

      Marc Delisle - 2013-12-21

      Sergey,
      if you remove this patch:
      https://github.com/phpmyadmin/phpmyadmin/commit/f5d631db

      does it fix the problem for you too?

       
  • Brad Dwyer

    Brad Dwyer - 2014-01-03

    I can confirm that I am also having this issue. I was unable to find the line you referenced in version 4.1.3, but I can confirm that forcing $force_exact = false in PMA_Table::countRecords (libraries/Table.class.php) "fixed" things for me.

    Relevant stackoverflow topic: http://stackoverflow.com/questions/20912758/phpmyadmin-hangs-server-by-doing-a-count-when-going-to-browse

     
  • Eichl

    Eichl - 2014-03-14

    Hi,

    I updated a phpmyadmin test instance to version 4.1.9. force_exact in libraries/Table.class.php is set to false.

    572 static public function countRecords($db, $table, $force_exact = false,
    573 $is_view = null
    574 ) {

    But this doesn't seem to fix the problem anymore.

    What have I to do to fix this problem again?

     
  • Eichl

    Eichl - 2014-05-22

    Bug is still present in 4.2.2. Could you please provide me with information how to fix that?

     
  • Marc Delisle

    Marc Delisle - 2014-05-26

    @Eichl,
    I have an idea why you could not fix this. You are showing us the place where the countRecords() function is defined. In the definition, we see that the default value of $force_exact is set to false. However, this is not enough to change the behavior. For version 4.2.2, try this: in libraries/sql.lib.php, function PMA_countQueryResults(), you'll see a call to PMA_Table::countRecords() in which the third parameter is "true". Change it to false and retest.

     
  • Eichl

    Eichl - 2014-06-05

    Hi Marc,

    the problem seems to be fixed again.

    Thank you very much.

    regards
    Steffen

     
  • Marc Delisle

    Marc Delisle - 2014-06-05

    Hi Steffen,
    do you mean that changing the value to "false" as I indicated in my previous message, worked for you?

    Note that we don't have yet a complete solution for this, as changing the value to false has side effects.

     
  • Eichl

    Eichl - 2014-06-05

    Hi Marc,

    correct. Setting the value to false, works for me.

     
  • Marc Delisle

    Marc Delisle - 2014-06-29
    • summary: $cfg['MaxExactCount'] is ignored when BROWSING is back --> (ok 4.2.6) $cfg['MaxExactCount'] is ignored when BROWSING is back
    • assigned_to: Marc Delisle
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2014-07-18
    • Status: open --> fixed
     
  • Eichl

    Eichl - 2014-07-25

    Hi,

    the problem is fixed in version 4.2.6 .

    Thank you.

    regards
    Eichl

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.