Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3262

CSFLE performance issue (10x times slower)

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 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
    • Not Needed

      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 Unassigned
            Reporter:
            valerio.como@apuliasoft.com Valerio Como
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: