Too many files in Tags.dat. Could be a bug?
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Too many files in Tags.dat. Could be a bug?
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!
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?
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
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
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?
I'm sorry. What's the purpose of "**" (double asterisks)?binocular222 wrote:Computer?:lbl:** AND tags:** AND cmt:**
All empty items show up
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?
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)
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
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?
Oh, that's it! No wonder can't find it in the manual.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)
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: Too many files in Tags.dat. Could be a bug?
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)
And I think the first two records can also point out that it is not an intentional effect: |0|||||
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)
Yet. But when it reaches an extent, where you feel the slowness, you won't have any automatic way to delete them.But it seems the blank things does not slow down XY.
And I think the first two records can also point out that it is not an intentional effect: |0|||||
-
admin
- Site Admin
- Posts: 67188
- 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?
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.binocular222 wrote:Whenever you de-tag an item, the tag.dat simply record that item has blank tag instead of deleting the entry.
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.
FAQ | XY News RSS | XY X
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: Too many files in Tags.dat. Could be a bug?
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 ;-)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.
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: 67188
- 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?
Can you show me a way to create those phantom items? I think they are relicts of a bug that was recently fixed...
FAQ | XY News RSS | XY X
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: Too many files in Tags.dat. Could be a bug?
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 :-)
You can look at that funny mathematical challenge in my previous post :-)
-
admin
- Site Admin
- Posts: 67188
- 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?
Works unfunny here. Your DB is corrupt. Clean it once and it should be okay. The old bug is gone.LittleBiG wrote:You can look at that funny mathematical challenge in my previous post :-)
FAQ | XY News RSS | XY X
-
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?
That bug was raise here - http://www.xyplorer.com/xyfc/viewtopic.php?f=2&t=10482
Fixed in v13.10.0149 - 2013-10-29 22:58 - http://www.xyplorer.com/xyfc/viewtopic. ... 760#p94543
Fixed in v13.10.0149 - 2013-10-29 22:58 - http://www.xyplorer.com/xyfc/viewtopic. ... 760#p94543
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: Too many files in Tags.dat. Could be a bug?
Thanks nerdweed and Don.
By the way I had to (nerd)weed out roughly 2000 items.
By the way I had to (nerd)weed out roughly 2000 items.
XYplorer Beta Club