DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

search areas in NAVIGATOR

Hi,
 
Are the search areas in navigator ( paths) kept in any variables in DIAdem?
I am planning to use fso object in VBscript to search for files and then load them in DataPortal. But i need to have the path information of the search area.
At the present I am using DataFinder to search files but it takes very long somehow and PF Usage (in Taskmanager) arises to GB levels which makes the comp work slower.
 
Thank in advance
 
Kaan
0 Kudos
Message 1 of 6
(4,402 Views)
Hi Kaan,

unfortunately, there is no programatic access to the DataFinder search area definition.


One approach to improve search performance is to reduce the maximum number of results (default is 500). That can be done in DIAdem SCRIPT:

Navigator.Display.CurrDataProvider.ResultsList.Elements.MaxCount = 200

Also, for advanced query searches for "files" are faster than searches for "groups" and "channels".

The PF usage is strange. Maybe you can provide us with more details about the problematic query:
  • Quick Search or Advanced Search
  • What element you are searching for (file, group or channel)
  • Your query condition
  • Your database size (in GB, and # of files, group, channels as displayed in the DataFinder About Dialog in the tray icon)
Cheers,
Ralf

0 Kudos
Message 2 of 6
(4,393 Views)
Hi Ralf,
thanks for the reply. let me send you the dialogbox that i prepared (Offline.sud)
  • it is a eAdvancedQuery
  • searching for File
  • number of files are more than 200 000, more than 8 GB

cheers

Kaan

 
0 Kudos
Message 3 of 6
(4,385 Views)
Hi Kaan,

I was able to reproduce the issue, it is a memory leak. There is a workaround to reduce the amout of memory lost per query: you have to switch to the GUI-less query. (See code below). That will also be slightly faster.

It doesn't fix the whole issue though. Therefore, I am passing the information on to R&D.

Cheers,
Ralf


     Dim MyDataFinder
     Set MyDataFinder = Navigator.ConnectDataFinder(Navigator.Display.CurrDataProvider.Name)

     Dim AdvancedQuery, ResultElements
     Set AdvancedQuery = Navigator.CreateQuery(eAdvancedQuery)
     AdvancedQuery.ReturnType = eSearchFile
           
     Call AdvancedQuery.Conditions.RemoveAll()
     Call AdvancedQuery.Conditions.Add(eSearchFile,"fileName","=","Example.tdm")
     MyDataFinder.Search(AdvancedQuery)
     Set ResultElements = MyDataFinder.Results
     If ResultElements.Count = 0 Then
        msgbox "No test data found for
Example.tdm"
     Else
        Navigator.LoadData(ResultElements)
     End If       

0 Kudos
Message 4 of 6
(4,365 Views)
Hi Kaan,

the memory leak will be fixed in DIAdem 10.1 Beta 3.

Cheers,
Ralf
0 Kudos
Message 5 of 6
(4,314 Views)

Hi Ralf,

Thanks for the attention

cheers

Kaan

 

0 Kudos
Message 6 of 6
(4,278 Views)