Menu

#42 Get Rowcount from metadata

Next Release
closed
None
5
2008-09-22
2008-02-05
Anonymous
No

We have run the SchemaSpy against our Mysql database, it took more than 1 hours to finish. I found the slowness is in select(*) from table, if you can get the rowcount from information_schema, that will be greatly speed analyzing process.

Most databases has rowcount information ready after running analyze statement, for example, such information can be found in user_tables in Oracle.

Thanks,

Daning

Discussion

  • John Currier

    John Currier - 2008-02-06
    • assigned_to: nobody --> johncurrier
     
  • John Currier

    John Currier - 2008-08-20

    Logged In: YES
    user_id=1264584
    Originator: NO

    MySQL-specific selectRowCountSql implemented in Subversion revision 419.

    John

     
  • Mikheil Kapanadze

    John,

    Here is oracle-specific setting for selectRowCountSql:

    select num_rows as row_count from all_tables where table_name = :table and owner = :owner

    Mikheil

     
  • John Currier

    John Currier - 2008-09-10

    Thanks for the SQL Mikheil. It's included in revision 461.

     
  • John Currier

    John Currier - 2008-09-22
    • status: open --> closed
     
  • John Currier

    John Currier - 2008-09-22

    Implemented in release 4.0.0.

     

Log in to post a comment.