Dataset Info
Hi ! I want to show/log dataset statistic right after adding values using code below
the records added successfully, however the stats seems not updated immediately, shown in logs
itemCount = 0 :
do I missing something? any help greatly appreciated Thanks.6 Replies
like-gold•3y ago
Passed the question to the team. I have a feeling that something like that has happened before, and it might be that somehow stats is updated once in a while, but I might as well remember some completely different issues, so will wait for some certain response. Will write back with more info!
Got the response: The updates to stats are throttled - so it won't show immediately. If you add some sleep between push_data and get_info it should show proper numbers.
Thanks for the info 👍 . so how many seconds do I need to sleep. Or is there a status / event that I can watch to indicate that the stats is up to date. 🧐
like-gold•3y ago
I think it should work even with like 1 second waiting. I could not check it now, so if you could try it out - please let me know if that would not work
I've tried several time using
sleep(1) also asyncio.sleep(1). the result vary, sometimes updated, sometimes zero. I guess it need longer sleeps.like-gold•3y ago
Can you try like 1 second, not 1 millisecond?
Hey Andrey, I believe
sleep(1) is meant 1 second. also asyncio.sleep(1). however I am not sure using sleep is reliable option. still searching...