Skip to content

feat: update VisitCount & InfoCount every 10 seconds#195

Open
Man-RP wants to merge 7 commits intomini-services:mainfrom
Man-RP:feat/NonLiveBatchUpdating
Open

feat: update VisitCount & InfoCount every 10 seconds#195
Man-RP wants to merge 7 commits intomini-services:mainfrom
Man-RP:feat/NonLiveBatchUpdating

Conversation

@Man-RP
Copy link
Collaborator

@Man-RP Man-RP commented Jun 27, 2021

Hey,
I've added a non-living updates cache to PostgresStorage driver.
Every call to incInfoCount or incVisitCount methods instantly increases a temporary id counter.
Every 10 seconds, the cache is checked. if it isn't empty, all counters inside are flushed.

closes #15

@Man-RP Man-RP marked this pull request as ready for review June 27, 2021 11:55
@Man-RP Man-RP self-assigned this Jul 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the database updates more performant

3 participants