CodingInnoDB

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  DSLPete (THE_TGG)  
 To:  99% of gargoyles look like (MR_BASTARD)     
36837.12 In reply to 36837.11 

No, you didn't read what I posted in reply to Mark originally.

 

myisam performance is not just down to the number of SELECTs you have, it's more complex than that and involves taking into account which of your queries will lock the entire table as they execute and which other queries may be running concurrently.

 

Any SELECTs involving joins, UPDATEs and INSERTs (in certain curcumstances) will cause the entire table to be write locked which may or may not be a problem depending on what else is going on at the same time.

 

For Marks tests, he seems to be doing quite intensive operations on a relatively large data set of 4.6m rows. I would hazard a guess that if he introduced some other query types on that data set to run concurrently (as one might get on a high transaction system) he would see some undesired locking situations.

0/0
 Reply   Quote More 

 From:  milko  
 To:  99% of gargoyles look like (MR_BASTARD)     
36837.13 In reply to 36837.11 
you could care less or you could not care less? Which? You say could so I assume that's what you meant, but then your next sentence claims you're being dismissive so I begin to think it's the opposite.

milko
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  DSLPete (THE_TGG)     
36837.14 In reply to 36837.12 
Which queries does that "in certain circumstances" apply to - just INSERTs or all three?

(and what are the circumstances?)
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  milko     
36837.15 In reply to 36837.13 
I was thinking the same. So many people seem to get that statement wrong.

0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
36837.16 In reply to 36837.15 
It's an american usage and as such is... fair enough. I suppose. It grates on me but if that's how they say it then that's how they say it.

0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Drew (X3N0PH0N)     
36837.17 In reply to 36837.16 
But it doesn't make sense. Surely it's better to just be right and actually make sense. Fools.

0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
36837.18 In reply to 36837.17 
I think it's just missing its second half, much like "great minds think alike...". It's also ore sarcastic I think.

0/0
 Reply   Quote More 

 From:  DSLPete (THE_TGG)  
 To:  Peter (BOUGHTONP)     
36837.19 In reply to 36837.14 

MyISAM has a concurrent insert mode, which you can play with to allow it to append records to the end of the data file (rather than hunting for a gap in the middle of the data file) if there is another SELECT in progress, thus avoiding locking that SELECT out.

 

You can tailor it to your individual circumstances.

 

http://dev.mysql.com/doc/refman/5.1/en/concurrent-inserts.html

0/0
 Reply   Quote More 

 From:  milko  
 To:  Drew (X3N0PH0N)     
36837.20 In reply to 36837.16 
Is Truffy an American now? I'm so confused!

I mean, if I went around saying "well, that's the way the gryphon crumbles" would you be like "well, he is half Welsh, so it's fine"?

milko
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  milko     
36837.21 In reply to 36837.20 
You spelled it like that on purpose didn't you? :(

Truffy is some sort of foreign. They're all essentially the same.

0/0
 Reply   Quote More 

 From:  milko  
 To:  Drew (X3N0PH0N)     
36837.22 In reply to 36837.21 
Yeah, it's because I live in Zone 3 on the tube.

milko
0/0
 Reply   Quote More 

 From:  99% of gargoyles look like (MR_BASTARD)  
 To:  DSLPete (THE_TGG)     
36837.23 In reply to 36837.12 
If you atomise though, which I do because I'm anal, all but the very simplest DB will involve joins of some sort or another though. Of course, 4.5M rows is a hell of a lot of rows!

bastard by name, bastard by nature

0/0
 Reply   Quote More 

 From:  99% of gargoyles look like (MR_BASTARD)  
 To:  milko     
36837.24 In reply to 36837.13 

It's kinda like saying I couldn't care less, but in a more sarcastic way as Xen said. I guess it should be 'I could care less, but not without trying hard' or some such but, frankly, I could care less.

 

I have no idea whether it's American usage. It's not Swiss German, that's for sure.

bastard by name, bastard by nature

0/0
 Reply   Quote More 

 From:  milko  
 To:  99% of gargoyles look like (MR_BASTARD)     
36837.25 In reply to 36837.24 
I think you need to either finish the sentence or use the less sarcastic form :-|

milko
0/0
 Reply   Quote More 

 From:  99% of gargoyles look like (MR_BASTARD)  
 To:  milko     
36837.26 In reply to 36837.25 

I could care less.
(hippo)
I like it as it is. (Even thought I feel dirty that it might be merkan.)

bastard by name, bastard by nature

0/0
 Reply   Quote More 

 From:  DSLPete (THE_TGG)  
 To:  99% of gargoyles look like (MR_BASTARD)     
36837.27 In reply to 36837.23 

You mean normalise, surely?

 

And, I don't get your point. Were you making a point?

0/0
 Reply   Quote More 

 From:  99% of gargoyles look like (MR_BASTARD)  
 To:  DSLPete (THE_TGG)     
36837.28 In reply to 36837.27 

I do mean normalise, yes. I was getting confused with summat I as reading on atomicity and transactions.

 

The point I was making was that many DBs will have SELECTs that include joins (including most of mine), so the MyISAM's weakness in SELECTs with joins is hardly trivial. OTOH, if it really only affects large tables ... how large is 'large'?

bastard by name, bastard by nature

0/0
 Reply   Quote More 

 From:  DSLPete (THE_TGG)  
 To:  99% of gargoyles look like (MR_BASTARD)     
36837.29 In reply to 36837.28 
Yes but mysql is *fast* so unless you are dealing with large volumes of data (e.g. 4.6 million rows and nasty self joins), it is more than likely you will never even hit a use case where 2 queries lock each other out - even if you do it will most likely only cause a lock of a few milliseconds which is moot for all you script kiddies writing your crazy blog sites in PHP and mysql.
0/0
 Reply   Quote More 

 From:  Matt  
 To:  ALL
36837.30 
Someone make InnoDB support compound auto-increments and fulltext searches and I'll love you forever.

doohicky

0/0
 Reply   Quote More 

 From:  THERE IS NO GOD BUT (RENDLE)   
 To:  DSLPete (THE_TGG)     
36837.31 In reply to 36837.29 

I've ended up using SimpleDB, which has no concept of joins but permits multiple values for attributes. So instead of 4 million rows, I've got 100,000 rows with around 40 values on each. Doing the same search takes a tenth of a second, plus, I get more information back and my algorithm is much more accurate.

 

Just registered a cool domain name, going to have a prototype within a week and beta by Xmas.

 

Edit: makes that a million records with 200 values on each. Doesn't seem to make any difference to response time.

Happy now?

0/0
 Reply   Quote More 

Reply to All  
 

1–20  21–34

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats