You are not logged in.

#1 2006-01-04 13:53:53

major
Member
From: Ockelbo, Sweden
Registered: 2005-12-30
Posts: 25

Database

What database do you prefer, and why?

Offline

#2 2006-01-04 14:11:10

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Database

'cause I know it.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2006-01-04 14:21:06

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Database

doesn't it depend on the application? MySQL and PostGres may be more or less interchangable, but SQLLite seems to me to be designed for tasks that the others are not optimized for and vice versa.

Dusty

Offline

#4 2006-01-04 15:29:03

xerverius
Member
From: ~
Registered: 2004-11-02
Posts: 230
Website

Re: Database

MySQL, because it is the best/most supported/used database and it has proven himself.

Offline

#5 2006-01-04 16:20:40

rpgcyco
Member
From: Australia
Registered: 2005-09-27
Posts: 74

Re: Database

I voted for MySQL.

I don't run it locally, but of all the times I've used it on web servers it's been fine and worked well. I haven't used any of the other options though, so I may of found them equally useful, who knows. smile

- Rpg Cyco

Offline

#6 2006-01-04 16:30:13

postlogic
Member
Registered: 2005-02-24
Posts: 410
Website

Re: Database

I use MySQL because it's free, fast, easy to learn and it's what I used first. Most books and stuff concering PHP uses MySQL anyway, so it's better in that way, too.

Offline

#7 2006-01-04 19:42:56

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Database

Dusty wrote:

MySQL and PostGres may be more or less interchangable

I disagree.

Mysql has its benefits. I prefer postgres myself, for various reasons that I see no need to elucidate here (beyond saying that I consider my data consistency more important than raw speed).

They are not what I would consider 'interchangeable' though. Just like oracle is not really interchangeable with MSSQL. If you meant that both are RDBMS applications, then I guess...

*shrug*


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2006-01-04 20:00:23

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Database

MySQL because it works with PHP the easiest (imho) and I know it.


·¬»· i am shadowhand, powered by webfaction

Offline

#9 2006-01-04 22:23:11

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Database

Ditto

Offline

#10 2006-01-04 23:13:44

soniX
Member
From: Oslo, Norway
Registered: 2004-01-23
Posts: 161

Re: Database

HSQLDB for development... its small, easy to set up, and extremely fast.

Offline

#11 2006-01-04 23:18:14

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Database

sqlite, because it's standalone and doesn't require system daemons and things like that - admittedly, it doesn't perform as well as mysql and things, but for small apps where you need to store a big hunk of data, sqlite rocks.

Offline

#12 2006-01-04 23:19:41

soloport
Member
Registered: 2005-03-01
Posts: 442

Re: Database

Postgres

The question to ask is: How much code is above water?  i.e. The experienced develper will make the RDBMS do much of the work (below water); A poor design will have PHP or Java doing a bunch of decision-making and filtering (above water).  The well-designed application will be able to handle far more bandwidth and will be far more scalable.  In this, Postgres will fast become your friend.

If your application uses flat files and you convert it to support MySQL, you'll see it run circles around a Postgres version of the same.  However, the first time you try anything real-world (in the RDMBS sense) the Postgres version will show its true horsepower, in terms of speed.

As far as "best supported" goes, you would really have to try Postgres, probably for a full year, and get to know and get used to it's differences.  Then try to go back to MySQL (after you've forgotten about its quirks).  You'll probably be scratching your head wondering what all the fuss was about regarding "support".

I found this to be true for Windows.  I stayed completely away from Windows for more than a year.  When I got a new laptop, Windows stayed on it for only a month before I couldn't stand it anymore and installed Linux.

[Edit] Beware of the application that claims to support both MySQL and Postgres.  You might as well use MySQL with it, as it probably has not taken advantage of ANY true RDBMS support and is still using a relatively "flat file" approach to managing data.

YMMV

Offline

#13 2006-01-04 23:27:45

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Offline

#14 2006-01-05 13:05:43

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: Database

soloport wrote:

...

I was going to make approximately the same post... But yours is way better than the draft I had in my head.

This guy knows what he is talking about! :-)


Hello girls, I like rock climbing, mountain biking and rafting! Write me!

Offline

#15 2006-01-06 01:00:32

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: Database

It depends on the application a lot. I think for small, local things, sqlite is better, while for really really big heavy duty stuff mysql and postgres are much better suited.


The suggestion box only accepts patches.

Offline

#16 2006-01-06 14:38:41

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Database

PostgreSQL has features that I wouldn't want to miss in any serious environment. Foreign keys, ACID features, SQL compliancy, etc. But MySQL and SQLite denifitely have a merit, too. MySQL is great for storing (especially querying) not-heavily related, unnormalized or small to medium amounts of data.

I mostly use MySQL for obvious reasons, but I prefer to work with Postgres.

Offline

#17 2006-01-06 23:27:50

codergeek42
Member
From: Anaheim, CA (USA)
Registered: 2005-06-03
Posts: 90
Website

Re: Database

MySQL. I dunno...it just seems simpler to me; or maybe I'm just used to it. smile


~Peter~

Offline

#18 2006-01-07 11:50:49

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Database

MySQL is only simpler for simple tasks  smile

Offline

#19 2006-01-07 19:53:46

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Database

LB06 wrote:

MySQL is only simpler for simple tasks  smile

oh man.. I need to write this one down!
Best quote of the day!
8)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#20 2006-01-08 03:20:59

sash
Member
Registered: 2005-10-16
Posts: 155

Re: Database

major wrote:

What database do you prefer, and why?

PostgreSQL, hands down. I have worked with MySql much longer, but there's simply no comparison... Stored procedures, create views, storing geospatial objects (have you tried the PostGis ewxtension?), ability to use one of multitude of languages to write functions (plpqsl, c, etc), the list goes on and on...

Offline

#21 2006-01-08 12:31:32

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Database

I would like to add that MySQL5 certainly is an improvment, because it offers many 'enterprise-ready' features like referential integrity (foreign keys), transactions, views and so on. I think MySQL and Postgres are slowly converging towards each other.

It remains to be seen how well these features are implemented, however. Having features is not nearly enough. They should also be stable, agile, secure and SQL '92 compliant.

Offline

#22 2006-01-08 18:54:38

soloport
Member
Registered: 2005-03-01
Posts: 442

Re: Database

Imagine you're going to hire a new employee for the position of "programmer".  You've been inundated with resumes.  In reviewing the stack, you notice that 80% of them list only BASIC as a skill.  (This is what I've experienced, first-hand.)  Are these people "programmers"?  Of course thay are.  But the other 20% list a broader variety of languages: C, C++, Java, Assembly.

In fact, most of these do not list BASIC whatsoever.  Perhaps they've learned that hiring managers know: Learning BASIC will teach you the wrong skills.  With BASIC under your belt, you'll have to un-learn and re-learn programming skills to become useful in other languages.

Now imagine you're going to hire a "DBA".  A resume which lists only MySQL represents a candidate least likely to perform skilled DBA functions.  I tend to leap out of my chair when I see a resume that lists Postgres and Oracle (but does not list MySQL).  Oracle for the skill set; Postgres for the cost savings ;-)

It isn't always about the tool; It's often about the skills associated with a tool that matter.  Postgres will more likely enable you to learn the right skills.

Offline

#23 2006-01-08 21:28:06

major
Member
From: Ockelbo, Sweden
Registered: 2005-12-30
Posts: 25

Re: Database

Thanks for your (some) good explanations. I think i will install postgres some time in the future..

Offline

#24 2006-01-08 23:07:16

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: Database

major wrote:

Thanks for your (some) good explanations. I think i will install postgres some time in the future..

Warning: If you don't have a specific goal to reach (aka you are just meddling around) you won't find postgres very satisfying. Postgres shines in more complex environments. If you have only one, two or three tables to keep track of your CD database for instance, MySQL will do just fine. SQLite would probably even be a better choice.

Offline

#25 2006-01-09 02:54:06

paperinik
Member
Registered: 2005-05-25
Posts: 46

Re: Database

Postgres, because it's easier to setup.

Offline

Board footer

Powered by FluxBB