MySQL Question???
Author
Discussion

RacingPete

Original Poster:

9,212 posts

236 months

Wednesday 14th November 2007
quotequote all
For all the MySQL experts on here, I really need to bounce some ideas off you as we don't have anyone in-house to use (all MS SQL here, like my background), can you PM me please?

tigger1

8,491 posts

253 months

Wednesday 14th November 2007
quotequote all
What sort of mysql question?

RacingPete

Original Poster:

9,212 posts

236 months

Wednesday 14th November 2007
quotequote all
Its around the MySQL optimisation area.

BliarOut

72,863 posts

271 months

Wednesday 14th November 2007
quotequote all
forums.mysql.com ?

zaktoo

805 posts

239 months

Wednesday 14th November 2007
quotequote all
MySQL optimisation is easy: use PostgreSQL instead :P

whygee02

3,458 posts

232 months

Wednesday 14th November 2007
quotequote all
RacingPete said:
For all the MySQL experts on here, I really need to bounce some ideas off you as we don't have anyone in-house to use (all MS SQL here, like my background), can you PM me please?
YHM

mystomachehurts

11,669 posts

282 months

Wednesday 14th November 2007
quotequote all
zaktoo said:
MySQL optimisation is easy: use PostgreSQL instead :P
Gimme a few more days and I'll be able to verify if this satement is correct with 80 million+ records in one of my tables!

Still, I was mightily disappointed that after installing PostgreSQL, I couldn't even get the bloody service to start.

Still, haven't got time to look at it just at the moment, so it's on the back-burner. wink

RacingPete

Original Poster:

9,212 posts

236 months

Wednesday 14th November 2007
quotequote all
whygee02 said:
RacingPete said:
For all the MySQL experts on here, I really need to bounce some ideas off you as we don't have anyone in-house to use (all MS SQL here, like my background), can you PM me please?
YHM
Your email bounced when sending to it... hmmm

whygee02

3,458 posts

232 months

Wednesday 14th November 2007
quotequote all
Thats odd as its all done via this PH site. I recieved a copy of the PM I sent you to my email address, so that bit seems to be working.

Dunno what to suggest without giving out my personal email address or mobile. Is the query confidential or can you stick not post it up here.

RacingPete

Original Poster:

9,212 posts

236 months

Wednesday 14th November 2007
quotequote all
I dont really want to put the full details on here and rather do offline. I will try again.

tigger1

8,491 posts

253 months

Wednesday 14th November 2007
quotequote all
mystomachehurts said:
zaktoo said:
MySQL optimisation is easy: use PostgreSQL instead :P
Gimme a few more days and I'll be able to verify if this satement is correct with 80 million+ records in one of my tables!

Still, I was mightily disappointed that after installing PostgreSQL, I couldn't even get the bloody service to start.

Still, haven't got time to look at it just at the moment, so it's on the back-burner. wink
<willy-waving>
My biggest table only has 79,886,295 rows...
</willy-waving>

Not really big on the admin' side - sorry, I just play with the numbers wink

mystomachehurts

11,669 posts

282 months

Wednesday 14th November 2007
quotequote all
tigger1 said:
mystomachehurts said:
zaktoo said:
MySQL optimisation is easy: use PostgreSQL instead :P
Gimme a few more days and I'll be able to verify if this satement is correct with 80 million+ records in one of my tables!

Still, I was mightily disappointed that after installing PostgreSQL, I couldn't even get the bloody service to start.

Still, haven't got time to look at it just at the moment, so it's on the back-burner. wink
<willy-waving>
My biggest table only has 79,886,295 rows...
</willy-waving>

Not really big on the admin' side - sorry, I just play with the numbers wink
Not really about willy waving though is it?

I'm just trying to scope the issues. If someone came on here and said "We comfortably manage 160 million rows in our MySQL DB, then I'd be PMing them asking for their telephone number and booking a flight over to visit them. I'd take them all out for dinner and beg for a bit of exposure to their DB config and hardware platforms.

Some of us are trying to make a living out of doing this stuff. I've fallen flat on my face with MySQL handling this amount of data. My Customer's aren't happy, I'm not happy, and to be honest if I can't get this fixed in the next week or two it's going to be a very barren Christmas as my clients are refusing to sign off on the work we have done.

PostgrSQL is something that I am seriously looking into, however as I've said, in the brief amount of free time that I've got, I've been unable to even get the service to start. It's bound to be something trivial, but as yet I can't find it, and in this day and age I kind of expect this stuff to work out of the box.

wink

RacingPete

Original Poster:

9,212 posts

236 months

Wednesday 14th November 2007
quotequote all
Sounds like a deal...

Now at what point in dinner do I then tell you I only have 7 million rows in my database wink

mystomachehurts

11,669 posts

282 months

Wednesday 14th November 2007
quotequote all
RacingPete said:
Sounds like a deal...

Now at what point in dinner do I then tell you I only have 7 million rows in my database wink
Here we go, I purged the events table at 10:00am this morning...
Now look at it, and how long it took to count the records frown


mysql> select count(protocol_id) from events;
+--------------------+
| count(protocol_id) |
+--------------------+
| 37348849 |
+--------------------+
1 row in set (50.30 sec)

mysql>

silent k

783 posts

263 months

Wednesday 14th November 2007
quotequote all
mystomachehurts said:
RacingPete said:
Sounds like a deal...

Now at what point in dinner do I then tell you I only have 7 million rows in my database wink
Here we go, I purged the events table at 10:00am this morning...
Now look at it, and how long it took to count the records frown


mysql> select count(protocol_id) from events;
+--------------------+
| count(protocol_id) |
+--------------------+
| 37348849 |
+--------------------+
1 row in set (50.30 sec)

mysql>
Crikey that's a lot of records! I reckon you should be talking to Google or someone like that as I think they use mySQL for some of their stuff. Is it doing a lot of inserts while your trying to do the Count? Could it be rebuilding indexes or something like that?

ThatPhilBrettGuy

11,810 posts

272 months

Wednesday 14th November 2007
quotequote all
mystomachehurts said:
RacingPete said:
Sounds like a deal...

Now at what point in dinner do I then tell you I only have 7 million rows in my database wink
Here we go, I purged the events table at 10:00am this morning...
Now look at it, and how long it took to count the records frown


mysql> select count(protocol_id) from events;
+--------------------+
| count(protocol_id) |
+--------------------+
| 37348849 |
+--------------------+
1 row in set (50.30 sec)

mysql>
If it's just counting you're doing, then SHOW TABLE STATUS can give all the info you need.....

plasticpig

12,932 posts

257 months

Wednesday 14th November 2007
quotequote all
I am not tha familiar with MYSQL but surley optimisation is somewhat dependent which database engine you choose?

tigger1

8,491 posts

253 months

Friday 16th November 2007
quotequote all
mystomachehurts said:
tigger1 said:
mystomachehurts said:
zaktoo said:
MySQL optimisation is easy: use PostgreSQL instead :P
Gimme a few more days and I'll be able to verify if this satement is correct with 80 million+ records in one of my tables!

Still, I was mightily disappointed that after installing PostgreSQL, I couldn't even get the bloody service to start.

Still, haven't got time to look at it just at the moment, so it's on the back-burner. wink
<willy-waving>
My biggest table only has 79,886,295 rows...
</willy-waving>

Not really big on the admin' side - sorry, I just play with the numbers wink
Not really about willy waving though is it?

I'm just trying to scope the issues. If someone came on here and said "We comfortably manage 160 million rows in our MySQL DB, then I'd be PMing them asking for their telephone number and booking a flight over to visit them. I'd take them all out for dinner and beg for a bit of exposure to their DB config and hardware platforms.

Some of us are trying to make a living out of doing this stuff. I've fallen flat on my face with MySQL handling this amount of data. My Customer's aren't happy, I'm not happy, and to be honest if I can't get this fixed in the next week or two it's going to be a very barren Christmas as my clients are refusing to sign off on the work we have done.

PostgrSQL is something that I am seriously looking into, however as I've said, in the brief amount of free time that I've got, I've been unable to even get the service to start. It's bound to be something trivial, but as yet I can't find it, and in this day and age I kind of expect this stuff to work out of the box.

wink
Fair point MSH - I was in a flippant mood, and if I could help I would, but system architecture and stuff like this are just not my thing. I can normalise databases and so on, and query them in the most un-Godly fashion, and make sense of what I get from teh queries in a clear analytical way, but I haven't yet found a "silver bullet" "dbo.MakeGoFasterNow" command. Hope you get it sorted though!