# Performance regression when saving features

**URL:** <https://community.qfield.org/t/performance-regression-when-saving-features/1592>\
**Category:** Advanced Use & Customization\
**Created:** [14 April 2026 10:55 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592 "2026-04-14T10:55:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angel\_Martinez](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/angel_martinez/32/710_2.png) [@Angel\_Martinez](https://community.qfield.org/u/Angel_Martinez)\
**Post date:** [14 April 2026 10:55 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/1 "2026-04-14T10:55:57Z")

</div>

Hi @nirvn,

I’m experiencing a significant performance regression when saving features in QField 4.1.1 compared to versions prior to 4.1 (last confirmed working version: 4.0.5). Saving a feature in the `Observacion` layer takes approximately 10 seconds in 4.1.6, while the same operation completes in about 1 second in 4.0.5.

**Setup:**

- QGIS 3.40.11 (desktop)
- QField \>=4.1.x (field device, Android)
- PostGIS/PostgreSQL backend, offline editing via QFieldCloud (layers packaged as GeoPackage on device)

**Behaviour:**

- The delay occurs specifically when pressing the Save button, not while interacting with widgets
- The regression is specific to one layer (`Observacion`). Other layers in the same project save instantly
- The delay is consistent (~10 seconds) from the very first save after opening the project, regardless of how many features have been saved in that session

**Layer characteristics:**  
The `Observacion` layer has 76 fields with the following widget distribution: 26 Range, 22 ValueRelation, 10 ValueMap, 10 CheckBox, 7 TextEdit, 1 DateTime.

**Extensive troubleshooting already performed — none resolved the issue:**

1. Rewrote `overlay_nearest()` default value expressions to short-circuit eagerly in the majority of cases — no improvement
2. Removed ALL default value expressions from the layer — no improvement
3. Removed ALL constraint expressions from the layer — no improvement
4. Removed the layer’s SQL filter (which included a subquery with `now()`) — no improvement
5. Tested a minimal layer with 75 plain `text` fields, no expressions, no filters, published via QFieldCloud — save was instant
6. Tested the same minimal layer with 20 fields configured as ValueRelation widgets pointing to a small lookup table — save was still instant

None of the individual characteristics of the `Observacion` layer reproduce the issue in isolation. The delay appears to be caused by a combination of factors specific to this layer’s full structure that only manifests in 4.1+.

I was unable to obtain a useful runtime profile from the Message Log, as the ‘Log runtime profile’ button only captures project load state, not the state immediately after a save operation.

I’m attaching the application log captured immediately after a save. Unfortunately I’m unable to share the project file due to confidentiality constraints, but I’m happy to answer any questions about its configuration.

Is there any additional diagnostic information I can provide to help identify the regression introduced between 4.0.5 and 4.1.0?

Thanks for your work on QField.

---

<div class="post-metadata">

**Author:** ![mbernasocchi](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/mbernasocchi/32/19_2.png) [@mbernasocchi](https://community.qfield.org/u/mbernasocchi)\
**Post date:** [19 April 2026 08:13 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/2 "2026-04-19T08:13:30Z")

</div>

@Mathieu_Pellerin possibly interesting for you

---

<div class="post-metadata">

**Author:** ![Mathieu\_Pellerin](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/mathieu_pellerin/32/636_2.png) [@Mathieu\_Pellerin](https://community.qfield.org/u/Mathieu_Pellerin)\
**Post date:** [19 April 2026 09:54 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/3 "2026-04-19T09:54:24Z")

</div>

@Angel_Martinez , would you be able to share your project for us to look at? You can do so privately by emailing me at mathieu@opengis.ch.

---

<div class="post-metadata">

**Author:** ![Angel\_Martinez](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/angel_martinez/32/710_2.png) [@Angel\_Martinez](https://community.qfield.org/u/Angel_Martinez)\
**Post date:** [20 April 2026 08:26 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/4 "2026-04-20T08:26:25Z")

</div>

Ok @Mathieu_Pellerin  
I’ll send you to the email.

Thank you very much for your support.

---

<div class="post-metadata">

**Author:** ![Angel\_Martinez](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/angel_martinez/32/710_2.png) [@Angel\_Martinez](https://community.qfield.org/u/Angel_Martinez)\
**Post date:** [21 April 2026 17:21 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/5 "2026-04-21T17:21:24Z")

</div>

@Mathieu_Pellerin Solved!!!

Thank you very much!

---

<div class="post-metadata">

**Author:** ![DavyKay](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@DavyKay](https://community.qfield.org/u/DavyKay)\
**Post date:** [21 April 2026 19:19 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/6 "2026-04-21T19:19:34Z")

</div>

Good Morning @Angel_Martinez , if you do get a minute it would be interesting to see what the issue was and how it solved, Kind Regards

David.

---

<div class="post-metadata">

**Author:** ![Mathieu\_Pellerin](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/mathieu_pellerin/32/636_2.png) [@Mathieu\_Pellerin](https://community.qfield.org/u/Mathieu_Pellerin)\
**Post date:** [22 April 2026 01:29 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/7 "2026-04-22T01:29:27Z")

</div>

@DavyKay , the issue was a regression in QField, ironically tied to a really good optimization tied to tracking sessions.

The fix is here: [Only update feature attributes/geometry that have actually changed by nirvn · Pull Request #7347 · opengisch/QField · GitHub](https://github.com/opengisch/QField/pull/7347) , it’ll make its way into QField’s next patch release soon enough 🙂

---

<div class="post-metadata">

**Author:** ![Angel\_Martinez](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/angel_martinez/32/710_2.png) [@Angel\_Martinez](https://community.qfield.org/u/Angel_Martinez)\
**Post date:** [24 April 2026 12:57 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/8 "2026-04-24T12:57:25Z")

</div>

@Mathieu_Pellerin , What does the improvement to the tracking session entail?

We’re having issues with recording long routes, with erroneous waypoints that are far off course, even when using the error distance safeguard setting. Would this be improved with the latest updates?

Thanks!!

---

<div class="post-metadata">

**Author:** ![Mathieu\_Pellerin](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/mathieu_pellerin/32/636_2.png) [@Mathieu\_Pellerin](https://community.qfield.org/u/Mathieu_Pellerin)\
**Post date:** [25 April 2026 06:06 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/9 "2026-04-25T06:06:41Z")

</div>

@Angel_Martinez , assuming you are on a Samsung device, the erroneous waypoints are caused by a Samsung OS setting. See this thread: [Strengthen tracker's maximum distance safeguard by ensuring non-measurable distances are dismissed by nirvn · Pull Request #7196 · opengisch/QField · GitHub](https://github.com/opengisch/QField/pull/7196#issuecomment-4212848290)

---

<div class="post-metadata">

**Author:** ![Angel\_Martinez](https://dub1.discourse-cdn.com/flex018/user_avatar/community.qfield.org/angel_martinez/32/710_2.png) [@Angel\_Martinez](https://community.qfield.org/u/Angel_Martinez)\
**Post date:** [22 May 2026 11:17 UTC](https://community.qfield.org/t/performance-regression-when-saving-features/1592/10 "2026-05-22T11:17:05Z")

</div>

Hola @Mathieu_Pellerin , el problema ocurre en diferentes modelos de terminal, no solo Samsung.  
Hemos detectado problemas en Samsung por la gestión que hace de las aplicaciones en segundo plano. Cuando cambias de app, cierra Qfield, y cuando vuelves, es como si se abriera de nuevo, perdiendo las sesiones de seguimiento, el recuerdo de los últimos valores (chinchetas), etc.

Pero parece que el problema de los vértices alejados se suaviza desactivando el ajuste de Mejorar la precision.

Gracias
