# Mysql 8 rocksdb engine csv loading performance

**URL:** <https://forums.percona.com/t/mysql-8-rocksdb-engine-csv-loading-performance/8099>\
**Category:** Percona Server for MySQL\
**Tags:** mysql\
**Created:** [October 3, 2020, 10:58am UTC](https://forums.percona.com/t/mysql-8-rocksdb-engine-csv-loading-performance/8099 "2020-10-03T10:58:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurevichar](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@gurevichar](https://forums.percona.com/u/gurevichar)\
**Post date:** [October 3, 2020, 10:58am UTC](https://forums.percona.com/t/mysql-8-rocksdb-engine-csv-loading-performance/8099/1 "2020-10-03T10:58:48Z")

</div>

Our system copies around 10B rows (each rows consists of few numbers) every day from Big Query to Mysql, the rows are fetched later by primary key (key-value style queries) with 10-20K reads per second. Ingestion process exports the rows from Big Query to CSV files and load them to Mysql with rocksdb engine (which should be write-optimized) with guidelines according to [https://www.percona.com/doc/percona-server/LATEST/myrocks/data\_loading.html](https://www.percona.com/doc/percona-server/LATEST/myrocks/data_loading.html)

Current benchmark on 16 Core / 84GB RAM server shows CSV load speed of 150-200K writes/sec which is not enough. The bottleneck is in the index creation (loading without the index is much faster).

Any ideas how can that be improved?

---

<div class="post-metadata">

**Author:** ![yves.trudeau](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/yves.trudeau/32/2825_2.png) [@yves.trudeau](https://forums.percona.com/u/yves.trudeau)\
**Post date:** [October 29, 2020, 10:30am UTC](https://forums.percona.com/t/mysql-8-rocksdb-engine-csv-loading-performance/8099/2 "2020-10-29T10:30:44Z")

</div>

Can you share the schema of the table and the rocksdb variables you have in your my.cnf
