I'm not familiar with Percona, what problem does it solve?
Loading half a billion rows into MySQL
51–60 of 101 posts
Re: Loading half a billion rows into MySQL
#52Why would anyone partition tables -- ever?
Re: Loading half a billion rows into MySQL
#53I've witnessed this tolerance for mediocrity for years and it still continues to blow my mind.
Re: Loading half a billion rows into MySQL
#54Does it blow anyone else's mind that database servers are so powerful nowadays that you can just load half a billion rows into a SINGLE TABLE and pretty much expect things to work? Obviously there are caveats but all in all a nice chunk of RAM backed by a large SSD goes a long way.
Re: Loading half a billion rows into MySQL
#55I'm not familiar with Percona, what problem does it solve?
Re: Loading half a billion rows into MySQL
#56Does it blow anyone else's mind that database servers are so powerful nowadays that you can just load half a billion rows into a SINGLE TABLE and pretty much expect things to work? Obviously there are caveats but all in all a nice chunk of RAM backed by a large SSD goes a long way.
An SSD is on par with a 15K disk, but delivers 10X the perf, throw 10 SSDs in an array and you've got what used to cost $100,000 for about $5K
Re: Loading half a billion rows into MySQL
#57Assuming your event data is immutable (i.e. no UPDATEs, just INSERTs), you'd probably have fewer headaches long-term if you just dumped the database to flatfiles, stored in HDFS and queried using Hive (which has MySQLish query syntax anyway). This architecture will take you to billions of rows quite happily. This is the architecture we use for eventstream analysis at SnowPlow ( https://github.com/snowplow/snowplow ).
Re: Loading half a billion rows into MySQL
#58It's more work for the computer to process data stored as "rows" than data stored as columns. Think of how a disk is organized. If you abandon MySQL and store data as columns you can load a trillion rows. But forget I mentioned this.
Re: Loading half a billion rows into MySQL
#59Switch your tables into MyISAM and make a 13th table. insert the current month into the 13 table and query across all 13 tables when you need to get data out. At the end of the month move all records in the 13th table into its proper month table. ( make the 13th table a memory table sync it to disk every few minutes or put it on a really fast SSD )
Re: Loading half a billion rows into MySQL
#60Earlier quoted context omitted.
To save everyone the math, that's ~20k inserts a second.
Oracle can do a hell of a lot more than that if you preload your tables as transportable table spaces.