INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Custom Expression - File Exists/Does Not Exist  (Read 362 times)

Zootsuit

  • World Citizen
  • ***
  • Posts: 137
  • too cool for school
Custom Expression - File Exists/Does Not Exist
« on: September 25, 2024, 09:39:17 am »

I use the very helpful custom expression to filter my library for a file existence-nonexistence. (In addressing prior crashes, there was substantial duplication of entries and non-existent files were not filtered out.) https://yabb.jriver.com/interact/index.php/topic,54128.msg368367.html#msg368367

On my audio library screen, the results of this filtering are expressed in a separate column as 0 or 1, respectively. When I attempt to sort by those custom expressions, MC 33 hangs for long periods and ultimately crashes. Is there something in the program that conflicts with that command, or vice-versa? 

Edit 9-26: Found a workaround but still would  like to know why the custom field behaves differently.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2513
Re: Custom Expression - File Exists/Does Not Exist
« Reply #1 on: October 03, 2024, 05:49:34 am »

When you sort by an expression using IsMissing(), MC has to check each and every listed file on the filesystem. If your files are on a NAS this can mean many thousands of SMB requests which will take some time to complete. Unfortunately MC is not properly threaded and this will block the UI until the task completes.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10914
Re: Custom Expression - File Exists/Does Not Exist
« Reply #2 on: October 03, 2024, 10:20:29 am »

Sorting is probably double bad because it likely reads the expression multiple times. Instead maybe setup a smartlist that only has missing files - still slow, but not quite as much as Sorting by it.
Logged
~ nevcairiel
~ Author of LAV Filters
Pages: [1]   Go Up