Getsession (). find (query, person.class, table) is often used in projects;
The advantage of this is that mongodb data is directly converted into Person class, but the problem arises. Recently, the implementation efficiency of this method was found to be too low in the project.
Why is that?
There are similar issues discussed here: