3. Querying in Qcodo
* Profiling database queries in Qcodo
<< * Qcodo Query: Handling Reverse Relationships   |   Back to Main   |   Next >>

View Source
will open in a new window
Profiling database queries in Qcodo
This page is basically the same as "Performing Custom SQL Queries", albeit with turned on collection and display of profiling data.

Gathering profiling information
Displaying profiling information
*There are methods of QDatabase object.

When using MySql version 5.0.37 or later profiling page also contains execution time of each query. This information is returned by database, it is not measured by PHP so it's more credible.

Ad Hoc Query: Selecting the Projects, their managers and team member count

ACME Payment Sm 2, managed by Karen Wolfe (with 7 team members)
ACME Website Redesign, managed by Karen Wolfe (with 5 team members)
Blueman Industrial Site Architecture, managed by John Doe (with 5 team members)
State College HR System, managed by Mike Ho (with 6 team members)

Ad Hoc NonQuery: Updating Project #3's budget to 2500

Updated. (Use View Source above to see the code for this)

Custom Load Query: Select all Projects with Budgets over $5000, ordered by Descending Budget

State College HR System has a budget of $80500
ACME Website Redesign has a budget of $9560
ACME Payment Sm 2 has a budget of $5125

Qcodo Query: Select all Projects which have a Budget over $5000 and under $10000, ordered by Descending Budget

ACME Website Redesign has a budget of $9560
ACME Payment Sm 2 has a budget of $5125

PROFILING INFORMATION FOR DATABASE CONNECTION #1: 5 queries performed. click here to view profiling detail
memory_get_peak_usage: 5.0 MB / 96M
max_execution_time: 180 s
max_input_time: 180 s
upload_max_filesize: 128M