#Database issue
1 messages ยท Page 1 of 1 (latest)
lmfao
Can someone help me? I made a code that works with mongo db, every time someone clicks an ore it gives them $10. The problem is that if someone has a very fast peak the server lags and I want to optimize it but I really don't know how
Database methods:
https://hastebin.de/exojidobil.php
Caching
wym
Cacheing
store it on the server first
aha
in a map
okay
Also use the async streams driver
๐ค
i never used that ๐
and then upload and download at regular intervals or something
like a
Like a timer!
First you check if they are in the cache for printing money if not send a request to the db
yes but if thay are in the map, then they are in the cache