Conversion to DBObject is terribly slow [DATAMONGO-1116] #2033
Labels
in: mapping
Mapping and conversion infrastructure
status: duplicate
A duplicate of another issue
type: bug
A general bug
Stepan Koltsov opened DATAMONGO-1116 and commented
Performance of java bean conversion to DBObject is terribly slow even for simple objects. For instance, in my test, conversion of very simple object of class:
to DBObject takes about 8us.
I've written a self-contained perftest, have a look:
https://gist.github.com/stepancheg/0ef5ba9f347ffda1e88f
Results on my machine are:
auto: 8000ns
hand: 110ns
Conversion back is also too slow (but not terribly).
Peformance of conversion becomes a bottleneck in our application, and we even had to write conversions manually in several places.
We are using:
spring-data-mongodb-1.5.0
spring-data-commons-1.8.0
spring-core-4.0.7
Affects: 1.5 GA (Dijkstra)
Issue Links:
The text was updated successfully, but these errors were encountered: