Maximum number of predicates


(Calum Moore) #1

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:


(Manish R Jain) #2

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.


(Calum Moore) #3

Thank you, that’s reassuring! :slight_smile:


(system) #4

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