Bug report #12923

Project with SQL Server Layers opens much slower in 2.8 than 2.6

Added by Jason Moore over 9 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Data Provider/MSSQL
Affected QGIS version:2.8.2 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:no timely feedback
Crashes QGIS or corrupts data:No Copied to github as #:21006

Description

I have a project that contains many sql server layers. In version 2.6 it opened in about 20 seconds in version 2.8.1 it takes about 100. I note a difference with even one layer taking considerably longer in 2.8.

Windows 7 64bit desktop
SQL Server 12 on Windows Server 12

History

#1 Updated by Nathan Woodrow over 9 years ago

You have a spatial index on the layers?

#2 Updated by Nathan Woodrow over 9 years ago

  • Status changed from Open to Feedback

#3 Updated by Jason Moore over 9 years ago

I do have a spatial index on the feature table that stores all of the geometry data for the various views that I have set up for the layers that make up the project.

#4 Updated by Nathan Woodrow over 9 years ago

What do your views look like? Nothing special? Have a unique int column for a key?

#5 Updated by Jason Moore over 9 years ago

Most are not very complex. Two or three joined tables, one always being the feature table which has a unique int column that is the primary key for that table and also contains the geometry. An example would be a view called QGIS_SAN_MHs, it contains three inner joined tables, SAN_MHs, DPW_DrainageStructures, and DAT_Features. All are linked on the fetID column which is primary int in DAT_Features.

#6 Updated by Giovanni Manghi almost 9 years ago

  • Status changed from Feedback to Open

#7 Updated by Giovanni Manghi over 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#8 Updated by Nyall Dawson about 6 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback

Still an issue with 3.2?

#9 Updated by Jürgen Fischer over 5 years ago

  • Resolution set to no timely feedback
  • Status changed from Feedback to Closed

Bulk closing 82 tickets in feedback state for more than 90 days affecting an old version. Feel free to reopen if it still applies to a current version and you have more information that clarify the issue.

Also available in: Atom PDF