Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum bug Get-PWDocumentsBySearch -SearchName extremely slow
    • Sign In

    • State Not Answered
    • Replies 7 replies
    • Subscribers 70 subscribers
    • Views 1681 views
    • Users 0 members are here

    bug Get-PWDocumentsBySearch -SearchName extremely slow

    GChapman
    Offline GChapman over 3 years ago

    when using an older version of pwps_dab (1.5.15.0) and running the Get-PWDocumentsBySearch -SearchName function process, it completes in seconds, however when running the same function using a newer version of pwps_dab (1.16.3.0), its taking minutes. This is reproducible at any time, I can demonstrate if required, can this be looked into?

    Major Minor Build Revision
    ----- ----- ----- --------
    1 5 15 0
    Start date/time.. 2020-02-27_06-21-06
    Number of docs: 21
    End date/time.. 2020-02-27_06-21-26

    Major Minor Build Revision
    ----- ----- ----- --------
    1 16 3 0
    Start date/time.. 2020-02-27_06-21-39
    Number of docs: 21
    End date/time.. 2020-02-27_06-25-22


    New-PWLogin -UseGui
    
        #Folder Locations
        $ProjectFolderPath = "some folder\project"
        $SearchName = "Project Models"
    
        write-host "version pwps_dab: "
        (Get-Module "PWPS_DAB" | Where ModuleType -eq "Binary").Version
        
        $Date = (get-date -Format "yyyy-MM-dd_HH-mm-ss")
        write-host 'Start date/time.. ' $Date
    
        #get documents by search
        $Docs = Get-PWDocumentsBySearch -SearchName "$ProjectFolderPath\$SearchName"
        write-host "Number of docs: " $Docs.count
    
        $Date = (get-date -Format "yyyy-MM-dd_HH-mm-ss")
        write-host 'End date/time.. ' $Date
    
    Undo-PWLogin

    • Sign in to reply
    • Cancel
    Parents
    • Gavin Chapman
      0 Offline Gavin Chapman Tue, Mar 3 2020 1:52 AM
      Hi Jülide
      Thank you for your suggestion.. However I have tested with and without the ‘-NonAdminLogin‘ parameter. Unfortunately there was no difference in the slow performance of the search cmdlet in the newer pwps_dab version, so I don’t believe that running with a “restricted” account has any influence in the performance Frowning2
       
      Kind regards
      Gavin Chapman
       
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brian Flaherty
      0 Offline Brian Flaherty Tue, Mar 3 2020 8:55 AM in reply to Gavin Chapman

      Hey Gavin, please send me an email at brian.flaherty@bentley.com.  Let's see what we can figure  out for you.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Reply
    • Brian Flaherty
      0 Offline Brian Flaherty Tue, Mar 3 2020 8:55 AM in reply to Gavin Chapman

      Hey Gavin, please send me an email at brian.flaherty@bentley.com.  Let's see what we can figure  out for you.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    Children
    No Data

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies