mysql - Faster updates on database? -


we trying move our databases (mysql) amazon redshift (data warehouse), , facing problem while updating warehouse db. have enabled general logging on our db , replaying these queries general log on redshift. updates queries taking around 6-7 secs. looking way execute these updates @ faster speed? amazon redshift internally uses postgre db, , it'll great if has resolved problem redshift/postgre can suggest solution. although general approach make updates faster helpful. 1 solution have tried merging updates set of deletes , inserts. updates on single table transform single delete query combined clauses , single batch insert query. either provide alternative solution or comment on solution tried?

redshift not intended used 'regular' database - data should inserted using copy command (or create table syntax) use selects.

operations on single rows (like inserting or updating) not database optimised for.

proposed workaround (using delete/insert) instead of update increase speed, remeber added rows inserted unsorted chunk of database, after vacuum data correctly sorted , unused space reclaimed use.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -