Subject | Re: [Firebird-Architect] Re: Some benchmarks about 'Order by' - temporary |
---|---|
Author | Adriano dos Santos Fernandes |
Post date | 2006-09-23T21:16:11Z |
Vlad Horsun wrote:
FIRST n on sorted stream and merge joins faster.
Large resultset slower.
Adriano
> If we separate sort record on two parts {key, offset} andIn others words:
> {not_key_fields} and sort only first part we will do much less work at
> merge stage but final stage will cost more as we will load {not_key_fields}
> in random order from secondary temp file.
>
FIRST n on sorted stream and merge joins faster.
Large resultset slower.
Adriano