https://www.ory.sh/ logo
#talk-keto
Title
# talk-keto
s

straight-pharmacist-68416

02/18/2022, 1:14 AM
How many namespaces are recommended for performance/best practice reasons? I know keto 0.7 moved to a single table, so does that mean there's no penalty for each additional namespace? For example, wondering if: 1. I should have a single
Data
namespace, and have objects prefixed like
book-56
,
video-12
,
song-83
all live under that namespace 2. Have namespace for each and have each object just be the id:
Book
,
Video
,
Song
, and relation tuples would look like
Book: 56#read#user-3
btw: keto docs still says each namespace has its own table, which was changed in 0.7: https://www.ory.sh/docs/keto/concepts/namespaces
s

steep-lamp-91158

02/21/2022, 9:59 AM
You are right, there is no drawback in the number of namespaces (except that the config grows). Namespaces will potentially have more complex config that will allow you to state e.g. everyone who has write also has read. So I would recommend to definitely divide the object types into separate namespaces. That will ensure later on that the relations can be configured individually.
👍 1
Docs are updated, might take some time until live
s

straight-pharmacist-68416

02/21/2022, 7:45 PM
thanks!
8 Views