Peter,

Tags are really good for instant relationships and are there out of the 
box. If you use too many different tags we call this "polluting the tag 
space" because there a too many tags and they become unwieldy to use, 
before they perform badly. 

If you find your wiki slowing or with too many tags there are a range of 
ways to move tags to fields. For example say you had a tag for tasks then 5 
tags for status have a field called tiddler-type = Task, and a field status 
= new/wip/done etc...

Now rather than use tag filters use field filters. In fact they can read 
very nicely, for example this is a valid filter for use in a tiddler tagged 
viewTemplate

`[all[current]tiddler-type[task]`
Or
`[all[current]tiddler-type[task]!status[new]]`

Personally I use very few tags even for complex solutions, because I drive 
my design into fields rather than use tags. This allows my tags to remain 
free for ad hoc categories.

Unless you design fields to contain multiple values they are useful in so 
far as a field eg status, can only have one value at a time, if using tags 
when you tag a task as done, you may also need to remove the tag new.

Also one thing you may come to realise is every filter starts by 
considering most if not all tiddlers and the filter reduces them eg;
`[haschanged[]]` considers all tiddlers then extracts those that have 
changed. See also https://tiddlywiki.com/#Filter%20Run in some ways it 
shows you how tiddlywiki already performs well with titles, because most 
filters consider every tiddler title already.


   - If you say [tag[done]] it needs to check every tiddlers tag field and 
   if it contains done (along with other tags)
   - If you say [status[done]] it needs to check every tiddlers status 
   field and if it *equals done (a slightly simpler test)*

Titles, tags and other elements are stored in working indexes in memory to 
facilitate this performance.

Regards
Tony


-- 
>
> Securely sent with Tutanota. Get your own encrypted, ad-free mailbox: 
> https://tutanota.com
>
>
> 20 Apr 2020, 17:10 by [email protected] <javascript:>:
>
> It's not the number of tags, it's the number of items that share a tag. 
> And it's mostly when using the 
> tag filter operator. I found my 36,000 item dictionary ground to a halt 
> when I used the tag filter.
> I reworked the filter so that it didn't need "tag", and now the dictionary 
> has more than 60,000 items.
>
> On Monday, April 20, 2020 at 5:36:40 AM UTC-7, Peter Buyze wrote:
>
> I have read this somewhere and was wondering if it is true. I have several 
> tens of tags and TW has not slowed down at all. If so, what is a number 
> where one can expect TW to slow down?
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/a51c7ca3-775a-4c74-b6ed-ccd82c351eab%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/a51c7ca3-775a-4c74-b6ed-ccd82c351eab%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9469cb69-b494-4b7d-abae-cb5e97a45d86%40googlegroups.com.

Reply via email to