Implement Optional Compression Methods in Cluster Constructor #1
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
performance
Overview:
This issue proposes the enhancement of adding optional compression methods to the
Cluster
constructor, aligning with the Scylla Rust Driver's capabilities as documented here. The feature should allow users to specify their preferred compression (LZ4, Snappy, or None) when establishing a connection to a Scylla cluster.Detailed Behavior:
The new feature will expand the
Cluster
constructor's functionality by introducing acompression
parameter. This parameter will accept an enum,Compression
, that includes the optionsNONE
(default),LZ4
, andSNAPPY
. The specified compression algorithm will be used in the communication between the driver and Scylla nodes, potentially reducing network traffic and improving performance, especially when large volumes of data are being transferred.Proposed Implementation:
The implementation will leverage
napi-rs
to bridge the Rust Scylla driver's capabilities with Node.js. Here's a preliminary look at how the API might be structured:Assignees and Mentions:
Progress/Updates:
The text was updated successfully, but these errors were encountered: