#I don't want to call the table if there is no new transaction done on the table.
11 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @serene salmon! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
<@&765578700724371486>
i guess you can add a flag, when a new transaction is done this flag is true and when fetching records you set this as false, but why dont you want to call a db? seems like micro-optimization @serene salmon
@rain salmonflag is one way to achieve this. I am looking for an alternative that I can use for any repository.
I do not want multiple call to db coz unnecessarily its calling db. lets say if there 10 requests per sec then its calling db 10 times and getting same result.
wouldnt a cache help in this case?
It can.
Okay sure, Thanks.