Yes that explains, those large files will have a big impact on the indexer.

You are referring to this issue: Make indexer ignore text files that are
not zim pages · Issue #907 · zim-desktop-wiki/zim-desktop-wiki (github.com)
<https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/907> which is
fixed in the development branch and will be in the next release.

With that fix the indexer will read the first line of each file to decide
whether it is a zim file or not, and if not it will not try to access the
contents.

Would be great if you have a chance to test the development branch and see
whether it works in practice for your case !

-- Jaap


On Thu, Apr 22, 2021 at 7:32 PM Mario Bezzi <
subscriptions.mario.be...@gmail.com> wrote:

> The folder contains 3118 ".txt" files, for a total of 2GB of data. Some
> large txt files are attachments. A long time ago I submitted a request to
> avoid indexing these. Not sure it has been fulfilled though.
>
> Thank you,
> mario
>
> On 4/8/21 7:32 PM, Jaap Karssenberg wrote:
>
> Can you indicate how big your notebook folder is? Either an extreme case,
> or some bug making it take much longer than needed.
>
> Op do 8 apr. 2021 15:59 schreef Mario Bezzi <
> subscriptions.mario.be...@gmail.com>:
>
>> Thanks Jaap, I was not aware of this.
>>
>> To give you an idea, I just restarted Zim, and indexing kept a processor
>> 100% busy for 13 minutes to come to an end.  It was nice if this could be
>> avoided.
>>
>> Thank you,
>> mario
>>
>> On 4/8/21 10:06 AM, Jaap Karssenberg wrote:
>>
>> The indexing is not used for searching alone, it is also needed to e.g.
>> present the page tree in the side pane and to track links
>>
>> Op do 8 apr. 2021 09:34 schreef Mario Bezzi <
>> subscriptions.mario.be...@gmail.com>:
>>
>>> Hello,
>>>
>>> I may be the only one, but with my quite large notebooks I do find the
>>> search function impractical, and for this reason I never use it. Still,
>>> when it starts, Zim goes crazy for a long time indexing, and I came to
>>> the conclusion that this is normal.
>>>
>>> If this is the case, I would like to file a requirement to add the
>>> ability to make indexing optional.
>>>
>>> Thank you,
>>> mario
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~zim-wiki
>>> Post to     : zim-wiki@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~zim-wiki
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>>
>
_______________________________________________
Mailing list: https://launchpad.net/~zim-wiki
Post to     : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp

Reply via email to