python - Django w/ MySQL non-transactional changed tables couldn't be rolled back -
keep getting warning using mysql database:
some non-transactional changed tables couldn't rolled back
i'm not sure means or if causing problem hoping able fill me in on means.
i taking csv file, reading line-by-line , creating django objects using get_or_create
. after message, when try recreate it, further csv file before warning occurs.
i tried reading error online don't understand means. ideal figure out whats causing if can't wondering if can suppress warning because maybe isn't effect database negatively.
this happens when mix transactional
, non-transactional
tables. changes non- transactional tables not effected rollback
statement.
for reasons may have happened can turn docs:
if not deliberately mixing transactional , nontransactional tables within transaction, cause message table thought transactional not. can happen if try create table using transactional storage engine not supported mysqld server (or disabled startup option). if mysqld not support storage engine, instead creates table myisam table, nontransactional.
this effect things negatively if have http
request kicks of transaction, make changes, , need rollback. transactional tables rollback others not. if transactional storage engine requirement software should consider taking steps migrate relevant tables innodb
engine.
Comments
Post a Comment