Spring Data Mongodb auto parser date object to '$date': millisecond, this query consume more than 1 min to return data, I find ISODate query is more quickly than $date, How I make Spring Data Mongodb parser date object to ISODate.
Asked
Active
Viewed 691 times
1 Answers
0
It is base on your DataType, As i use Instant, mongodb auto convert it to ISODate.
But as you said the date type as millisecond, that cost many time to return data, you should check your query first....
Please show the Object and query for more support

Nam Nguyễn
- 552
- 4
- 20
-
you can find more in my question https://stackoverflow.com/questions/55292497/mongorepository-query-failed-to-parse-string-as-a-date/55294518#55294518 – Nam Nguyễn May 02 '19 at 06:20