https://bugs.kde.org/show_bug.cgi?id=276356
Summary: tags should have a root (maybe hidden) Product: digikam Version: 2.0.0 Platform: Compiled Sources OS/Version: Linux Status: NEW Severity: normal Priority: NOR Component: Database AssignedTo: [hidden email] ReportedBy: [hidden email] Version: 2.0.0 (using KDE 4.6.4) OS: Linux the "The Nested Set Model" used for the tags tree require to have one and only one root. DK instead put many tags at the root level breaking this fundamental assumption. One example is the following query which should return the tree of tags by name and depth SELECT node.name, (COUNT(parent.name) - 1) AS depth FROM tags AS node, tags AS parent WHERE node.lft BETWEEN parent.lft AND parent.rgt GROUP BY node.name ORDER BY node.lft; There are a pair of ways to overcome the current situation for existing and new installations: 1) Use a different algorithm, I've in mind one that while has some limitation for the tree depth is faster but need implementation 2) update existing trees at startup, put a root in place, update the parents of each node w/o root and live with it. Since it would be a very bad idea have a node with id 0 (it's a magic number in databases and math) we need to have a root with id < 0 (or to dump and reload the table). While at the moment I'm not able to point out specific bug introduced by this behaviour it may cause many. Reproducible: Always -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
https://bugs.kde.org/show_bug.cgi?id=276356
Francesco Riosa <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|[hidden email] |[hidden email] --- Comment #1 from Francesco Riosa <francesco+kde pnpitalia it> 2011-06-23 20:50:41 --- cannot work _today_ on this but it's very high on my priority list -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Francesco Riosa-2
https://bugs.kde.org/show_bug.cgi?id=276356
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|[hidden email] |[hidden email] -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by Francesco Riosa-2
https://bugs.kde.org/show_bug.cgi?id=276356
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Database |Database-Schema CC| |[hidden email] -- You are receiving this mail because: You are the assignee for the bug. |
Free forum by Nabble | Edit this page |