0

Seems there is a catalog module in TDengine database ,but I don't know what is used for

typedef struct SCatalog { uint64_t clusterId; SHashObj *userCache; //key:user, value:SCtgUserAuth SHashObj *dbCache; //key:dbname, value:SCtgDBCache SCtgRentMgmt dbRent; SCtgRentMgmt stbRent; } SCatalog;

anyone could help with this?

Yu Chen
  • 70
  • 1
  • 5

1 Answers1

0

In TDengine database 3.0 version .

The catalog module is used to store various metadata on the client side, initialized through catalogInit API. Each database service (cluster id) corresponds to a SCatalog, and each db in the SCatalog corresponds to a DbCache (stores child and supertable in hash table form), and a user cache(cache user information, stored in hash table form).

As for the SCtgRentMgmt dbRent and SCtgRentMgmt stbRent;

I need to make further investigation .

Yu Chen
  • 70
  • 1
  • 5