<user-id>-<uuid><user-id>-<uuid> or have the db record store the user id as well as the generated id. In the first case the index part of the query would be q.eq('clientId', '<user-id>-<uuid>')q.eq('clientId', '<user-id>-<uuid>'), and in the second q.eq('userId', '<user-id>').eq('clientId', '<uuid>')q.eq('userId', '<user-id>').eq('clientId', '<uuid>'). Are there any significant performance considerations either way?Join the Discord to ask follow-up questions and connect with the community
Join the Convex Discord! Explore Convex, the backend platform that keeps your app in sync.
16,164 Members
Join