Subject | Re: [firebird-support] Re: First word after in alphabetical order |
---|---|
Author | Eric SIBERT |
Post date | 2005-08-28T11:40:47Z |
Helen Borrie wrote:
SELECT FIRST 11
ID_WAYPOINT
FROM WAYPOINTS
WHERE WP_NOM>='CHAMBER'
ORDER BY WP_NOM;
With IBOConsole : 100 s.
With isql : 5 s.
With IBConsole : 5 s.
My Celeron is back a young mustang ;-)
each other in the index. My knowledge in databases is not enough to know
if this can be optimized or not when using SQL queries.
Eric
>>- I am using IBOConsole with interactive SQL for my testYES. That's it.
>
>
> Run your test at the command line using isql and compare timings with those
> across the wire to a GUI interface.
SELECT FIRST 11
ID_WAYPOINT
FROM WAYPOINTS
WHERE WP_NOM>='CHAMBER'
ORDER BY WP_NOM;
With IBOConsole : 100 s.
With isql : 5 s.
With IBConsole : 5 s.
My Celeron is back a young mustang ;-)
> Walking 5 million rows three times (two SELECT FIRSTs and then theThe problem is walking three times the table to find rows which are near
> elimination of duplicates for the union) is NOT likely to produce a
> lightning fast result.
each other in the index. My knowledge in databases is not enough to know
if this can be optimized or not when using SQL queries.
Eric