I am using a csv file to load a table-like object and then search this for existing items.
With only 2000 items, a computer running on a I5 CPU takes 4 seconds perform search using where
on 2 columns. Wondering what I am doing wrong:
$uploadedRecordings = import-csv -path $ArchiveUploadedFilesInGoogleDrive
...[some other code]
if($uploadedRecordings | where { $_.Name -eq $filename -and $_.Size -eq $item.file_size}){
Write-Host "[Already downloaded] Skipping....
}
Where $item
(sample):
id : f5b693
meeting_id : uT4dfhghd==
recording_start : 2020-03-25T16:01:31Z
recording_end : 2020-03-25T18:14:36Z
file_type : M4A
file_size : 54332420
play_url : https://myurl
download_url : https://otherurl
status : completed
recording_type : audio_only
and $filename = "Meeting - 2020-04-20 -- 09.29.59.mp4"