mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
7e6ab3a006
Add a check if setting an auto_increment field will change it's next value before retrieving tuple_id_range lock. This avoids hitting locks when updating auto_increment values to a lower value than the current maximum. This is useful in loading a table with auto_increment where one loads the highest numbered pk's first and then proceeds backwards to the first. This can then be achieved with the same performance as a normal insert without auto_increment. ndb_restore.result: Updated result file mysql-test/suite/ndb/r/ndb_restore.result: Updated result file sql/ha_ndbcluster.cc: Add a check if setting an auto_increment field will change it's next value before retrieving tuple_id_range lock. This avoids hitting locks when updating auto_increment values to a lower value than the current maximum. This is useful in loading a table with auto_increment where one loads the highest numbered pk's first and then proceeds backwards to the first. This can then be achieved with the same performance as a normal insert without auto_increment. storage/ndb/include/ndbapi/Ndb.hpp: Add a check if setting an auto_increment field will change it's next value before retrieving tuple_id_range lock. This avoids hitting locks when updating auto_increment values to a lower value than the current maximum. This is useful in loading a table with auto_increment where one loads the highest numbered pk's first and then proceeds backwards to the first. This can then be achieved with the same performance as a normal insert without auto_increment. storage/ndb/src/ndbapi/Ndb.cpp: Add a check if setting an auto_increment field will change it's next value before retrieving tuple_id_range lock. This avoids hitting locks when updating auto_increment values to a lower value than the current maximum. This is useful in loading a table with auto_increment where one loads the highest numbered pk's first and then proceeds backwards to the first. This can then be achieved with the same performance as a normal insert without auto_increment. |
||
---|---|---|
.. | ||
Ndb.hpp | ||
ndb_cluster_connection.hpp | ||
ndb_opt_defaults.h | ||
NdbApi.hpp | ||
ndbapi_limits.h | ||
NdbBlob.hpp | ||
NdbDictionary.hpp | ||
ndberror.h | ||
NdbError.hpp | ||
NdbEventOperation.hpp | ||
NdbIndexOperation.hpp | ||
NdbIndexScanOperation.hpp | ||
NdbIndexStat.hpp | ||
NdbOperation.hpp | ||
NdbPool.hpp | ||
NdbRecAttr.hpp | ||
NdbReceiver.hpp | ||
NdbScanFilter.hpp | ||
NdbScanOperation.hpp | ||
NdbTransaction.hpp |