Feature request #14627

Add a "cancel" button for Query Builder get "Sample" Values

Added by Nikos Tsarmpopoulos about 4 years ago. Updated about 3 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Vectors
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:22592

Description

Hi,

When hitting the "Sample" button, Query Builder freezes. I presume this is because there's a large database associated with the layer. However, this should not happen. Either the function should quickly return a small resultset, or it should run in a separate thread and the user interface should provide a button to interrupt it and return a small sample.

To reproduce, open a layer with a sufficiently large set, e.g. polygons and data for UK postcodes, open the Query builder and click on "Sample" button.

This has been found on QGIS 2.14.1 64bit, running on Windows 7 Pro 64bit.

History

#1 Updated by Giovanni Manghi about 4 years ago

  • Category set to Vectors
  • Status changed from Open to Feedback

Please link/attach a dataset that can be used to replicate the issue.

#2 Updated by Saber Razmjooei about 4 years ago

QGIS does some work in the background to generate the sample.

To have it in a separate thread with option to cancel the operation is more of a feature request than a bug.

#3 Updated by Giovanni Manghi about 4 years ago

  • Subject changed from Query Builder (Not Responding) when selecting to get "Sample" Values to Add a "cancel" button for Query Builder get "Sample" Values
  • Status changed from Feedback to Open
  • Tracker changed from Bug report to Feature request

#4 Updated by Jürgen Fischer almost 4 years ago

  • Tracker changed from Feature request to Bug report
  • Crashes QGIS or corrupts data changed from Yes to No

#5 Updated by Jürgen Fischer almost 4 years ago

  • Tracker changed from Bug report to Feature request

#6 Updated by Giovanni Manghi about 3 years ago

  • Easy fix? set to No

Also available in: Atom PDF