Skip to content

Optimized Packager downloads full PostGIS dataset instead of filtered subset #1464

@vlebert

Description

@vlebert

What is the bug or the crash? What were your expectations and what actually happened?

Description: I am experiencing an issue where QFieldCloud packages and downloads the entire PostGIS table (approx. 800MB) to the mobile device, despite having a Provider Feature Filter set in QGIS to limit the dataset to a much smaller subset.

I did read the doc and I understand it should be filtered during the packaging process

https://docs.qfield.org/get-started/tutorials/advanced-setup-qfc/?h=filter#enhance-your-project-with-the-optimized-packager

Context:

  • Data Source: PostGIS layer.
  • Filter: Defined in QGIS via Layer Properties -> Source -> Provider Feature Filter.
  • Packager: Optimized Packager (selected in QFieldCloud project settings).
  • Expected behavior: Only the filtered features should be included in the offline .gpkg and downloaded.
  • Actual behavior: The full table is packaged, resulting in heavy downloads and storage issues on the field device.

Steps to reproduce the issue

  1. Create a QGIS project with a large PostGIS layer.
  2. Apply a filter (e.g., "status" = 'active') to reduce the feature count.
  3. Set the layer action to "Offline Editing" in the QFieldCloud panel.
  4. Upload the project to QFieldCloud and ensure "Optimized Packager" is enabled in the settings.
  5. Synchronize the project on a mobile device.
  6. Observe that the downloaded file size corresponds to the full database table rather than the filtered subset.

Version

app.qfield.cloud

Operating system name

Linux

Operating system version

app.qfield.cloud

Reinstall QFieldCloud

  • I have a fresh install of the latest QFieldCloud version, but the problem persists.
  • I have the latest available Docker engine installed on my machine.
  • Problem can be reliably reproduced, doesn't happen randomly.

Additional context

I use official app.qfield.cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions