Say I got a Inventory system. there could be thousands of Users.
Each user can have his own goods in their inventory. he can management the goods Add and Remove.
There is a View that used to list the goods of users. By using user id as one of view key, i can filter the goods belong to the user. After add/remove the goods, system updates the View by set stale=false.
I would like to know it is a good way to do that. as there are thousands of Users, who may can add / remove goods at the same time. is it efficient to doing it with View?
Should I create view for each user, so i only update his own View? or should I use N1QL?
Thanks so much for your time.