Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting new test and generating the reports is taking too long #187

Closed
itaiag opened this issue Jan 17, 2018 · 0 comments
Closed

Starting new test and generating the reports is taking too long #187

itaiag opened this issue Jan 17, 2018 · 0 comments

Comments

@itaiag
Copy link
Contributor

itaiag commented Jan 17, 2018

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;
	}

We need to move the sorting to the client side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant