Closed 0x501D closed 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.
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?
ddl.bucket_id()
I agree, caching the sharding keys is meaningless.
We have cache for sharding function: #85.
Logically, we can also cache the sharding keys and get rid of get_metadata() finction.