Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/4a36284a55d59372#

Class kDBConnection has TableFound function, that does "SHOW TABLES LIKE
TableName" each time it is called with a new table name.

There are 2 ways of improving it:

   1. get list of all tables on first function call and then do in_array on
   every repeated call
   2. get list of all tables during unit config cache rebuild and save it
   into file (save 1 db query on each function call) and then only open that
   file and search for needed table.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

  • No labels