0

Closed

Main Data file contains many orphan position records for removed desknotes

description

Desknotes does not remove "position" or "font" for desknote which was removed from DeskNotes. All positions and fonts, if defined are left in the data file as orphans. Position record looks like
<position>
<x>100</x>
<y>100</y>
<width>300</width>
<height>300</height>
</position>
It is harmless, but it increases the size of the file and loaded data into desknotes as well. Needs to be fixed in code to prevent creation of orphans and also DeskNotes fix the data file on end user machine.
Closed Jan 20, 2012 at 12:36 PM by mb_sx
Multiple bugs closed - cleaning db.

comments

wrote May 18, 2010 at 3:00 PM

Fixed in changeset #45431.
  1. When Note is removed then it removes also position and font records.
    2 To clean up orphan records in datafile CleanOrphan method was added. It checks for new setting OrphansRemoved and removes all positions or fonts which don't have related desknote in a database. This action will be done only once unless user does not remove or change settings file.