-
I tried to figure this out using the documentation and the change descriptions here on GitHub, but wasn't totally successful. It's about the 128 character limit for the field index and queries against it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Being the impatient sort, I took a look at the code (should've done that to start with). Since I'm no JS wizard, please correct the conclusions I've drawn from it, if necessary:
I was thinking of using an alternate field / list to tag Journal tiddlers which can refer to a number of "main" tiddlers, to reduce the number of tags in my wiki. I'm gonna drop that idea until TW implements a general list index that the contains[] filter uses. PS: In my wiki of 9 MB and with 4,500+ tiddlers and 1,000+ tags there was no measurable difference between using tag[] and contains:tags[], at least on my machine. I "measured" with a list widget in a tiddler that I folded and unfolded repeatedly, looking at the performance data in the console. So maybe the data is skewed because (un)folding changes state tiddlers and thus causes an index rebuild? PS2: Running the risk of this becoming a soliloquy, when duplicating the above list widget 100× inside the tiddler, the difference between tag[] and contains:tags[] becomes indeed measurable and significant. So using tags instead of an extra field for tagging-like purposes can have a performance impact, depending on the number of list calls. PS3: Okay, I hacked together an indexer for my custom field mostly by copy/rename/pasting the tag-indexer, and extended the PS4: Well, since this feels a lot like blogging, I'm gonna go ahead and tell the world how the story continued. I undid it all. I had adapted a lot of places where I used to use tags to use the new PS4½: I'm marking this as the answer to close the question, as it is no longer relevant. |
Beta Was this translation helpful? Give feedback.
Being the impatient sort, I took a look at the code (should've done that to start with). Since I'm no JS wizard, please correct the conclusions I've drawn from it, if necessary:
tags
field is a listcontains
operator and not the indexedfield
operator)tags
, even if that meant tag bloat…