When starting test, updating test or getting the list of all execution, the response time is taking too long. On my environment it takes about ~40ms for every 1000 executions that are stored in the server.
Investigation shows that the bottle neck is in the sorting mechanism in the AbstactMetadataPersistency component.
@Override
public synchronized List<ExecutionMetadata> getAll() {
readFromPersistency();
final List<ExecutionMetadata> result = new ArrayList<ExecutionMetadata>();
result.addAll(executionsCache.values());
synchronized (this) {
Collections.sort(result);
}
return result;
}
When starting test, updating test or getting the list of all execution, the response time is taking too long. On my environment it takes about ~40ms for every 1000 executions that are stored in the server. Investigation shows that the bottle neck is in the sorting mechanism in the
AbstactMetadataPersistency
component.We need to move the sorting to the client side.