<table><tr><td style="">pablo added a comment.
</td></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>We can normalize the [CollectionAttributeTable].type column by moving the key names to their own table like we do in [PartTable] as suggested in the link, but that's about all that I could find there that would apply in our case.</p></blockquote>

<p>The above suggestion is what I would first suggest.</p>

<p>For this discussion, let us call this new table <strong>[CollectionAttributeTableType]</strong> (boy I am clever!)  The next question is whether this new table's domain is shareable by all of PIM or does each <strong>[ResourceTable]]</strong> get its own set of values.  I don't know, I'm just asking ... :)  .. and yes, I'm slowly winding my way through the per-table doc today (which is why I can even offer the table name <strong>[ResourceTable]</strong>!)</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">pablo@ on akonadi
12:37:11 27> select distinct type from collectionattributetable;
+----------------------------+
| type                       |
+----------------------------+
| AccessRights               |
| ENTITYDISPLAY              |
| SpecialCollectionAttribute |
+----------------------------+
3 rows in set (0.01 sec)

pablo@ on akonadi
12:37:48 28> select type, count(*) from collectionattributetable group by type;
+----------------------------+----------+
| type                       | count(*) |
+----------------------------+----------+
| AccessRights               |        5 |
| ENTITYDISPLAY              |        9 |
| SpecialCollectionAttribute |        7 |
+----------------------------+----------+
3 rows in set (0.01 sec)</pre></div></div></div><br /><div><strong>TASK DETAIL</strong><div><a href="https://phabricator.kde.org/T7846" rel="noreferrer">https://phabricator.kde.org/T7846</a></div></div><br /><div><strong>To: </strong>pablo<br /><strong>Cc: </strong>knauss, dvratil, kde-pim, pablo<br /></div>