Search code examples
firebirdexecution-time

Firebird: Query execution time in iSQL


I would like to get query execution time in iSQL.

For instance :

SELECT * FROM students;

How do i get query execution time ?


Solution

  • Use SET STATS:

    SQL> SET STATS;
    SQL> SELECT * FROM RDB$DATABASE;
    ... query output removed ....
    
    Current memory = 34490656
    Delta memory = 105360
    Max memory = 34612544
    Elapsed time= 0.59 sec
    Buffers = 2048
    Reads = 17
    Writes 0
    Fetches = 270
    SQL>