Opened 18 years ago

Closed 15 years ago

#135 closed defect (fixed)

Qgis slow to show the attribute table with lots of rows

Reported by: g_j_m Owned by: timlinux
Priority: minor: annoyance Milestone: Version 1.0.3
Component: Vectors Version: Trunk
Keywords: Cc: tutey@…
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

Qgis is slow to show the attribute table when there are lots of rows. Improvements can probably be made in the vector provider code with regard to retrieving geometry attributes, particularily for postgres.

Change History (7)

comment:1 by morb_au, 18 years ago

As part of my changes to my working copy of the HEAD version, I have made a change to the way the attribute table loads.

If there is no selection on the active layer when the table is loaded, the full table is loaded. If there *is* a selection, only those selected rows are loaded.

This improvement may be useful until we can get a full MVC model going.

comment:2 by stephan.holl@…, 17 years ago

Must Fix for Release: No

Hello,

is this improvement already included in current trunk of QGIS? I would like to see this included soon since there are some persons having laaaaarge datasets living in geodatabases. This patch would certainly make it at least possible to work with attribute data on large datasets.

Are there any plans to implement this in the near future? Thanks for you comments.

comment:3 by wonder, 17 years ago

There's no such improvement yet... attribute table needs to be redesigned to use Qt model/view architecture and that's quite a lot work. This redesign should ensure that only currently displayed attributes will be fetched from data source instead of loading everything when table gets opened.

I agree that this is important for any real usage of the table, but I don't know when/who will implement this...

comment:4 by stephan.holl@…, 17 years ago

Hi wonder,

I interpreted the first comment from morb_au in that way, that his local copy of HEAD (probably outdated now) contains the described behaviour implemented. It would be nice to have a patch available for the meantime (as a workaround), so that large tables are manageable.

You are right, it should implemented in the future following the MVC-model.

comment:5 by timlinux, 16 years ago

Awaiting user input: unset
Owner: changed from gsherman to timlinux

Hi

I had similar issues in openModeller Desktop with large tables and I implemented them instead using Qt's interview framework and received a massive performance improvement. I will try to do the same in QGIS.

comment:6 by msieczka, 16 years ago

Cc: tutey@… added

comment:7 by wonder, 15 years ago

Resolution: fixed
Status: newclosed

This has been fixed in 1.1 release with introduction of new model-based attribute table.

Note: See TracTickets for help on using tickets.