Marc M.
Marc M.

Reputation: 3791

Objectify, does creating a key cause datastore read?

When we create a key in objectify from a web safe string, is Objectify hitting the datastore in anyway. For example when we do ...

Key.create(webSafeString):

Is Objectify using some idempotent algorithm to create the key, or is it dependent on what is stored in the datastore, or what entities have been registered? What exceptions can we expect to be thrown?

Also, if it is reading the datastore, what is the cost?

Upvotes: 0

Views: 85

Answers (1)

stickfigure
stickfigure

Reputation: 13556

No. Creating a Key from a websafe string is just protobuf manipulation, and should not involve an RPC to Google's service layer.

Upvotes: 1

Related Questions