Closed thantos closed 1 year ago
The term "namespaceIndex" is very confusing to me. Is this a local index?
Been trying to find the right terms that are not coupled to dynamo and make sense with the terms we use.
Some options
I started with number 2, but a discussion with chatgpt resulted in number 1 (but it had partition instead of namespace). I'm not attached to any of the naming. Just a starting point.
Closed by #348
Add support for Dynamo Index like privatives on entities. Being able to list in alternate orders and partition in alternate ways.
Use cases:
NamespaceIndex
An index which maintains the existing namespaces of an entity. Equal to a LSI (LocalSecondaryIndex).
list
only, notget
,set
, ordelete
.transaction
.Index
An index which has a different namespace and optionally a different key. Equal to a GSI (GlobalSecondaryIndex).
list
only, notget
,set
, ordelete
.transaction
.Example:
UserID - namespace (partition) PostID - key (sort key) Timestamp (ISO) Topic Message Status (Active, Inactive) Status-Timestamp (Status+Timestamp)
Want to
Can Currently
Workarounds
With Index
List by user in timestamp order
List all of today's posts for a user
List posts by topic in timestamp order
List all of today's posts for a topic
List all active posts in timestamp order
List all active posts for a user in timestamp order