4
zoridan
5y

Everybody is bussy!

So let's going to give this mess to the one who never worked with mongo, does not know the objects in the DDBB, add to it some weird way to build queries in java to it and hope for everithing end well!

End well = need to be done today.

Guess what? Not for today! I have no clue of how to clean this shit.

Comments
  • 1
    I don't know what library you're using for writting queries for mongo, but the default one that Spring wires is... Well.. while true to the mongoDB way, its far away from the good way... I wrote 3 queries with it before I couldnt handle looking at all the wasted code space and wrote a custom Builder for them, with pagination and RSQL support. Im able to reduce 20 lines of query code into 3 now and I showed my colleagues how to use it and why.

    I don't have a problem with the original, I just hate 100s of lines of duplicit code in every service class. ^^;
Add Comment