Question on one to many relationship in database
It doesnt feel scalable to search all items and filter by if an id is in the array. Is there a better way to handle this relationship and make a more scalable secondary key for querying on?
items: defineTable({
people: v.array(v.id("users")),
itemName: v.string(),
})
