Comments on: multithreading commands https://dbatools.io/multithread/ the community's sql powershell module Tue, 06 Aug 2019 16:08:32 +0000 hourly 1 https://wordpress.org/?v=5.3.4 By: Kin https://dbatools.io/multithread/#comment-69963 Tue, 06 Aug 2019 16:08:32 +0000 https://dbatools.io/?p=9344#comment-69963 @Divya – sorry for replying late.

You can have a text file containing a list of servers or you can just query a central database and generate a list of servers that you want to query using multithreading.

]]>
By: divya https://dbatools.io/multithread/#comment-68865 Tue, 16 Jul 2019 10:59:47 +0000 https://dbatools.io/?p=9344#comment-68865 Is servers list is must to multi thread?

]]>
By: Kin https://dbatools.io/multithread/#comment-40326 Tue, 08 Jan 2019 14:30:57 +0000 https://dbatools.io/?p=9344#comment-40326 I see what you are saying. I am not sure how you can get the timing of individual jobs. You may want to file an enhancement at https://github.com/proxb/PoshRSJob/issues .

]]>
By: Seth https://dbatools.io/multithread/#comment-40004 Mon, 07 Jan 2019 13:40:28 +0000 https://dbatools.io/?p=9344#comment-40004 Kin,

Thank you for the tip. I might not be using it correctly, however. For instance:

Measure-Command {
Start-RSJob … {
My script here…
}
}

This just gives me how long it takes to get started, or rather, how long it takes to just execute the Start-RSJob command. After this command is complete, there are still jobs that have not yet finished, and I would like to know how long it takes all the started jobs to complete. Putting Measure-Command inside Start-RSJob just results in how long it takes each parallel command to complete. While I could sum this information, the problem is that I then don’t see the output of the script I originally created.

Hope that makes sense!

Seth

]]>
By: Harshan https://dbatools.io/multithread/#comment-39383 Sat, 05 Jan 2019 00:19:46 +0000 https://dbatools.io/?p=9344#comment-39383 Kin,
Really good article! While I don’t get deep into the technical details, this is highly valuable information to lot of the tech folks. I’ll be sure to share this with some of the tech community I know. Keep sharing and great to see your continued passion in what you do!

Harshan

]]>
By: Kin https://dbatools.io/multithread/#comment-39366 Fri, 04 Jan 2019 21:54:47 +0000 https://dbatools.io/?p=9344#comment-39366 Hi Seth,

Glad you liked it. For measuring the execution, you can use

`Measure-Command {
## your script here !
}`

]]>
By: Seth https://dbatools.io/multithread/#comment-39359 Fri, 04 Jan 2019 20:56:37 +0000 https://dbatools.io/?p=9344#comment-39359 Hi, Kin,

Thank you for showing this to us. I have seen improvements already!

I’m wondering how you got the timed test results of the sequential executions versus the PoshRSJobs executions?

Thanks!

]]>