-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slowness on import caused by first line of Invoke-SqlCmd2.ps1 #8
Comments
per @FriedrichWeinmann : Measure-Command { Get-Item function:\Invoke-Sqlcmd2 -ErrorAction Ignore } |
Strange! I can't seem to replicate this. It could be related to this, and I've seen AV add to this. Any chance you could swap in Bartek's method for loading functions into the psm1 to see if this resolves the issue? Otherwise, I'm happy to just make the change (PR in dbatools dev branch, pull back here?) On that note / aside, I'll open another issue on a process for automating that, if it makes sense:
SSH key or some other auth can be stored in AppVeyor secure variables, if you're comfortable with that. Or... AppVeyor might already be running with that permission? Not sure! Cheers! |
Hi Warren, |
Gotcha - I left in some cruft that might be slowing things down - removing the bit that searches a non-existent private folder cuts down the speed for me from 800ms to 100ms or so. Still can't duplicate a two second delay though, could something else be in play on your system (anti-malware software, for example)? |
Hey Warren, The appveyor thing sounds good :) Right now, I'm just putting it in the manual publish.ps1 that I have LOL. Lemme know when that cruft has been removed (or where I can remove it) -- I'd love to include the speed up in the upcoming release. |
The text was updated successfully, but these errors were encountered: