...
Scenario | Write Request | Read Request(Condition) | Read Query | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | User consuming individual content. [New] |
|
| WHERE userid='<<userid>>' and collectionid ='<<contentid>>' and contentid = <contentid> and contextid = <contentid> | ||||||||||
2 | User consuming a content with in a collection. [Existing]
|
| WHERE userid='<<userid>>' and collectionid ='<<courseid>>' and contextid ='<<batchid>>' and contentid='<<contentid>>' | |||||||||||
3 | User consuming a content with in a collection. [New]
|
Note: When it is consumed with in this context. | WHERE userid='<<userid>>' and collectionid ='<<courseid>>' | |||||||||||
4 | User consuming a content within a course part of a program
|
| WHERE userid='<<userid>>' and collectionid ='<<courseid>>' and contextid in (select batchId from program where collectionid='<<courseid>>') | |||||||||||
5 | User consuming a content within a course part of a program
|
| WHERE userid='<<userid>>' and collectionid ='<<courseid>>' and contextid = ='<<courseid>>' |
...