Thank you very much! Let's say we allow users to look up any user's public metadata (for example `/

Thank you very much!

Let's say we allow users to look up any user's public metadata (for example
/user/{userid}
, would it be better if we first look up D1 to see if the user id exists, or directly get the user's DO via
idFromName()
, and see if it was previously initialized, destroy it (via
deleteAll()
) if not?

I would of course benchmark this, but would like some pointers.
Was this page helpful?