Which is much higher than I thought. This is my (thought) calculation:
2 indexes read = 2 Read Ops
A read request (by default strongly consistent and transactional) of up to 4KB requires one transactional read op (TRO). For items larger than 4KB, additional TROs are required. → my dataset is less than 10KB = max 4 Read Ops
Thus 6 Read Ops in total. Or do I overlook something?
Prior to our November 2020 release (API v4), index reads were one read op. Now, they are one read op per 4k read per index partition. If your index has 8 partitions, then you get 8 read ops per index “read”, which is typically one page of results from Paginate.
This is described in some detail on our billing page: Billing | Fauna Documentation
“Legacy billing” is prior to November 2020, “current billing” is today.
@pier: I see 19 byteReadOps. It is still huge difference than what has been shown in the dashboard. I will shutdown my website to be 100% sure that there are no other API calls, and retry again.
Note that the tooltip in the Dashboard’s shell that shows query metrics is showing the counts specifically for that query. The Dashboard’s home page shows cumulative metrics for the month. Use of the Dashboard to view/modify/delete documents also contributes to the cumulative metrics.
Yes. In order to show the list of available databases, the Dashboard has to run the equivalent of Map(Paginate(Databases()), Lambda("db", Get(Var("db")))).
Results are cached as needed. The rules are a bit complex, but the TL;DR is: we do try to avoid needless queries while trying to reflect the current state of your database.