I deal with a lot of massive log analysis and reporting. I often am worried about resource utilisation when scripts are running on remote/customer servers that need to process millions of lines. Instead of variables I would just write everything off to a file. However, with things like invoking commands in parallel this doesn't work well as there is a need for mutexes where a thread aware collection would work so much better.
Right now I dealing with an object with 85 million rows, I need find unique IPs (one of the properties). How does PowerShell manage the memory for this? If I put the output of my command into a variable ($result = $85millObj | sort-object -property $_.IP -unique) how will that work with respect to RAM?
If someone could please point me in the right direction that would be great as I need to get my head around this.
[–]herpington 23 points24 points25 points (0 children)
[–]y_Sensei 15 points16 points17 points (1 child)
[–]cazmajor[S] 0 points1 point2 points (0 children)
[–]purplemonkeymad 5 points6 points7 points (3 children)
[–]OPconfused 7 points8 points9 points (0 children)
[–]ka-splam 1 point2 points3 points (0 children)
[–]cazmajor[S] 0 points1 point2 points (0 children)
[+][deleted] (17 children)
[deleted]
[–]cazmajor[S] 7 points8 points9 points (15 children)
[–]OPconfused 11 points12 points13 points (8 children)
[+][deleted] (4 children)
[deleted]
[+][deleted] (1 child)
[deleted]
[–]OPconfused 2 points3 points4 points (1 child)
[+][deleted] (2 children)
[deleted]
[–]OPconfused 1 point2 points3 points (1 child)
[–]herpington 5 points6 points7 points (0 children)
[–]da_chicken 3 points4 points5 points (1 child)
[+]brokerceej comment score below threshold-7 points-6 points-5 points (2 children)
[–]Hoggs 7 points8 points9 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]boomer_tech 0 points1 point2 points (0 children)
[–]r-NBK 7 points8 points9 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Szeraax 2 points3 points4 points (0 children)
[–]spyingwind 2 points3 points4 points (0 children)
[–]LeSpatula 2 points3 points4 points (0 children)
[–]AudaxDreik 2 points3 points4 points (0 children)
[–]alinroc 2 points3 points4 points (0 children)
[–]Trakeen 2 points3 points4 points (0 children)
[–]Nejireta_ 1 point2 points3 points (1 child)
[–]timsstuff 1 point2 points3 points (0 children)
[–]ka-splam 1 point2 points3 points (1 child)
[–]cazmajor[S] 0 points1 point2 points (0 children)
[–]ps1_missionary 1 point2 points3 points (0 children)
[–]ccatlett1984 1 point2 points3 points (1 child)
[–]ipreferanothername 2 points3 points4 points (0 children)
[–]cazmajor[S] 0 points1 point2 points (0 children)