I am now trying to use Google Cloud SQL as a solution for my project. However, I found no way to scale writing there. It uses innoDB, so I can't use features of NDB cluster. So I wanted to make some sharding, however I am unable to find any information about this. Are there any ways to scale writes to Google Cloud SQL?
A single INSERT
statement with 100 row will run 10 times as fast as 100 single-row INSERTs
.
LOAD DATA
is probably the fastest way to do inserts.
In some situations it can be faster to use a staging table - put the rows to insert in it, then copy to the 'real' table(s).
Please give more details about the data flow, the table schema, and scale (eg, rows/second).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.