Django model id has gaps -
i have django 1.7rc project running on multiple app servers , mysql.
i have noticed primary key of model has gaps, eg, 10001 jumps 10003, 10011 jumps 10014. cannot figure out why, there no code delete records directly, cascade deleted, investigate further.
order = order(cart=cart) order.billing_address = billing_address order.payment = payment order.account = account order.user_uuid = account.get('uuid') order.save() thought ask here if normal on multiple app server setup?
gaps in primary key normal (unless you're using misconfigured sqlite table, not use monotonic pk default) , maintain referential integrity. having said that, caused deletions or updates within table, cascaded or otherwise. verify have no code may delete or update pk in table, directly or indirectly.
Comments
Post a Comment