1. Home
  2. Docs
  3. Matic
  4. Polygon SDK
  5. Storage




The Polygon SDK currently utilizes LevelDB for data storage, as well as an in-memory data store.

Throughout the SDK, when modules need to interact with the underlying data store, they don’t need to know which DB engine or service they’re speaking to.

The DB layer is abstracted away between a module called Storage, which exports interfaces that modules query.

Each DB layer, for now only LevelDB, implements these methods separately, making sure they fit in with their implementation.



In order to make querying the LevelDB storage deterministic, and to avoid key storage clashing, the Polygon SDK leverages prefixes and sub-prefixes when storing

Future Plans

The plans for the near future include adding some of the most popular DB solutions, such as:

  • PostgreSQL
  • MySQL

📜 Resources

Originally published @ https://sdk-docs.polygon.technology/docs/reference/modules/storage

Was this article helpful to you? Yes No

How can we help?