Quote
InnoDB supportsÂSPATIAL indexing of columns containing spatial data (see Section 13.4.9, âOptimizing Spatial Analysisâ).To handle locking for operations involvingÂ
SPATIAL indexes, next-key locking does not work well to supportÂREPEATABLE READ orÂSERIALIZABLE transaction isolation levels. There is no absolute ordering concept in multidimensional data, so it is not clear which is the ânextâ key.To enable support of isolation levels for tables withÂ
SPATIALÂ indexes,ÂInnoDBÂ uses predicate locks. AÂSPATIALÂ index contains minimum bounding rectangle (MBR) values, soÂInnoDBÂ enforces consistent read on the index by setting a predicate lock on the MBR value used for a query. Other transactions cannot insert or modify a row that would match the query condition.