Closed violamassimoINGV closed 7 months ago
This API uses reflection to determine what endpoints are available. Reflection on the database requires querying the information schema. Those queries are used to find relations between tables and can be expensive. The cache reduces the number of reflection queries that need to be done. The actual table data is not cached. I hope this explains everything. Kindest regards, Maurits
I thank you for the comprehensive explanation. We use the product developed by you, and having reviewed the code, I can only offer my compliments for the solutions adopted. I am closing the issue and thank you once again.
Hello, I'm trying to use Redis caching with a cacheTime of 300s to balance the load on relational PostgreSQL databases.
While using the caching system, I noticed that the system saves three records in Redis:
And for each call different from the previous one, if on the same database and different table, only the table structure (ReflectedTable record) is cached.
Could you provide clarification on how the cache works? What are the advantages of enabling this type of cache?