1367: Sorting a column - does not (sort) if distinct: count:

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

1367: Sorting a column - does not (sort) if distinct: count:

Post by therube »

Sorting a column - does not (sort) if distinct: & count: are both used.
(unique:, also, & I'll suppose some others too.)


> PATH | !PUNC, enabled [immaterial]

Search:
distinct: count:36


if you go to sort on a column header
/something/ does seem to happen, but
at least the results do not /display/ sorted

sort "arrow" flashes in the expected column,
momentarily, (that must be the /something/)

/sometimes/ a Path (or other?) "sort" (attempt)
causes a Name sort to sort


(same with, unique: count:36
& i'll suspect other x: & count:)
(broken since 1356, it appears)



above pertains to a Searchbar search (of both distinct: & unique:)

if you filter (is that the right word?) a column & set distinct:
& then do a Searchbar search for count:99
at that point the distinct: is "dismissed" (nullified)
& column sorts are unaffected
(but you've then lost the distinct: part of the search)
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: 1367: Sorting a column - does not (sort) if distinct: count:

Post by therube »

When I was messing with this, I ran into another high (25%, 1of4 cores), prolonged CPU spell (though it did resolve itself).
.
Everything - 1367 - during distinct count, extended 25% CPU.png
Everything - 1367 - during distinct count, extended 25% CPU.png (42.51 KiB) Viewed 696 times
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1367: Sorting a column - does not (sort) if distinct: count:

Post by void »

When you use the count: search operator and sort a column, Everything will perform a requery.

Unfortunately, the requery is causing Everything to override your sort with the presort from distinct:



I'll look into disabling this requery when using dupe:/unique:/distinct:



For now, please specify your sort in your search.
For example:

distinct: count:36 sort:dm


When I was messing with this, I ran into another high (25%, 1of4 cores), prolonged CPU spell (though it did resolve itself).
Using count: will limit Everything to a single CPU.

Please send a mini crash dump when Everything is maxing out a CPU.
void
Developer
Posts: 16735
Joined: Fri Oct 16, 2009 11:31 pm

Re: 1367: Sorting a column - does not (sort) if distinct: count:

Post by void »

Everything 1.5.0.1368a will no longer requery when using count: and finding duplicates.
Post Reply