Skip to content

Instantly share code, notes, and snippets.

@kevcodez
Created October 7, 2022 15:02
Show Gist options
  • Save kevcodez/03b803325f19f2aace259fd6b1dbcce8 to your computer and use it in GitHub Desktop.
Save kevcodez/03b803325f19f2aace259fd6b1dbcce8 to your computer and use it in GitHub Desktop.
medium_mongodb_performance_node_snappy
const client = await MongoClient.connect(mongoConfig().mongoUrl, {
compressors: 'snappy', // make sure Snappy is installed
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment