Panel
PowerQA is a state of the art discussion software that makes online discussions fun. It's simple, fast, and powerful.
Fighter
webmaster
+2 votes
Notice 590 views

qa_db_list_tables() changed

Since "SHOW TABLES" query is very slow, qa_db_list_tables() was optimized.

Before:

function qa_db_list_tables()
{
return qa_db_read_all_values(qa_db_query_raw('SHOW TABLES'));
}

After:

function qa_db_list_tables($latest=true)
{
global $qa_db_list_tables;
if(!array($qa_db_list_tables) || (array($qa_db_list_tables) && $latest))
$qa_db_list_tables = qa_db_read_all_values(qa_db_query_raw('SHOW TABLES'));
return $qa_db_list_tables;
}

 

image

by webmaster asked Nov 17, 2015 in Core

Please log in or register to add a comment.

Please log in or register to answer this question.

Welcome to PowerQA. PowerQA is a new discussion software (not OSS). Here is a community for PowerQA developers. Current stable version is V1.9.4. It is enhanced day by day.

Statistics

  • 338 questions
  • 276 answers
  • 480 comments
  • 100 users

Post types

...