I received a bill that was higher than expected for my server less database. Many of the queries I was making include aggregate lookup operations for documents in other collections (sometimes hundreds of lookups for one query) .
According to the serverless pricing information:
“You are charged one RPU for each document read (up to 4KB) or for each index read (up to 256 bytes).”
Just to make things crystal clear, does that mean I am charged one RPU for each aggregate lookup performed? E.g. If I query a document with 100 ids that I want replaced with their corresponding documents and through aggregate operations end up doing 100 lookups, I am charged 101 RPUs (one to query the original document and then 100 for each id lookup) for that query?