dbTalk Databases Forums  

implicit index creation on foreign key addition

comp.databases.postgresql comp.databases.postgresql


Discuss implicit index creation on foreign key addition in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Coniglio Sgabbiato
 
Posts: n/a

Default Re: implicit index creation on foreign key addition - 12-22-2009 , 06:51 AM






Il 22/12/2009 10.44, Marco Mariani ha scritto:
Quote:
Coniglio Sgabbiato wrote:

So... what about Mysql? It is OT but now I'm curious about their
decision to make it automatic

Mysql is even worse in that regard, since its SQL optimizer is... a very
special kid, as some parents would say, it will use indexes even when
scans would be more appropriate.
Several explanations with tests and charts are given in "Refactoring SQL
Applications", which I recommend
(http://oreilly.com/catalog/9780596514976) where the authors compare
Oracle, MSSQL and Mysql.
Needless to say, Postgres behaves more like the first two.
Mysql has several issues I really don't like. Its "group by" behavior
simply shocked me. This is just another point against it. I cannot
understand why people choose it over PG. Perhaps built-in replication is
the only functionality Mysql has over PG.

Reply With Quote
  #22  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: implicit index creation on foreign key addition - 12-22-2009 , 12:32 PM






On Tue, 22 Dec 2009 08:35:52 +0000, Jasen Betts wrote:

Quote:
On 2009-12-21, Coniglio Sgabbiato <nobody (AT) nowhere (DOT) net> wrote:

So... what about Mysql? It is OT but now I'm curious about their
decision to make it automatic

it it seems like just more arbitrary mysql stuff.
That's why MySQL will be assimilated. The resistance is futile.



--
http://mgogala.byethost5.com

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.