Feature request #13496

Store connection settings separately from application settings

Added by marisn - over 8 years ago. Updated over 6 years ago.

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

Description

Current approach of storing connection (WMS) settings is by utilizing Qt's QSettings. It is an easy way, but till Qt 5.4.0, QSettings are not atomic thus prone to data loss in certain scenarios. The second downside - settings file gets written really often as it stores information on position and geometry of various UI components. This leads to writing out all connection settings every few minutes!
Thus moving connection settings to a different file/storage solution (SQLite?) would provide two benefits: 1) atomicy for Qt<5.4.0 users; 2) smaller disk IO for anyone with lots of connections.

Related info:
QGIS bug on regular WMS settings loss: #12684
Qt bug on QSettings data loss (also mentions performance penalty in comments): https://bugreports.qt.io/browse/QTBUG-21739


Related issues

Related to QGIS Application - Feature request #12684: QGIS should backup settings before save Open 2015-04-30

History

#1 Updated by Giovanni Manghi almost 7 years ago

  • Easy fix? set to No

#2 Updated by Jürgen Fischer over 6 years ago

  • Category set to Unknown

Also available in: Atom PDF