Scaling database. The easiest one!?

Greg D. wrote:

On Wed, Oct 7, 2009 at 12:27 PM, Marnen Laibow-Koser
[email protected] wrote:

I did not lie. �I stand by my original statement and see no reason to
retract or revise it.

You did lie. I have the email right in front of me. You said “I use
PostGIS a lot. There is nothing comparable for mySQL.”.

Then I showed you the url for the MySQL spacial extension. Here it is
again in case you missed it:

http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions.html

It was created to solve the same problem as PostGIS, therefore they
are indeed “comparable”.

No. I saw that assertion, and I disagree with it. Their feature sets
are not comparable. They cannot be used comparably in my experience.

Perhaps you’d like to respond to my statements with data and facts,
not ad hominem attacks.

I’m not “telling lies” as you claim – I’m stating what I believe is
true.

Believe what you want, it doesn’t make your lie true.

If I am stating what I believe to be true, then by definition it is not
a lie. It may be an error, but it is not a lie.

Or should I start calling you a liar because I believe you’re simply
wrong?


Greg D.
http://destiney.com/

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Quite wrong. Â I know mySQL, if anything, a bit better than PostgreSQL.

No you do not. You did not even know SQL_MODE.
<…>

Regards,
Rimantas

http://rimantas.com/

Greg D. wrote:

On Wed, Oct 7, 2009 at 11:21 AM, Philip H. [email protected] wrote:

So where the
issues of inserting data that is too long and having it be silently
truncated – yes, I’m ignoring the warnings MySQL provides. It should
raise an error…

It does raise an error if you’re knowledgeable enough to know about
the various strict modes you can set:

What is the default behavior?

On Wed, Oct 7, 2009 at 12:27 PM, Marnen Laibow-Koser
[email protected] wrote:

I did not lie. I stand by my original statement and see no reason to
retract or revise it.

You did lie. I have the email right in front of me. You said “I use
PostGIS a lot. There is nothing comparable for mySQL.”.

Then I showed you the url for the MySQL spacial extension. Here it is
again in case you missed it:

http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions.html

It was created to solve the same problem as PostGIS, therefore they
are indeed “comparable”.

I’m not “telling lies” as you claim – I’m stating what I believe is
true.

Believe what you want, it doesn’t make your lie true.


Greg D.
http://destiney.com/

Guys, you’re turning this into a DB flamewar and I’m sure that’s what
this thread was ment to.

The thread title asks for the easiest DB for scaling.
I agree that PostGIS rocks, and I don’t agree that MySQL sucks. I like
PostgreSQL very much over MySQL, I think the logos for each product
speak for themselves (a dolphin vs an elephant) and I also like
PostgreSQL because of its “opensourceness” overall. But that’s all,
it’s a matter of tastes and/or experiences with one or the other. This
is not a flame war.
Let’s help the guy here, after all, that’s what a mailing list should
be useful for.

Cheers.


Leonardo M…
There’s no place like ~

Rimantas L. wrote:

Quite wrong. Â I know mySQL, if anything, a bit better than PostgreSQL.

No you do not. You did not even know SQL_MODE.
<…>

Yes, you found an obscure setting that I was unaware of. I’m sure there
are more. I don’t know 100% of either system’s config parameters, and I
don’t claim to. But I do know both systems well enough to have used
both for advanced development.

Regards,
Rimantas

http://rimantas.com/

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

On Wed, Oct 7, 2009 at 12:52 PM, Marnen Laibow-Koser
[email protected] wrote:

Their feature sets
are not comparable. They cannot be used comparably in my experience.

That’s like saying you don’t drive red cars very much so it’s
impossible to compare red cars and blue cars.


Greg D.
http://destiney.com/

On Wed, Oct 7, 2009 at 1:06 PM, Marnen Laibow-Koser
[email protected] wrote:

Yes, you found an obscure setting

Obscure? It’s right there in the documentation! Jesus Christ man,
it’s not like I went digging on some mailing list from 1997 to find
it.

I mean really, does this page/url look obscure?

http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html

The version from 5+ years ago is even still available:

http://dev.mysql.com/doc/refman/4.1/en/server-sql-mode.html

that I was unaware of. I’m sure there
are more. I don’t know 100% of either system’s config parameters, and I
don’t claim to. But I do know both systems well enough to have used
both for advanced development.

That’s fine. But don’t start bashing MySQL thinking you know
something about it when clearly you don’t.


Greg D.
http://destiney.com/

On Wed, Oct 7, 2009 at 4:26 PM, Rob S. [email protected] wrote:

That’s fine. But don’t start bashing MySQL thinking you know
something about it when clearly you don’t.

that’s something of a leap. Just because someone doesn’t know
about a particular feature of MySQL does not negate them
knowing “something about it.”

The only leap I’m seeing here is a database bigot claiming MySQL
doesn’t do something when it has had the capability for more than 5
years. PostgreSQL is a fine database (I’ve been using it forever too)
but loving it doesn’t doesn’t give you the right to spread lies about
MySQL.


Greg D.
http://destiney.com/

Greg D. wrote:

On Wed, Oct 7, 2009 at 4:26 PM, Rob S. [email protected] wrote:

That’s fine. �But don’t start bashing MySQL thinking you know
something about it when clearly you don’t.

that’s something of a leap. Just because someone doesn’t know
about a particular feature of MySQL does not negate them
knowing “something about it.”

The only leap I’m seeing here is a database bigot claiming MySQL
doesn’t do something when it has had the capability for more than 5
years.

You’re dragging in an irrelevant issue from a whole different discussion
that forms a minor – or rather, negligible – part of my dislike of
mySQL. And for the record, I’m not a database bigot. I love mySQL’s
friendliness and ease of setup, but I think it has severe shortcomings.
If those shortcomings were fixed, or if I turn out to be wrong about the
ones that affect me, I would be very happy to never touch Postgres
again.

PostgreSQL is a fine database (I’ve been using it forever too)
but loving it doesn’t doesn’t give you the right to spread lies about
MySQL.

Of course it doesn’t. Which is why I don’t do that.


Greg D.
http://destiney.com/

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Greg D. wrote:

http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html

That’s fine. But don’t start bashing MySQL thinking you know
something about it when clearly you don’t.

that’s something of a leap. Just because someone doesn’t know
about a particular feature of MySQL does not negate them
knowing “something about it.”

Aaron T. wrote:

On Wed, Oct 7, 2009 at 2:43 PM, Greg D. [email protected] wrote:

doesn’t do something when it has had the capability for more than 5
years. �PostgreSQL is a fine database (I’ve been using it forever too)
but loving it doesn’t doesn’t give you the right to spread lies about
MySQL.

You know what the saddest part of this little flame war? It’s not
even on topic.

I had noticed that, and failed to act on that realization. You’re quite
right.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

On Wed, Oct 7, 2009 at 2:43 PM, Greg D. [email protected] wrote:

doesn’t do something when it has had the capability for more than 5
years. PostgreSQL is a fine database (I’ve been using it forever too)
but loving it doesn’t doesn’t give you the right to spread lies about
MySQL.

You know what the saddest part of this little flame war? It’s not
even on topic. The OP asked about scalability and you’re all in a
pissing contest over GIS support and default settings and how they
affect date conversions.

Seriously, you’d think someone insulted their mother based on the
accusations flying around. Grow up.


Aaron T.
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix &
Windows
Those who would give up essential Liberty, to purchase a little
temporary
Safety, deserve neither Liberty nor Safety.
– Benjamin Franklin

Diego,

Have a look at a version of MySql, Percona:

It is an improved version of MySql and they have an improvement of
InnoDB, XtraDB. I would just use a dedicated server for your DB, quad-
core with a lot of RAM, that’s all. In the future you can add more
MySql server in read mode… there are few ways to run MySql in a
cluster.

Check out this book for MySql performance, clusters and more:
http://amzn.com/0596101716

On Oct 7, 7:06 pm, Marnen Laibow-Koser <rails-mailing-l…@andreas-

Greg D. wrote:

On Wed, Oct 7, 2009 at 5:50 AM, Marnen Laibow-Koser
[email protected] wrote:

Anyway, mySQL and SQLite are problematic

I’ve used both much success over the years. What sort of problems are
you having?

This is my main reason against MySQL:

PostgreSQL has a transactional DDL so when a Rails migration breaks the
database undoes all the changes it made. MySQL leaves the database
half-changed and maybe in an inconsistent state. That’s awful when it
happens in production, maybe in a migration that was moving data around
after having removed and added columns. It’s not always possible to test
everything in pre-preproduction so PostgreSQL is a much safer than
choice MySQL.

Granted, it’s probably possible to code around this limitation of MySQL
but it costs more than just using a (IMHO) better db.

Paolo

(first of all, sry about my english)

Ive been studing postgres and mysql, and they have theirs pros and cons.

For me postgresql pros:

  • Im using OLAP, dont have alot of data today, but its growing, and is
    very intensive query, everyone say that postgresql is better on complex
    queries.

  • pl/ruby, this can help offloading somes intensive operations from
    application to databse, and programming in ruby :slight_smile: (very, very, very
    nice!)

For me mysql pros:

  • Easy to setup

  • Scalling is easy

  • Have more administrative tools

Maybe i can have both databases, the main mysql running the whole
website, something like the 37signalx box, lots of cores and memory and
one postgresql database to run olap queries. What you guys think about
it!?

One thin im worry about in Mysql is data integrity, this is solved using
InnoDB? or still Postgres more safe? Im talking about everything,
transactions, corrupted data, incosistent data and so.

Another question, about full text search, its better stick with the one
inside de database or something external like Sphinx!? Im worring about
speed and easy of use.

Thanks everyone for helping me :slight_smile:

PostgreSQL seems to have more advanced implementation but I doubt
it can beat Sphinx in terms of features and speed.

Agreed. tsearch2 is good, but being able to split off your search
onto other hardware and not hit the database is also nice…

Sphinx along with the thinking sphinx plugin is awesome.

  • Im using OLAP, dont have alot of data today, but its growing, and is
    very intensive query, everyone say that postgresql is better on complex
    queries.

Generalizations like these do not make any sense because of lots
and lots of variables involved: data set structure, size, query type,
schema design, indexes, db engine in MySQL case, RAM, hardware, etc.
Everything should bet tuned for particular task and only in that context
we can talk about speed.
Saying “X is slow and Y is fast” means nothing without context.
And even in the case query Q is faster on dataset D on database X
does not mean that database Y cannot be tuned to perform faster than
that.

<…>

Another question, about full text search, its better stick with the one
inside de database or something external like Sphinx!? Im worring about
speed and easy of use.

My vote goes for Sphinx. MySQL full text search limits you to MyISAM
tables and is only suitable if you need very basic search features and
you
dataset is not very big.

PostgreSQL seems to have more advanced implementation but I doubt
it can beat Sphinx in terms of features and speed.

Regards,
Rimantas

http://rimantas.com/