python - Concurrent bulk insert statements on transactional table with index -
we have smallish, 40k rows, (thus far) transactional table index enabled on single column. index extremely valuable reads table tend quite frequent.
at times, multiple bulk insert statements performed on transactional table, quite 100s of mini bulk inserts (< 50 rows) in hour or two. might lie idle while. whilst each individual insert tends work quite well, these concurrent insert statements tend break (i.e. fail) after while , won't work unless restart instance.
is because of index? how can work around limitation? cursor.executemany preferable on cursor.execute in case? sending these insert queries task queue make difference?
any appreciated!
what's symptom of failure? error messages? check innodb monitor status when happens? http://dev.mysql.com/doc/refman/5.5/en/innodb-monitors.html
Comments
Post a Comment