May 26, 2012

Comment: Database access Optimization in Web Applications.

… columns: – Query can be index covered if you select limited number of columns. – Selecting all columns may require more network traffic and… having 100 float columns, vs selecting only couple of them :) So instead of thinking if it would slow things down in your case… other reasons SELECT * is bad practice besides performance – for example reffering to columns by offsets may break if column inserted between other…

Post: InnoDB: look after fragmentation

… data by primary key was slow. How slow ? Let me show. The query in question is (Q1): SELECT count(distinct username) FROM tracker… now with Q2 ? yes, it’s getting slow now, as we made key “block_id” inserted not in order. +—————————+ | count(distinct username…

Post: Identifying the load with the help of pt-query-digest and Percona Server

…; SET timestamp=1325145746; select count(*) from auto_inc; Compare that to Percona Server with log_slow_verbosity=full: # Time…, the number of tmp tables created in memory vs on-disk, percentage of queries that needed full scan….6% 260 0.0002 1.00 0.00 INSERT poller_output # MISC 0xMISC 0.8137 10.0% …

Post: Analyzing air traffic performance with InfoBright and MonetDB

…(the query Q0 is: select avg(c1) from (select year,month,count(*) as c1…scanning wide range of rows, the slowness here is similar to Q0. -Q8…This experiment was not really about InfoBright vs MonetDB comparison. My goal was …only LOAD DATA. InfoBright Enterprise allows INSERT / UPDATE but that also is …

Post: To UUID or not to UUID ?

… of 32 bytes vs 4 bytes for key value – if you would use integer key and insert data in random … Innodb tables aspect of primary key selection – you often can gain a lot by selecting primary key which provides data … about 200 rows/sec and the it is still slowing down a bit as key file growths. So in …

Post: Just do the math!

… this ? Say you have query like “SELECT page,count(*) cnt FROM logs GROUP… scan the table, when for each row insert (or update) row in the temporary … of index accesses, joins etc may be slowed down 100-1000 then going from…. Finally let me talk about modeling vs benchmarking for capacity planning. I’m…

Post: Heikki Tuuri answers to Innodb questions, Part II

…: I should note MySQL 5.0 vs 4.1 has a lot of… data smaller) or can a bit slow it down. Plus there were bunch…-core scalability (concurrent queries, autoincrement, concurrent inserts, instrumentation, etc.). Rather than treat each… up in “show innodb status”. select * from table where id=5 show …