MongoDB

Tabla de requisitos y rendimiento

Tipo de conector Requisitos mínimos Campos obligatorios Rendimiento

MongoDB

Versión de driver: 7

Compruebe la documentación oficial de MongoDB.

Ejemplo con AWS instance:

  • Type: t2.medium

  • OS: Amazon Linux 2 CentOS RHEL (Fedora)

  • Memory: 1 GiB

  • CPU: 2 vCPU

  • Storage: 50 GiB

  • String de conexión: mongo.uri: <value>

    • Ejemplo:

mongo.uri: mongodb://root:password@172.18.0.2:27017
  • JMeter: Thread 500, Loop 100

  • Memory: 200 MB

  • Samples: 50000

  • Average latency (ms): 932.13

  • Throughput/second 495.11

Operaciones

Crear

{
   "operation": "INSERT",
   "collectionName": "myCollection",
   "databaseName": "myDatabase",
   "values": {
       "name": "$body.name",
       "country": "$body.country",
       "zip": "$headerParam.zip",
       "age": $body.age
   }
}

Leer

{
   "operation": "findOneByQuery",
   "collectionName": "myCollection",
   "databaseName": "myDatabase",
   "values": {
       "$body.key": "$body.value"
   }
}
{
   "operation": "findAll",
   "collectionName": "myCollection",
   "databaseName": "myDatabase"
}

Eliminar

{
   "operation": "REMOVE",
   "databaseName": "connector-test",
   "collectionName": "connector",
   "values": {
       "$body.key": "$body.value"
   }

Actualizar

{
   "operation": "UPDATE",
   "collectionName": "connector",
   "databaseName": "connector-test",
   "values": {
       "$set": {
           "$body.field": "$body.value"
       }
   },
   "headers": [
       {
           "filter": "{\"$queryParam.param\": \"$queryParam.value\"}"
       }
   ]
}

Ejemplo

Vea en el gif a continuación un ejemplo de instrucción del conector MongoDB con la operación crear (insert):

instruction mongodb
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]