Hi all,
I'm facing the following the problem. We are developing an app A1 which hits a ddbb making only read-only queries (selects). The ddbb data is updated, once a day, by other different app A2 which we can't modify. In order to improve performance of A1 app we are thinking in use a second level cache. I have several doubts:
1) We are thinking in configure the second level cache as read-only. A1 only use select queries. Is that correct? (remember A2 updates the ddbb but we haven't control over it)
2) I assume that if we use a second level cache we'll probably get stale data. correct?
3) The stale data is consistent? I mean: suppose we have two tables related X->Y, the cache could return a stale version for X and a new version of Y ? or if a stale version of X is returned also a stale version of Y is returned (data of X and Y belongs to the same snapshot)?
Thanks in advance