Databases!

Please compose all posts in Emacs.

Moderators: phlip, Moderators General, Prelates

Re: Databases!

Postby Edit0r » Fri Dec 14, 2007 4:59 am UTC

I'm in love with Postgres, but I've never used it. I've only seen it being used by my fianceé when she was doing a piece of Database Systems coursework. It just looks... less shit than MySQL, which is what I currently use.
Braccae tuae aperiuntur
User avatar
Edit0r
 
Posts: 96
Joined: Wed Nov 21, 2007 10:54 am UTC
Location: Edinburgh, Scotland

Re: Databases!

Postby segmentation fault » Tue Dec 18, 2007 5:25 pm UTC

postgres is much more straightforward than mysql. i mean wtf mysql why do i have to do a grant to create a user? CANT YOU JUST IMPLEMENT CREATE USER?!

but mysql now performs better than postgres in common situations i believe, whereas postgres used to be the better one.

oh, and postgres, please implement enums...now.
people are like LDL cholesterol for the internet
User avatar
segmentation fault
 
Posts: 1770
Joined: Wed Dec 05, 2007 4:10 pm UTC
Location: Nu Jersey

Re: Databases!

Postby Iori_Yagami » Thu Dec 20, 2007 1:51 pm UTC

I used (and use) Oracle 8i, MS SQL Server 2005, FireBird.
They all have something which causes headaches (hint: SQL).
So they all are quite similar. And Relational Algebra is so much cleaner that SQL! (has anyone met with DatabaseDebunkings site?)

But nothing can compare with sadistic legacy systems. I insert ('Mike', 23). I insert ('Alice', 27).
Why am I getting rubbish (MIKE,23);(ALIC,69)? Why??? What is wrong?

...

Ahhhhhhhh. So the record is A(4);N(1). (4 ascii letters and a 1-byte number). Sooo, ASCII code for 'E' is 69, and poor Alice's last letter gets into the next field... Hmmmmm.
They cannot defend themselves; they cannot run away. INSANITY is their only way of escape.
User avatar
Iori_Yagami
 
Posts: 606
Joined: Wed Oct 03, 2007 8:37 pm UTC

Re: Databases!

Postby pieaholicx » Thu Dec 20, 2007 2:00 pm UTC

Iori_Yagami wrote:They all have something which causes headaches (hint: SQL).

If you hate SQL, I can't see you making it far with databases. SQL does seem to be the standard these days.
It's okay, I'm Chaotic Neutral. I can kill him over the loot.
Overexposure to pieaholicx may, in semi-rare cases, emancipate dental fillings, crowns, tooth enamel, and teeth.
User avatar
pieaholicx
The cake is a lie!
 
Posts: 531
Joined: Mon Oct 22, 2007 12:51 pm UTC

Re: Databases!

Postby janusx » Thu Dec 20, 2007 2:34 pm UTC

Personally I really like using MSSQL 2005 and really dislike working with Oracle DBs

Where I work the SQL db is always fast, responsive and easy to work with while the Oracle db has a slow response time and uses some bizarre (I'm thinking archaic) SQL syntax and functions.
janusx
 
Posts: 88
Joined: Wed Aug 08, 2007 4:46 pm UTC

Re: Databases!

Postby wing » Mon Dec 24, 2007 4:42 am UTC

janusx wrote:Personally I really like using MSSQL 2005 and really dislike working with Oracle DBs

Where I work the SQL db is always fast, responsive and easy to work with while the Oracle db has a slow response time and uses some bizarre (I'm thinking archaic) SQL syntax and functions.

Oracle likes to be annoying and has its own dialect. Kinda like MySQL, except worse.

And the responsiveness difference you're seeing is probably just the physical hardware difference - MSSQL databases tend to live on shiny new servers running shiny new Microsoft operating systems and have a lifespan of about 3 years because they're fairly cheap. Oracle, however, has draconian licensing and is incredibly expensive, so it hangs around a lot longer without system upgrades.
I AM A SEXY, SHOELESS GOD OF WAR!
Akula wrote:Our team has turned into this hate-fueled juggernaut of profit. It's goddamn wonderful.
User avatar
wing
the /b/slayer
 
Posts: 1876
Joined: Tue May 29, 2007 5:56 am UTC

Re: Databases!

Postby davean » Thu Dec 27, 2007 4:04 pm UTC

wing wrote:And the responsiveness difference you're seeing is probably just the physical hardware difference - MSSQL databases tend to live on shiny new servers running shiny new Microsoft operating systems and have a lifespan of about 3 years because they're fairly cheap. Oracle, however, has draconian licensing and is incredibly expensive, so it hangs around a lot longer without system upgrades.


Nah, even on identical HW Oracle is a dog. At the very least it has a horrible latency penalty, at the worst it is just straight slower.
User avatar
davean
Site Ninja
 
Posts: 2411
Joined: Sat Apr 08, 2006 7:50 am UTC

Re: Databases!

Postby microwaved » Thu Dec 27, 2007 7:51 pm UTC

I love ms sql server 2000, but it's the only database I've ever worked with. I've worked with it for about 3 years now and find it very easy to use though it does have it's quirks.
User avatar
microwaved
 
Posts: 64
Joined: Thu Dec 13, 2007 4:17 am UTC
Location: NE OH

Re: Databases!

Postby spelunker » Thu Dec 27, 2007 10:35 pm UTC

Anyone used SQLite? What's that one like? It seems to have a totally different design than the other rdb's, and I was wondering if that made it harder to work with.

Oh, and why use it? Is it good for like, embedding the database in your application or something?
spelunker
 
Posts: 102
Joined: Wed Dec 05, 2007 7:07 am UTC

Re: Databases!

Postby btilly » Thu Dec 27, 2007 11:01 pm UTC

spelunker wrote:Anyone used SQLite? What's that one like? It seems to have a totally different design than the other rdb's, and I was wondering if that made it harder to work with.

Oh, and why use it? Is it good for like, embedding the database in your application or something?

Yes, I've used SQLite. It is useful for any one-off jobs where you'd like to have a database but you don't want to bother installing a database.

Here are three typical use cases.

It is used in CPAN for a number of unit tests. You have something that you need to unit test, and you need to run the unit tests against a database. But the unit tests will be run on someone else's machine and you can't depend on a database being there. So you just register DBI and DBD::SQLite as dependencies, and in your unit test you set up, use, then tear down the SQLite database.

It was used at an old $job for email sends. You have a list of people to send email to. If you run into a problem you want to stop the send. But you want to be able to start it up again where you left off. Easily solved - just store the data in an SQLite database that you'll throw away when you're done.

Its simplicity makes it very useful for demos. See the Catalyst Tutorial for an example that does this.
Some of us exist to find out what can and can't be done.

Others exist to hold the beer.
btilly
 
Posts: 1877
Joined: Tue Nov 06, 2007 7:08 pm UTC

Re: Databases!

Postby pieaholicx » Fri Dec 28, 2007 3:20 am UTC

spelunker wrote:Oh, and why use it? Is it good for like, embedding the database in your application or something?

That would be an excellent use for it. The main advantage of it is that it doesn't run a server. Other databases require you to run a server which you'll run queries against, and hope it's working. However, since SQLite works as a file you should never save unencrypted sensitive data in it.

One other thing SQLite is good for is its ability to create a database directly into memory, so if you need to make a temporary database SQLite is the best solution.
It's okay, I'm Chaotic Neutral. I can kill him over the loot.
Overexposure to pieaholicx may, in semi-rare cases, emancipate dental fillings, crowns, tooth enamel, and teeth.
User avatar
pieaholicx
The cake is a lie!
 
Posts: 531
Joined: Mon Oct 22, 2007 12:51 pm UTC

Re: Databases!

Postby wing » Sat Dec 29, 2007 12:42 am UTC

I just fell in love with PostgreSQL's way of handling large binary objects. I LOVE IT! Not only do they not smash my tables, but I can access them AS STREAMS!!!!!! <33 Best database engine ever.
I AM A SEXY, SHOELESS GOD OF WAR!
Akula wrote:Our team has turned into this hate-fueled juggernaut of profit. It's goddamn wonderful.
User avatar
wing
the /b/slayer
 
Posts: 1876
Joined: Tue May 29, 2007 5:56 am UTC

Re: Databases!

Postby diamonds » Sat May 10, 2008 7:47 pm UTC

wing wrote:I just fell in love with PostgreSQL's way of handling large binary objects. I LOVE IT! Not only do they not smash my tables, but I can access them AS STREAMS!!!!!! <33 Best database engine ever.

That's interesting, but if it streams them over the network, wouldn't that have a performance impact? I use istringstream for such uses anyways, it doesn't have to be provided by the API.

I don't know why anyone is complaining about MySQL implementing NULL like that, especially since SQLite doesn't reject *anything* you put into it. I hate the fact that I can't make it error out even if I want it to. Yeah, I could use triggers and such, but come on. If I wanted to store a dynamic typed value, make a dynamic column type. But don't let me store the string "-742 pigs" into an unsigned int column!

That said, it is useful for small, embedded applications where you need a relational database with high reliability and little security.
##politico, the troll-free politics channel on Freenode (channel link)
diamonds
 
Posts: 72
Joined: Fri May 25, 2007 9:10 pm UTC
Location: Cave

Re: Databases!

Postby Goro » Sun May 11, 2008 2:13 pm UTC

The Oracle: I know you will buy me even if MySQL is better.
Neo: But if you already know, how can I make a choice?
The Oracle: Because you didn't come here to make a choice, you've already made it. You're here to try to understand why you made it.
//TODO:insert a signature
User avatar
Goro
 
Posts: 12
Joined: Wed May 07, 2008 5:04 pm UTC

Previous

Return to Religious Wars

Who is online

Users browsing this forum: 5ec2710l and 3 guests