{"record":{"id":"ed18a92d2ebfdc5d","repo":"run-llama/llama_index","slug":"batching-not-supported-by-this-key-value-store","errorCode":null,"errorMessage":"Batching not supported by this key-value store.","messagePattern":"Batching not supported by this key-value store\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"llama-index-core/llama_index/core/storage/kvstore/types.py","lineNumber":32,"sourceCode":"    @abstractmethod\n    def put(self, key: str, val: dict, collection: str = DEFAULT_COLLECTION) -> None:\n        pass\n\n    @abstractmethod\n    async def aput(\n        self, key: str, val: dict, collection: str = DEFAULT_COLLECTION\n    ) -> None:\n        pass\n\n    def put_all(\n        self,\n        kv_pairs: List[Tuple[str, dict]],\n        collection: str = DEFAULT_COLLECTION,\n        batch_size: int = DEFAULT_BATCH_SIZE,\n    ) -> None:\n        # by default, support a batch size of 1\n        if batch_size != 1:\n            raise NotImplementedError(\"Batching not supported by this key-value store.\")\n        else:\n            for key, val in kv_pairs:\n                self.put(key, val, collection=collection)\n\n    async def aput_all(\n        self,\n        kv_pairs: List[Tuple[str, dict]],\n        collection: str = DEFAULT_COLLECTION,\n        batch_size: int = DEFAULT_BATCH_SIZE,\n    ) -> None:\n        # by default, support a batch size of 1\n        if batch_size != 1:\n            raise NotImplementedError(\"Batching not supported by this key-value store.\")\n        else:\n            for key, val in kv_pairs:\n                await self.aput(key, val, collection=collection)\n\n    @abstractmethod","sourceCodeStart":14,"sourceCodeEnd":50,"githubUrl":"https://github.com/run-llama/llama_index/blob/afd0fef371831f9bda13e5af7167cf4e981278ab/llama-index-core/llama_index/core/storage/kvstore/types.py#L14-L50","documentation":"Error \"Batching not supported by this key-value store.\" thrown in run-llama/llama_index.","triggerScenarios":"Thrown at llama-index-core/llama_index/core/storage/kvstore/types.py:32 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a kvstore implementation that supports batching, or issue individual put calls.","Check the store's capabilities and fall back to per-key operations."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd0fef371831f9bda13e5af7167cf4e981278ab","analyzedAt":"2026-08-15T05:42:58.429Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}