Categories > TinyButStrong general >

Query counting with SQL.

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Erin
Date: 2005-08-12
Time: 16:28

Query counting with SQL.

Before TBS, I created a wrapper for MySQL so I could count the queries. Is there a way to do this with the current MergeBlock using MySQL?


Thanks,

Erin
By: Skrol29
Date: 2005-08-12
Time: 16:50

Re: Query counting with SQL.

What do you mean by "count the queries" ?
By: Erin
Date: 2005-08-12
Time: 17:21

Re: Query counting with SQL.

Everytime a query to the DB is run I would do something like

$query_count++;

Some people maynot care for this, but in debuging a large program, I can use all of the help I can get.

-Erin
By: Skrol29
Date: 2005-08-12
Time: 19:16

Re: Query counting with SQL.

You can code you own Database functions for MySQL (very simple) which normally retrieve data plus count the query.