Too many files in Tags.dat. Could be a bug?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Too many files in Tags.dat. Could be a bug?

Post by LittleBiG »

I use tags, labels and comments in a moderate way as it is necessary to me. But I have just checked the number of tagged items in the Configuration and astonishingly it contains 2151 records. It is hundred percent sure I have never tagged this amount of files. Using the Find Files, I listed all files, which have tags (comment, label, tag = *), and yes the list contained 2151 files, but in case of a very big amount all three columns (Label, Comment, Tag) was empty! :shock: :? Why are these items in the tags.dat, if they don't have tags at all? And why are they listed? Could be an earlier bug, which left them there? Or could be a bug alive? (I have check my other computer and the situation is the same. Many files in tags.dat without tag.)

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Too many files in Tags.dat. Could be a bug?

Post by binocular222 »

It's not a bug.
Whenever you de-tag an item, the tag.dat simply record that item has blank tag instead of deleting the entry.
But it seems the blank things does not slow down XY.
The only thing bother me is when I want to views all tagged items via AB search:
Computer?:lbl:** AND tags:** AND cmt:**
All empty items show up
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Too many files in Tags.dat. Could be a bug?

Post by armsys »

binocular222 wrote:Computer?:lbl:** AND tags:** AND cmt:**
All empty items show up
I'm sorry. What's the purpose of "**" (double asterisks)? :oops:
Thanks.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Too many files in Tags.dat. Could be a bug?

Post by binocular222 »

Ah, nothing. You can search for all tags just by Computer?:tags:
Double asterisk is just the scrap resulted from my script (too lazy to cleanup this part)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Too many files in Tags.dat. Could be a bug?

Post by armsys »

binocular222 wrote:Ah, nothing. You can search for all tags just by Computer?:tags:
Double asterisk is just the scrap resulted from my script (too lazy to cleanup this part)
Oh, that's it! No wonder can't find it in the manual. :roll: Thanks.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Too many files in Tags.dat. Could be a bug?

Post by LittleBiG »

If it would be intentional:
1. They shouldn't be reported in the case of comment, label, tag = *.
2. There should be a option to clear them similarly to orphaned items. (Hm... from a certain point of view they are also orphaned ones)
But it seems the blank things does not slow down XY.
Yet. But when it reaches an extent, where you feel the slowness, you won't have any automatic way to delete them.

And I think the first two records can also point out that it is not an intentional effect: |0|||||

admin
Site Admin
Posts: 67172
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Too many files in Tags.dat. Could be a bug?

Post by admin »

binocular222 wrote:Whenever you de-tag an item, the tag.dat simply record that item has blank tag instead of deleting the entry.
Sorry, but this is plain wrong. It's true for the Windows registry but not for XYplorer's tag.dat where deleted items are really deleted.

I assume LittleBig's phenomenon comes from ticking "Configuration | Tags | Copy tags on copy operations". You will remember that I resisted some years to add this option exactly because I feared unwanted multiplicaton of tagged items. :)

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Too many files in Tags.dat. Could be a bug?

Post by LittleBiG »

admin wrote:I assume LittleBig's phenomenon comes from ticking "Configuration | Tags | Copy tags on copy operations". You will remember that I resisted some years to add this option exactly because I feared unwanted multiplicaton of tagged items.
It would be an easy answer to the problem. I have the Confirm copying tags also on, and I say No in the 99% of the cases. (I copy tags only if the file has important comments.) Anyway, I cannot see the connection between copying tags and live items without tags remained in the tags.dat. Haven't you just skimmed this thread through quickly? That Carnival could be very good ;-)

EDIT: And clearly a bug: I have chose Database Check. It said I had 35 orphanes. I decided to remove them. The dialog said 36 was removed.
Last edited by LittleBiG on 12 Nov 2013 14:39, edited 1 time in total.

admin
Site Admin
Posts: 67172
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Too many files in Tags.dat. Could be a bug?

Post by admin »

Can you show me a way to create those phantom items? I think they are relicts of a bug that was recently fixed...

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Too many files in Tags.dat. Could be a bug?

Post by LittleBiG »

No I can't yet. I have just shockingly realized the effect. (and I can see whole folder structures were added to the tag.dat, not just one or two unique files.) But I am about to clean my tag.dat and check it regurarly.

You can look at that funny mathematical challenge in my previous post :-)

admin
Site Admin
Posts: 67172
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Too many files in Tags.dat. Could be a bug?

Post by admin »

LittleBiG wrote:You can look at that funny mathematical challenge in my previous post :-)
Works unfunny here. Your DB is corrupt. Clean it once and it should be okay. The old bug is gone.

nerdweed
Posts: 651
Joined: 25 Feb 2012 07:47
Location: XY64 Latest Beta , Win 11, 96dpi, 100%

Re: Too many files in Tags.dat. Could be a bug?

Post by nerdweed »


LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Too many files in Tags.dat. Could be a bug?

Post by LittleBiG »

Thanks nerdweed and Don.

By the way I had to (nerd)weed out roughly 2000 items.

Post Reply