NoSQL database design for queries with multiple restrictions (Firebase)
问题 I need best practice tips to enhance the performance of my noSQL database (hosted on Firebase). Moreover, I need tips on how to structure the nodes. The database stores product information, with three main properties: $productId /date /category /subcategory On my website, I have three views: retrieve the last 4 products (orderBy date) retrieve last 4 products (by date) of category X retrieve last 4 products (by date) of category X and subcategory Y. Note that I also have a node product_images