Maximum number of predicates

I’m planning to create a service where the user can specify their own datatypes. Therefore, I cannot assume the type that one user selects will be appropriate for another user.

User 1’s Schema

schema {
  set {
    type: string
  }
}

User 2’s Schema

schema {
  set {
    type: uid
  }
}

Note: they won’t actually write the schema command themselves, but it gives the idea.

The way I plan to get around this is by adding a prefix to each of the users submitted predicates. So instead I would add:

schema {
  set {
    user1.type: string
  }
}

This is fine, but I realize that I will be creating a lot of predicates! Maybe 100 or so per user, and in the end, there could be 1000’s of users and millions of predicates.

Is that okay? :grimacing:

There’s no limit on predicates as such. You might end up with a lot of tiny predicates, but that’s to be expected here.

1 Like

Thank you, that’s reassuring! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.