This is my first time using a NoSQL database, so I'm really confused. I would really appreciate any help I can get.
I want to store data containing ads in my table. In fact, each ad has an identifier, date, and text.
For example, an ad may have identifier 1, the date 2014/02/26, and the text "This is a sample ad." Newer ads always have a greater identifier value than older ads, as they are added to the table later.
In this table, I want to run two types of queries:
- I want to get the text of ads sorted by date order.
- I want to get the text and dates of the last x announcements (say, the last 3 announcements).
So, I set up a table with the following attributes: Identifier (number) as the primary key and date (string) as a range
Is this suitable for my use cases? And if so, which request / reads / requests / scans / independently (I am also confused by the terminology here) should I work to fulfill the two types of requests that I want to make?
Any help would be greatly appreciated. Thank!
source
share