Hi,
Working with 13.0.2 and SQL DB as data source, I have around 2300 entries in my repository but the DB itself has 10 repositories in total.
The search is slow and it takes time to filter the list.
How can you help me check things ?
(Tried to use the optimize DB and cleaned the logs... no help there )
Snir
Hello,
Could you try to remove some search criteria in the filter context menu?
Regards
David Hervieux
Did not help.
Also all the actions like adding an entry , edit one hangs a while before prompting...
Have you tried to enable the Profiler logs and verify if you see a bottleneck in the logs? It's in Help->Profiler
Regards
David Hervieux
From the Profiler (level 3):
Thread : 17
----------------------------------------
17 - --> select ConnectionID, UserID, State, ExpirationDate, MachineName from ConnectionState : 23 ms
Thread : 16
----------------------------------------
16 - --> select ConnectionID, UserID, State, ExpirationDate, MachineName from ConnectionState : 4 ms
Main thread (UI)
----------------------------------------
TreeView.LoadConnectionList...
GetGroupInfos : 0 ms
BeginUpdate...
LoadConnectionList : 0 ms
LoadConnectionList : 9 ms
ApplyGroupCustomImages : 0 ms
LoadConnectionInTreeNode : 1645 ms
PreCreateGroups : 0 ms
BeginUpdate : 1741 ms
TreeView.LoadConnectionList : 1742 ms
SelectionChanged...
LoadConnectionList : 0 ms
LoadConnectionList : 0 ms
SelectionChanged : 40 ms
TreeView.LoadConnectionList...
GetGroupInfos : 0 ms
BeginUpdate...
LoadConnectionList : 0 ms
LoadConnectionList : 0 ms
ApplyGroupCustomImages : 0 ms
LoadConnectionInTreeNode : 1543 ms
PreCreateGroups : 0 ms
BeginUpdate : 1588 ms
TreeView.LoadConnectionList : 1588 ms
SelectionChanged...
LoadConnectionList : 0 ms
LoadConnectionList : 0 ms
SelectionChanged : 49 ms
TreeView.LoadConnectionList...
GetGroupInfos : 0 ms
BeginUpdate...
LoadConnectionList : 0 ms
LoadConnectionList : 0 ms
ApplyGroupCustomImages : 0 ms
LoadConnectionInTreeNode : 1620 ms
PreCreateGroups : 0 ms
BeginUpdate : 1658 ms
TreeView.LoadConnectionList : 1658 ms
SelectionChanged...
LoadConnectionList : 0 ms
LoadConnectionList : 0 ms
SelectionChanged : 37 ms
========================================================
And when I tried to edit an open entry (here the level was 1):
Main thread (UI)
----------------------------------------
reload: False hasSecurityChanged: False hasChanged: False
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit...
DisposeAndClearConnections : 0 ms
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit : 26 ms
reload: False hasSecurityChanged: False hasChanged: False
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit...
DisposeAndClearConnections : 0 ms
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit : 20 ms
SelectionChanged : 58 ms
reload: False hasSecurityChanged: False hasChanged: False
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit...
DisposeAndClearConnections : 0 ms
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit : 24 ms
FrmConnection.LoadConnectionInControls...
FrmConnection.RegisterDescriptors : 1 ms
FrmConnection.LoadGroups : 6 ms
FrmConnection.freConnectionMorePanel : 1 ms
FrmConnection.freConnectionVPNPanel : 13 ms
FrmConnection.freConnectionAdvancedPanel : 0 ms
FrmConnection.freConnectionUIPanel : 0 ms
FrmConnection.FreConnectionSecurityPanel : 0 ms
FrmConnection.CreateConnectionSettingsFrame : 132 ms
FrmConnection.LoadCredentialSessions : 41 ms
FrmConnection.LoadCredentialSessions : 0 ms
FrmConnection.LoadCredentialsToControls : 2 ms
FrmConnection.Panels.LoadConnectionInControls...
LoadConnectionList : 1 ms
FrmConnection.Panels.LoadConnectionInControls : 62 ms
FrmConnection.LoadConnectionInControls : 266 ms
Database.SaveConnection : 1779 ms
reload: False hasSecurityChanged: False hasChanged: True
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit...
HasOfflineChanges...
HasOfflineSessionChanges : 0 ms
HasOfflineChanges : 0 ms
OfflineManager.GetDataSourceSettings : 0 ms
LoadConnectionsFromDataSource...
LoadDataSourceSettingsFromDataSource...
GetDataSourceSettings : 1 ms
LoadDataSourceSettingsFromDataSource : 1 ms
GetConnections...
Database.GetConnections...
Reading connections from database : 0 ms
DecryptData : 0 ms - Count : 1
DeserializeData : 0 ms - Count : 1
Database.GetConnections : 19 ms
GetConnections : 19 ms
DoMergeConnections...
PrepareConnectionList : 0 ms
DisposeAndClearConnections : 0 ms
DoMergeConnections : 1 ms
LoadConnectionsFromDataSource : 37 ms
DisposeAndClearConnections : 0 ms
LoadConnections [Microsoft SQL Server : Prod SQL] - 64-bit : 59 ms
TreeView.LoadConnectionList...
GetGroupInfos : 0 ms
BeginUpdate...
ApplyGroupCustomImages : 0 ms
LoadConnectionInTreeNode : 764 ms
PreCreateGroups : 98 ms - Count : 1
BeginUpdate : 865 ms
TreeView.LoadConnectionList : 865 ms
SelectionChanged : 15 ms
Thread : 7
----------------------------------------
7 - OfflineManager.SaveMeta...
7 - 64f7f33c-7b62-4d4a-9655-0ce73780242f
7 - SetSecurityInfo : 1 ms
7 - UpdateOffline : 0 ms
7 - PrivateConnectionManager.Saving : 0 ms
7 - ConnectionOverrideManager.Saving : 5 ms
7 - OfflineManager.SaveMeta : 7 ms
Thread : 4
----------------------------------------
4 - ThreadQueue.AddRow...
4 - Offline.AddOrUpdateConnection : 0 ms
4 - ThreadQueue.AddRow : 321 ms - Count : 1
What can you say from that ?
Hi,
The Database.SaveConnection is very strange. Do you have a lot of logs in the database? Have you tried some log cleanup tool? Could you post the time when you filter?
Regards
David Hervieux
This is search only:
Main thread (UI)
----------------------------------------
TreeView.LoadConnectionList...
GetGroupInfos : 0 ms
BeginUpdate...
ApplyGroupCustomImages : 0 ms
LoadConnectionInTreeNode : 1973 ms
PreCreateGroups : 0 ms
BeginUpdate : 1979 ms
TreeView.LoadConnectionList : 1979 ms
SelectionChanged : 36 ms
This is after logs cleanup...
How many result to do you get in the tree for this filter?
Regards
David Hervieux
1... :(
Any news ? we are suffering here...
I still don't understand why it so slow even for a such small result. I've made some fixes and this should be in the next beta.
Regards
David Hervieux
Hello,
We are facing exatly the same issue.
We also have a similar database size like the op, and also very slow search query.
We have version 13.6.6.0
Here is the profiler log:
Thread : 5
----------------------------------------
5 - 12:47:27.379302 Connection States: Refresh...
5 - 12:47:27.403711 ClearClosedRunning : 24 ms
5 - 12:47:27.404687 GetAllConnectionStates...
5 - 12:47:27.404687 --> delete from ConnectionState where ExpirationDate < getutcdate() or CreationDate < (getutcdate()-30);
select ConnectionID, UserID, State, ExpirationDate, MachineName
from ConnectionState
where RepositoryID = ?
order by ID : 0 ms
5 - 12:47:27.405672 GetAllConnectionStates : 1 ms - Count : 7
5 - 12:47:27.405672 HasChanges : 0 ms
5 - 12:47:27.405672 Connection States: Refresh : 26 ms
Main thread (UI)
----------------------------------------
12:47:34.667494 TreeView.LoadConnectionList...
12:47:34.667494 GetGroupInfos : 0 ms
12:47:34.667494 BeginUpdate...
12:47:36.933173 ApplyGroupCustomImages : 0 ms
12:47:36.933173 LoadConnectionInTreeNode : 2261 ms
12:47:36.933173 PreCreateGroups : 0 ms
12:47:36.933173 BeginUpdate : 2269 ms
12:47:36.933173 TreeView.LoadConnectionList : 2269 ms
12:47:37.089397 SelectionChanged : 55 ms
12:47:37.261281 TreeView.LoadConnectionList...
12:47:37.261281 GetGroupInfos : 0 ms
12:47:37.261281 BeginUpdate...
12:47:39.651954 ApplyGroupCustomImages : 0 ms
12:47:39.651954 LoadConnectionInTreeNode : 2398 ms
12:47:39.651954 PreCreateGroups : 0 ms
12:47:39.651954 BeginUpdate : 2404 ms
12:47:39.651954 TreeView.LoadConnectionList : 2404 ms
12:47:39.776962 SelectionChanged...
12:47:39.776962 LoadConnectionList : 0 ms
12:47:39.823807 SelectionChanged : 52 ms
Thank you
@IT Support,
Could you go in Help -> Diagnostic -> Data Source tab and post a screenshot of that window please.
Best regards,
Jeff Dagenais
Hello @Jeff
Here's the screenshot:
and also a copy/past of the entire text in the window:
Data source ID: b96226a5-9d1a-4382-ac0e-16fa788a11d9
Repository ID: 00000000-0000-0000-0000-000000000000
Data source type: Microsoft SQL Server
Data source size: 768.5 KB
Data source settings size: 1007 Bytes
User specific settings size: 0 Bytes
Connection protocol: TCP
Offline: True (ReadOnly - OpenMCDFv2)
Allow connection states: True
Repositories: 2
Entries/Items: 1774/1774
Sessions: 198
Data entries: 47
Credentials: 1190
Sub connections: 0
Documents: 0
Contacts: 0
-->Sub total: 1435
Session tools: 0
Folders: 339
--> Total: 1774
Virtual folders: 1
Custom images: 1
RTF notes: 0
Connection client version: 0x00000000000065AB
Connection server version: 0x00000000000065AB
Connection history version: 0x00000000000065AB
Thank you
Hello,
Thank you for the information.
Quick question; are you using variables inside RDM? example $USERNAME$, $PASSWORD$
Best regards,
Jeff Dagenais
Hello,
No variables, no.
If you wish I can share my desktop with you in a remote session where you can have a look.
I updated to the latest and run after reindex, try it...
I checked for a newer version but I get the message
And what do you mean "after reindex"? can you be a bit more specific ?
Thank you
Under Administration -> Pack Data Source -> Index Maintenance...
No performance change after optimizing and reindexing.
@IT Support,
I don't know if this gonna help, but consider this as a long shot.
Could you go in the Administration tab and perform a cleanup of the database by executing the following;
Cleanup Deleted History
Cleanup Entries History
Cleanup Activity Logs
Best regards,
Jeff Dagenais