0

We had standalone DB with innodb engine, on it `auto_increment was working perfectly giving sequential numbers 1,2,3,4,5

But when we moved to NDB Cluster, it started backfilling available numbers. for example if i have

12,13,14,16,17

if i add new entry it will take place 15 it suppose to add entry in 18

is there any configuration this there? which we missed?

UPDATE

SHOW CREATE TABLE tablename output is following

 in_invoices | CREATE TABLE `in_invoices` (
      `invoice_id` int(11) NOT NULL AUTO_INCREMENT,
      ...
      ...
      ENGINE=ndbcluster AUTO_INCREMENT=2051 DEFAULT CHARSET=utf8 |
Community
  • 1
  • 1
Satish
  • 16,544
  • 29
  • 93
  • 149

1 Answers1

0

The definition of AUTO_INCREMENT says that they will be distinct values, it says nothing about backfilling or not, nor when gaps are generated. Do not depend on such.

Rick James
  • 135,179
  • 13
  • 127
  • 222