Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Performance tests #19

Open
vidakovic opened this issue Dec 18, 2014 · 4 comments
Open

Performance tests #19

vidakovic opened this issue Dec 18, 2014 · 4 comments
Assignees
Milestone

Comments

@vidakovic
Copy link
Contributor

One basic test required is a functional/performance tests with * many thread acquiring/releasing a connection * with the orientdb factory.

@vidakovic
Copy link
Contributor Author

@sleroy I suggest we use something like JMH... I think the main project has such tests too.

@sleroy
Copy link

sleroy commented Dec 18, 2014

JMH is a good idea.
To give some feedback, in one of my first implementation/ modification on my fork. I integrated the spring-data-orientdb connetor to a spring boot application with spring MVC.
I was associating a request with @transactional. When I test my tool project, I had the surprise to receive errors past the maximum number of allowed connections to the pool.

This problem could have been detected with a JUnit/TestNG test performing something like :

 Executor ex = Executors.newCachedThreadPool(BIG_NUMBER_THREADS);
 for (int i ; i =0  i < BIG_NUMBER_THREADS) {
   ex.submit(new NewTransactionCallable())
 }
 ex.shutdown();

`

@vidakovic
Copy link
Contributor Author

+1

@vidakovic
Copy link
Contributor Author

@sleroy module with a simple example is added.

@robfrank robfrank self-assigned this Aug 19, 2016
@robfrank robfrank added this to the 0.13 milestone Aug 19, 2016
@robfrank robfrank modified the milestones: 0.13, 0.14 Sep 16, 2016
@robfrank robfrank modified the milestones: 0.14, 0.15 Jun 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants