Performance issue for the tables with many relations.
Posted: Tue 31 Aug 2010 07:35
We are using LinqConnect for MySQL in our ASP.NET application. Database have more then 170 tables and some tables have 10-25 relations per table. It takes 1-2 sec only to init structure of the relations and related tables when we do query to those tables (simply get some records from one table). An operation of the LINQ-statement to SQL-query compilation and IL-code of the materialization method take long time and many resources.
It happens with every query. We turn on CompiledQueryCache but all new queries take long time and many resources of the system.
Is it possible to generate f.ex. DB model one time then add it to the cache and use those data? Or is it possible to resolve this problem in another way?
It happens with every query. We turn on CompiledQueryCache but all new queries take long time and many resources of the system.
Is it possible to generate f.ex. DB model one time then add it to the cache and use those data? Or is it possible to resolve this problem in another way?