In my Firebase database I have posts and then authenticated users can "like" posts. How can I efficiently get the number of likes a post has received. I know using MongoDB I can add/remove the user's id to a list and then use a MongoDB function to get the length of it very quickly and set that equal to the likes amount, but I'm not suer how to do that using Firebase. I could also add/remove it to the list and increment a likeCount variable, but that seems like it would cause concurrency issues unless Firebase has a function for that. What functions can I call to best handle this and scale well? Thanks in advance!
- type casting boost multiprecision integer returns wrong answer
- Using vaultr in R to pull a password from Hashicorp Vault
- set a user's secondary calendar as selected in apps script
- what is the best algorithm for this problem
- TypeError: 'coroutine' object is not subscriptable in python Quart Framework
- Can we perform (modulation operation)% on negative integers? what will be result?
- JSONObject text must begin with '{' at 1 [character 2 line 1] , yet JSON is valid and code works with a differently formatted JSON file
- Understand the “Observer Pattern” with a real world example
- aggregation search request Elasticsearch DSL
- Hibernate ColumnTransformer and DataJpaTest