All,
I'm trying to decide if I should use an auto-increment field or GUID field in a database. Either way I get a unique number identifying the record, so I'm not sure what way is best. Any thoughts?
Thanks,
-Bill
All,
I'm trying to decide if I should use an auto-increment field or GUID field in a database. Either way I get a unique number identifying the record, so I'm not sure what way is best. Any thoughts?
Thanks,
-Bill
There are advantagas and disadvantates to using Auto-incrementing integer vs GUID. Its difficult to advise based on your description. You can go with either, I've used both. For small DB implementations, with regard to peformance, its negligible, but that's a vague statment on my part again as other factors can affect performance (specifically storage design). Will the DB be mainly experiencing reads or writes?
Here's some pros and cons to GUID:
Pros:
Cons:
Thank you for the detailed reply. This is exactly the kind of information I was looking for.
-Bill
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.