mafu
mafu

Reputation: 32730

Are GUIDs the ultimate ID?

I noticed some people don't bother having the usual incremented number as ID but instead simply generate a GUID. The advantages include:

Some disadvantages are:

My understanding is that using a GUID is beneficial in most cases, except if optimization for time or space is an issue. Did I miss something? Or do you agree with this idea?

Upvotes: 6

Views: 781

Answers (1)

UpTheCreek
UpTheCreek

Reputation: 32401

A couple of cons:

  • Pain in the neck if you have to delve into anything manually (debuggin etc). They are completely unreadable.
  • Horrible if you ever need to pass them in a URL

Upvotes: 1

Related Questions