Join Joey D'Antoni for an in-depth discussion in this video GUIDs vs. INT/BIGINT, part of SQL Server Performance for Developers.
- [Instructor] GUIDs versus integers…for primary keys in a database.…This is a very common developer versus DBA argument.…GUIDs or unique identifiers have the benefit…of being globally unique across machines and databases.…This gives us a tremendous benefit…in that we know that we're always going to have…a unique value.…On the other hand, integers or BIGINTs…are always going to perform better in join operations,…and more importantly, take up a lot less space,…and we'll talk about why that's going to matter…as we go through this.…
What are GUIDs exactly?…This is a globally unique identifier…that a lot of people don't know,…but it's composed partially of a seed…that starts with the MAC address…of the computer it's on, and then the time stamp…where it was generated.…So between those two things, they're able to ensure…global uniqueness across systems.…It is extremely, extremely rare…that there are what are known as GUID collisions,…where GUIDs have the same value in multiple systems.…I've never seen it in my lifetime,…
- Query execution
- How to read an execution plan
- What not to do with SQL Server
- Why cursors are bad
- Why scalar UDFs are expensive
- Datatypes and design
- What is a columnstore index?
- Transaction isolation
Skill Level Intermediate
1. Query Execution
2. What Not to Do with SQL Server
3. Datatypes and Design
4. Temporary Objects
7. Isolation Levels
Next steps2m 15s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.