Question

I started developing an SaaS based application and involving in Data Base design with SQL Server 2008.

I am using Shared DB instance for the application. I mean only one Data base that have all the client/tenant records identified by TenantId/ClientId.

After some discussion, i decided to change all the identifier of my all tables to GUID rather than auto incremental id.

The primary reason for doing this

  1. Moving/merging one client data to another new host will be easy with help of GUID

But i feel making GUID as identifier will be slow when we do JOIN. The database will have over all 100 Clients and each client will have 10,000 Records.

Could some one suggest me some idea for implementing this approach with good performance?

Was it helpful?

Solution

But i feel making GUID as identifier will be very slow when we do JOIN

I would suggest trying to get over your irrational "feelings" unless they are backed up with evidence. That will probably solve your problem

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top