Menu

#2912 (ok 3.2.3) Slow export when having lots of databases

3.1.5
fixed
1
2013-06-11
2009-08-05
No

When using phpMyAdmin 3.1.5 with MySQL 5.0.32 and lots of bases (> 4000), it is very slow to export data.

I had previously a problem of slow browsing when using 2.9.1 but it was solved by using 3.1.5 and the DisableIS parameter.

The "SHOW PROCESSLIST" in mysql tell me that MySQL spend lot of time in various select of information_schema, for example more than 77 seconds to execute this request:
SELECT TRIGGER_SCHEMA, TRIGGER_NAME, EVENT_MANIPULATION, ACTION_TIMING, ACTION_STATEMENT, EVENT_OBJECT_SCHEMA, EVENT_OBJECT_TABLE FROM information_schema.TRIGGERS WHERE TRIGGER_SCHEMA= 'testingbaseslow' and EVENT_OBJECT_TABLE = 'evo_items__itemtag

my provider doesn't want to update MySQL to 5.1.22 and I didn't see any improvement for the export in phpMyAdmin 3.2.0.1 changelog.

Discussion

  • Marc Delisle

    Marc Delisle - 2009-08-23
    • summary: Slow data export --> Slow data export when having lots of databases
     
  • Marc Delisle

    Marc Delisle - 2009-09-19
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2009-09-19

    Bonjour Stéphane,
    I tried with MySQL 5.1.37 and it's not better. If DisableIS is true, I could generate a SHOW TRIGGERS statement which returns an answer immediately, however the MySQL manual says that shis statement requires the TRIGGER privilege. In 5.1.37 it's not true but I'm not sure if we should go this way. Comments?

     
  • Marc Delisle

    Marc Delisle - 2009-09-20

    I retested and the manual is correct: to obtain the information about trigger, a user needs the TRIGGER privilege. This applies for both INFORMATION_SCHEMA and SHOW TRIGGERS so I'll implement the proposed fix.

     
  • Marc Delisle

    Marc Delisle - 2009-09-20
    • priority: 5 --> 1
    • summary: Slow data export when having lots of databases --> (ok 3.2.3) Slow export when having lots of databases
    • status: open --> open-fixed
     
  • Stéphane Pontier

    Worked fine here, I was able to export my data almost instantly.

     
  • Marc Delisle

    Marc Delisle - 2009-10-30
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB