tarantool / ddl

The DDL module enables you to describe data schema in a declarative YAML-based format.
BSD 2-Clause "Simplified" License
12 stars 6 forks source link

Caching of the sharding keys #88

Closed 0x501D closed 2 years ago

0x501D commented 2 years ago

We have cache for sharding function: #85.
Logically, we can also cache the sharding keys and get rid of get_metadata() finction.

Totktonada commented 2 years ago

Caching of the sharding function aims to speed up the ddl.bucket_id() function, which looks pretty hot (i.e. called in each request). What is the goal here?

0x501D commented 2 years ago

I agree, caching the sharding keys is meaningless.