Hi freinds, ac
I got error when i execute linq query
Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding linq
this is my query
var folderData = (from f in db.tblFolders
join l in db.tblLibraries on f.LibraryId equals l.LibraryId
join a in db.tblAuthors on f.FolderId equals a.FolderId
join q in db.tblQMOes on f.FolderId equals q.FolderId
join ap in db.tblApprovers on f.FolderId equals ap.FolderId
join rv in db.tblReviewers on f.FolderId equals rv.FolderId
join v in db.tblViewers on f.FolderId equals v.FolderId
where l.LibraryOwner == uids || a.LibraryUserId == uids || f.Owner == uids || q.LibraryUserId == uids || ap.LibraryUserId == uids || rv.LibraryUserId == uids || v.LibraryUserId == uids
select new
{
id = f.FolderId,
name = f.FolderName,
pId = f.ParentFolderId
}).Distinct().ToList();
I know query i too long but what is the solution for it please suggest its urgent!

Jefferson S. MottaPosted Jul 31, 2018, 2:38 PM
Nilesh PatilPosted Jul 6, 2018, 6:51 AM
Shrimant TelgavePosted Jul 6, 2018, 4:19 AM
Try to change the default timeout of command as follow.
More detail : https://www.codeproject.com/Articles/26283/Change-The-Default-CommandTimeout-of-LINQ-DataCont