June 19, 2013

Post: INSERT INTO ... SELECT Performance with Innodb tables.

MySQL Server) as otherwise the script will fail second time. If you need result to be even closer to one of INSERT… indexed you might chop transactions and process rows by small bulks, which do not cause long enough locks to cause the… 224576 MySQL thread id 1794751, query id 6994931 localhost root Sending data insert into test select * from sample ——– As you can see INSERT… SELECT…

Post: MySQL Server Memory Usage

…queries memory usage might be even larger – bulk inserts may allocate bulk_insert_buffer_size bytes of memory if …. Here is why: List of rarely considered MySQL Server Memory Requirements Thread buffers can be …has its own table cache in which meta data about each table accessed from the start is…

Post: Aligning IO on a hard disk RAID – the Benchmarks

….cnf configuration: [mysqld] datadir=/data/mysql socket=/var/run/mysqld/mysqld.sock innodb_file_per_table = true innodb_data_file_path = ibdata1:10M…_size = 0 tmp_table_size = 64M key_buffer_size = 8M bulk_insert_buffer_size = 8M myisam_sort_buffer_size = 8M myisam_max… write intensive workloads where there’s a lot of data being modified, inserts are done to random positions (not consecutive PK causing…

Post: SELECT LOCK IN SHARE MODE and FOR UPDATE

…simple example: SESSION1: mysql> begin; Query OK, 0 rows affected (0.00 sec) mysql> insert into tst values(1… effectively implement instant data invalidation – using SELECT FOR UPDATE to quickly lock data which is no … is memory and CPU overhead. For some bulk operations it would be more efficient to …

Post: MySQL 5.6.7-RC in tpcc-mysql benchmark

…: CentOS 6.3 MySQL Version: 5.6.7-RC Benchmark specification Benchmark name: tpcc-mysql Scale factor: 2500W (~250GB of data) Benchmark length… flushing still requires big log files. MySQL configuration: [mysqld] gdb innodb_file_per_table = true innodb_data_file_path = ibdata1:100M:autoextend… = 8M read_buffer_size = 1M read_rnd_buffer_size = 4M bulk_insert_buffer_size = 8M myisam_sort_buffer_size = 8M myisam_max…

Post: How many partitions can you have ?

… customer dealing with large MySQL data warehouse had the table which was had data merged into it with INSERT ON DUPLICATE KEY UPDATE statements… set same as ID column) using bulk insert statements – 1000 rows in each. Loading the data was taking 9 seconds for 1 partitions… (max 2) partitions got data inserted to them per insert statement. As I tested the UPDATE path on INSERT OF DUPLICATE KEY UPDATE (adding…

Post: Using MyISAM in production

…has to be one insert at the time. Happily inserts in MyISAM are … you need to run some bulk operations. For example running full … is enough. Lock priorities. By default MySQL treats updates as higher priority operations… and always available. For example statistical data. Data on slave servers. If it …

Comment: Linux schedulers in tpcc like benchmark

…). Domas, does this differs from ext3′s data=writeback side effects? Peter, my comment about … which would allow exposing this to consumers (although MySQL offers INSERT DELAYED). Back to the subject, I … or is it more of a “plain sequential bulk insert/update on a very few tables” thing? Seekwatcher…

Post: Heikki Tuuri answers to Innodb questions, Part II

Mysql is the main one with “innodb_buffer_pool_size=20480M”) while the bulk of… been several MySQL bugs opened about multi-core scalability (concurrent queries, autoincrement, concurrent inserts, instrumentation, etc…is a good way to get large data manageable. MySQL Master Master Manager can help …

Comment: Should you move from MyISAM to Innodb ?

Inserts drop to 2500 samples / seconds (400 kB per second) when compression is on. We perform bulk inserts…if exeeded, mysql does not recognise the search engine (!) anymore. Removing the compression helps for insert performance….may be populated with a lot of redundant data. Any idea? would falcon be…