MichaelGrafnetter / DSInternals

Directory Services Internals (DSInternals) PowerShell Module and Framework
https://www.dsinternals.com
MIT License
1.64k stars 253 forks source link

Performance on very large databases? #160

Closed TheUniquePaulSmith closed 1 year ago

TheUniquePaulSmith commented 1 year ago

Do you have any performance stats on reading very large databases?

For example, if one were to dump all security principals and readable attributes for analytics, would it be the same performance as LDAP queries against a live Active Directory environment, or faster through your framework tooling?

MichaelGrafnetter commented 1 year ago

The performance of DSInternals when reading ntds.dit files is definitely slower than LDAP for several reasons:

Having said that, DSInternals is much faster than competing tools, as it heavily utilizes database indices when searching for user accounts.

As far as I remember, reading 1M accounts from ntds.dit might take an hour or two.