diff --git a/hyperon_das_atomdb/database.py b/hyperon_das_atomdb/database.py index 07268966..8aa6b27f 100644 --- a/hyperon_das_atomdb/database.py +++ b/hyperon_das_atomdb/database.py @@ -898,6 +898,7 @@ def commit(self, **kwargs) -> None: This method is intended to be implemented by subclasses to handle the commit operation, which may involve persisting changes to a storage backend or performing other necessary actions to finalize the current state of the database. + Updates of atoms aren't allowed on the same transaction. Args: **kwargs: Additional keyword arguments that may be used by the implementation of the diff --git a/tests/integration/adapters/test_redis_mongo.py b/tests/integration/adapters/test_redis_mongo.py index 2ba9909d..3d79b663 100644 --- a/tests/integration/adapters/test_redis_mongo.py +++ b/tests/integration/adapters/test_redis_mongo.py @@ -791,6 +791,7 @@ def test_get_matched_with_pagination(self, _cleanup, _db: RedisMongoDB): def test_create_field_index(self, _cleanup, _db: RedisMongoDB): db = _db self._add_atoms(db) + db.commit() db.add_link( { "type": "Similarity",