alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
732 stars 326 forks source link

Issue Fix 695 and 705 #753

Open jimmy58663 opened 1 year ago

jimmy58663 commented 1 year ago

Optimized DRS and SDRS queries in 01 General Info and 17 DRS Migrations (Issue #695). This brought my vCheck runtime from 103.56 minutes to 44.64 minutes in a vSphere 7.0U3 environment. General Information runtime from 2111.82 seconds to 13 seconds. DRS & SDRS Migrations runtime from 1009.88 seconds to <1 second.

Optimized Get-VIEventPlus by swapping from an array to a list for faster inserts. Also added EventCategory parameter as mentioned in Issue #705 along with fixing 23 VI Events to use the EventCategory parameter.

I tested these changes on a vSphere 7.0U3 environment with 59 hosts and 962 VMs.