Use this gist to connect directly to your database and check if the data is being update in realtime
Record addition or update appears after 30 minutes!! Why is this delay caused?
Votes
0
Replies
24
Participants
Unknown
Messages
25
If you want
You can run this to clear the cache
docker exec -it appwrite-redis redis-cli# then127.0.0.1:6379> flushallTo see if it then updated on the spot in the console
Just know that flushing the cache can interfere for queue jobs so use it only if all of your code works in async most of the time
Rank 2: Process
If this solves the problem. How can I fix this permanently?
Rank 2: Process
Will manual cleaning always be required this way? How can I update redis settings? do you have a suggestion?
Rank 2: Process
It fixed it?
Rank 2: Process
I'll try it in an hour when it slows down completely.
From what I see it should clear the cache
But, first let's make sure this is the problem before digging into it
Rank 2: Process
flushall
Rank 2: Process
I ran it and it's back to normal
Rank 2: Process
my problem seems to be redis cache.
Rank 2: Process
This is how I added events to a function. for how it should work
I am adding a record to these collections. but the event starts Function Executions after 30-40 minutes.
collections.647f40efa6de6e094841
Rank 2: Process
event triggers are running too late.
Rank 2: Process
Rank 2: Process
@Binyamin Where do you think I can fix this?
I think maybe it because you have too many events in a given minute
Do you get error on running functions?
Rank 2: Process
Rank 2: Process
bigint(20) unsigned changed to double
Rank 2: Process
now no error 😄
Rank 2: Process
no errors at the moment it works flawlessly.
unable to write stats data.
So you have error right now?
Rank 2: Process
I think maybe it because you have too many events in a given minute
This is the problem but 50 devices are working right now.
If 1000 devices send data to the server, if the event runs, appwrite will fire.
won't the appwrite system be able to manage this?
Will be able but those events are in a queue one after each other using
Redis.
For most use-case the 6GB ram sound pretty enough for me.
If you continue to experience this delays with the databases I'll recommend decentralizing the databases.