databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.71k stars 732 forks source link

refactor: add mget_id_value_compat() #16425

Closed drmingdrmer closed 2 weeks ago

drmingdrmer commented 2 weeks ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

refactor: add mget_id_value_compat()

mget_id_value_compat([names]) fetch a list of name->id->value from meta-service with exact 2 mget() operations.

This method can be used to optimize batch get operations. For example to get a list of (DatabaseNameIdent, DatabaseId, DatabaseMeta).

This method requires the id type to be a Id<xxxId> type.

Tests

Type of change

Related Issues


This change isโ€‚Reviewable