Home Computer Audio Asylum

Music servers and other computer based digital audio technologies.

RE: It appears

Here's the query from my database to find the path to a unique copy of every music file on any of my drives:

------------------------------------------------------
;
with deduped as (select basename, min(id) as rowid from [FileInventory].[dbo].[f4] group by basename)
select allfiles.* from [FileInventory].[dbo].[f4] allfiles inner join deduped on allfiles.id = deduped.rowid
------------------------------------------------------

and here are the results of running that query to get the path to a unique copy of each music file. Looks like about 3/4 of a second to dedup 80K+ music file records. So about 30K actual files when deduped, out of almost 80K physical files in the various drives.
-------------------------------------------------------

(30296 rows affected)

SQL Server Execution Times:
CPU time = 328 ms, elapsed time = 788 ms.


This post is made possible by the generous support of people like you and our sponsors:
  VH Audio  


Follow Ups Full Thread
Follow Ups
  • RE: It appears - LtMandella 13:05:52 10/05/20 (2)

FAQ

Post a Message!

Forgot Password?
Moniker (Username):
Password (Optional):
  Remember my Moniker & Password  (What's this?)    Eat Me
E-Mail (Optional):
Subject:
Message:   (Posts are subject to Content Rules)
Optional Link URL:
Optional Link Title:
Optional Image URL:
Upload Image:
E-mail Replies:  Automagically notify you when someone responds.