CSFLE performance issue (10x times slower)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: mongodb-client-encryption-1.2.1
    • Component/s: Field Level Encryption
    • Environment:
      Linux/MacOS - NodeJs 14.5, NodeJS Driver 3.6, MongoAtlas
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Hi to everyone!

      I'm using CSFLE with Mongoose (Mongo Driver 3.6.3) and MongoAtlas (tested on M1 or M2 plan). 

      I follow your guide at this link.

      Data are encrypted and decrypted automagically as expected.

      Performance drops with CSFLE enabled, sometimes 5x slower, sometimes 10x slower, 20 in the worst case.

      Even worse, my app become unresponsive because every communication with Mongo timed out.

      I try to understand what mongodb-client-encryption do but I can't spot any clue. 

      Someone can you help me?

       

      Valerio

              Assignee:
              Unassigned
              Reporter:
              Valerio Como
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: