In my new project I am keen to use .NET Entity Framework on Postgresql. So I first compared the performance of Entity Framework with simple SQL query. For this I developed a sample desktop application and ran it in both the modes, viz. with Entity Framework & with simple SQL query, in multi-threaded environment. I found that the performance of Entity Framework is 50% lower than that of SQL call. I am using NPGSQL for both the cases.
Performance is the critical success factor for my application and it is serving approximately 250-300 requests per second.
Please suggest whether I should go for Entity Framework or not. Or is there any tips and tricks for improving performance of EF to inline with simple SQL Calls. I am using .NET Framework 4.5.
explain analyze
results, exact query text, etc into the question. Comment here when you're done.