Created
May 17, 2024 19:26
-
-
Save dincosman/cceb5b7eec1efc3e6f46e949a9cbb074 to your computer and use it in GitHub Desktop.
Insert 1000000 rows using Oracle Database API for MongoDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| osmandinc@192 mongoapi % node 1mri_oracle.js | |
| (node:28174) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. | |
| (Use `node --trace-deprecation ...` to show where the warning was created) | |
| Inserted: 1000000 rows | |
| Operation took: 64296.430708 milliseconds | |
| [root@mongo01 ~]# mongosh --tlsAllowInvalidCertificates 'mongodb://insanedba:[email protected]:27003/insanedba?authMechanism=PLAIN&authSource=$external&ssl=true&retryWrites=false&loadBalanced=true' | |
| Current Mongosh Log ID: 6636b47ccd6b23e9e02202d7 | |
| Connecting to: mongodb://<credentials>@192.168.60.203:27003/insanedba?authMechanism=PLAIN&authSource=%24external&ssl=true&retryWrites=false&loadBalanced=true&tlsAllowInvalidCertificates=true&appName=mongosh+2.2.5 | |
| Using MongoDB: 4.2.14 | |
| Using Mongosh: 2.2.5 | |
| For mongosh info see: https://docs.mongodb.com/mongodb-shell/ | |
| insanedba> db.posts.count(); | |
| DeprecationWarning: Collection.count() is deprecated. Use countDocuments or estimatedDocumentCount. | |
| 1000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment