FatherJack 〓〓

36.6K posts

FatherJack 〓〓

FatherJack 〓〓

@fatherjack

Database Engineer SQLSouthWest user group leader - https://t.co/jSeLLz4J1c, Blogger - https://t.co/s8LszyOkJO...

Cornwall, Devon, Southampton Beigetreten Mart 2008
1.1K Folgt1.9K Follower
FatherJack 〓〓
FatherJack 〓〓@fatherjack·
@IISResetMe Ok good to know. I'm just wondering if there is enough gain to go to effort to swap to .net. might have an experiment to see. Thx
English
1
0
0
28
Mathias R. Jessen
Mathias R. Jessen@IISResetMe·
@fatherjack Depends on your strategy for reading the file contents. If you attempt to read the entire file into memory at once before calculating the hash then Get-FileHash probably wins that race 🙃
English
1
0
0
34
FatherJack 〓〓
FatherJack 〓〓@fatherjack·
@IISResetMe would you expect .net method to create md5 hash of files to be faster than get-filehash please?
English
1
0
0
46
FatherJack 〓〓 retweetet
Adrian Edmondson ❎
Adrian Edmondson ❎@AdrianEdmondson·
I don’t think enough people have seen this. It’s Kurt Vonnegut talking to his wife about going out to get an envelope (we’re here on earth to fart around):
Adrian Edmondson ❎ tweet media
English
250
4.2K
20.4K
1.6M
FatherJack 〓〓
FatherJack 〓〓@fatherjack·
@sql_williamd It was all Boulogne in my day. We did visit La Rochelle several years ago in the Golf though. Had a lovely week. Hope you enjoy it
English
1
0
0
124
William Durkin (he/him)
William Durkin (he/him)@sql_williamd·
Anyone around my age who learned French in the UK likely heard about La Rochelle in their school books. I've finally made it here 30 years after I learned of its existence!
William Durkin (he/him) tweet media
English
3
0
14
1.1K
Mathias R. Jessen
Mathias R. Jessen@IISResetMe·
@fatherjack This way you avoid having PowerShell recursively traverse the tree, might help with time to first copy
English
1
0
1
43
FatherJack 〓〓
FatherJack 〓〓@fatherjack·
@IISResetMe I have been called in as the logic needed in the copy process can't be implemented with RoboCopy
English
0
0
0
29
Mathias R. Jessen
Mathias R. Jessen@IISResetMe·
@fatherjack Another option is to use robocopy or xcopy - they'll use the OS APIs directly, so you avoid the overhead from the .NET/PowerShell abstractions above
English
1
0
0
32
FatherJack 〓〓
FatherJack 〓〓@fatherjack·
@IISResetMe Ok. That's it for sure! No filters at the moment, we are taking everything.. Is the order of enumeration the same between executions? Is there any sort of caching going on?
English
1
0
0
17
Mathias R. Jessen
Mathias R. Jessen@IISResetMe·
@fatherjack The file system will take longer initialising the iterator if the directory index is huge. Another slowdown might occur in the provider layer if you use -Include/-Exlude, especially in combination with -Depth/-Recurse
English
2
0
0
32
FatherJack 〓〓
FatherJack 〓〓@fatherjack·
@IISResetMe So that's interesting as we see Get-Childitem path\millionsofdirctories |copy-item we are seeing a big lag before items start copying. Like it is parsing the whole dir of millions. Scenario is very shallow and wide : Dir\millionssubdir\files
English
1
0
0
28
Mathias R. Jessen
Mathias R. Jessen@IISResetMe·
@fatherjack By using iterators (or enumerators as they're called in .NET land), PowerShell avoids having to find _all the files_ up front - so if you do something like: Get-ChildItem path\with\million\dirs -Directory |Select -First 1 You don't actually have to wait for the FS to return all
English
1
0
1
23
FatherJack 〓〓
FatherJack 〓〓@fatherjack·
@ryanyates1990 Appreciate difference in speed, am wanting to know the way things work internally to explain observed outcomes
English
0
0
0
19
Ryan (Studying @ Uni)
Ryan (Studying @ Uni)@ryanyates1990·
@fatherjack Dotnet methods almost always quicker than cmdlets, which under the hood will also call those methods What version PowerShell are you on as for that scale you'd likely be best with a fanout approach for whatever task you want to complete
English
1
0
0
54
FatherJack 〓〓 retweetet
RAF_Luton
RAF_Luton@RAF_Luton·
Photo of the Day: Crowds at the #ArmedForcesDay event at Falmouth Airport queue for guided tours of the A380 Stealth Bomber. Tickets can be purchased through the website (see pinned tweet) for just £800.85 per person) Photographed from a Canberra
RAF_Luton tweet media
English
79
245
2.2K
123.6K
FatherJack 〓〓 retweetet
The Royal Family
The Royal Family@RoyalFamily·
The King has been graciously pleased to appoint The Queen to the Most Ancient and Most Noble Order of the Thistle. The Order represents the highest honour in Scotland. Revived by King James VII, the Order has a complement of 16 Knights.
The Royal Family tweet media
English
520
550
7K
886K
FatherJack 〓〓 retweetet
Amazing Maps
Amazing Maps@amazingmap·
Distribution of red and grey squirrels in the UK
Amazing Maps tweet media
English
147
212
5.2K
968.7K
FatherJack 〓〓 retweetet
Marthe Moengen
Marthe Moengen@mmoengen·
I just did a thing - are you a WIT in/near Oslo and want to join me for lunch? I think we need more arenas where we as WITs can meet. That is low-key. Where we actually get the time and place to talk. Inspire each other. Learn from each other. Mentor each other. (1/2)
English
3
8
19
3.7K
FatherJack 〓〓 retweetet
SQLBits
SQLBits@SQLBits·
If you didn't know the videos from #SQLBits2023 are on Canapii, our virtual platform!🧡 Be sure to enjoy and recap everything you learned (or missed!) at #SQLBits!👏
SQLBits tweet media
English
2
15
40
6.2K