Question

I'm currently working on developing an e-commerce website and I'm going to use C#, Entity Framework with SQL Server 2008 for this project.

The database structure is not complex, just likes Wordpress Database. I found out about non-relational database like Google BigTable, MongoDB,...but still not completely understand the advantages of this technology.

I know that SQL Server cannot be NoSQL DMS just by removing all of the relationships between tables but I still concern on this question:

If we remove all the relationships in SQL Server and working with Entity Framework, is it faster or slower or any disadavantages?

Thanks for reading and sorry for my bad English. Any help would be appreciated.

Was it helpful?

Solution

By "relationships" I guess you mean Foreign Keys? Removing foreign keys has nothing to do with a database being "non-relational".

The principal reason for using foreign keys and other constraints is for data integrity. Usually constraints are the most efficient way to implement integrity rules. They can also be used by the optimiser to improve the performance of some queries. My advice to you is to design the database with the integrity constraints you need and optimise the database afterwards.

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