Unix Technical Forum

sort_merge options.

This is a discussion on sort_merge options. within the Sybase forums, part of the Database Server Software category; --> hello. I'm working on optimisations problems frequently, and since the V12 of sybase, I tried to implement sort_merge options ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 03:53 PM
stephane
 
Posts: n/a
Default sort_merge options.

hello.
I'm working on optimisations problems frequently,
and since the V12 of sybase, I tried to implement sort_merge options on many Query,
but I'n never see it working very well, I tried all recommandations of
sybase (configure number of sort buffer, etc ...).
In many case Sybase choose showplan with sort_merge but even if
it's better in i/o, in time it worst(and very worst !).
Does anyone succeed in working with these sort_merge?
Stéphane.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 03:53 PM
Rob Verschoor
 
Posts: n/a
Default Re: sort_merge options.


Merge joins are not always ways faster than classic nested-loop joins;
as you've noticed, they're sometimes even slower.
In my experience, merge joins are most likely to be faster in cases
where two tables are joined on identical columns, on which indexes are
present. For example, table1 has an index on columns (a,b), as does
table2. When doing a join on these columns, you'll probably see that a
merge join is faster.

HTH,

Rob
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5

Author of "Tips, Tricks & Recipes for Sybase ASE" and
"The Complete Sybase ASE Quick Reference Guide"
Online orders accepted at http://www.sypron.nl/shop

mailto:rob@DO.NOT.SPAM.sypron.nl.REMOVE.THIS.DECOY
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

"stephane" <stephane.lehebel@bnpparibas.com> wrote in message
news:220aebda.0309020705.7a73cd3d@posting.google.c om...
> hello.
> I'm working on optimisations problems frequently,
> and since the V12 of sybase, I tried to implement sort_merge options

on many Query,
> but I'n never see it working very well, I tried all recommandations

of
> sybase (configure number of sort buffer, etc ...).
> In many case Sybase choose showplan with sort_merge but even if
> it's better in i/o, in time it worst(and very worst !).
> Does anyone succeed in working with these sort_merge?
> Stéphane.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com