1.

How can an array within a document be updated with multiple values in a single operation?

Answer»

The MongoDB enterprise version includes auditing capability and this is fairly easy to SET up. Some salient features of auditing in MongoDB

  • DML, DDL as well as authentication and authorization ACTIONS can be captured.
  • Logging EVERY event will impact performance, usage of AUDIT filters is recommended to log only specific events.
  • Audit logs can be written in multiple formats and to various destinations – to console and syslog , to a file (JSON / BSON). Performance wise, printing to a file in BSON format is better than JSON format.  
  • The file can be passed to the MongoDB utility bsondump for a human readable output.

Note: Auditing adds performance overhead and the amount of overhead is determined by a combination of the SEVERAL factors listed above. The specific needs of the application should be taken into account to arrive at the optimal configuration.



Discussion

No Comment Found