Skip to content

Adding function toRedisByteZSET #396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bowen-dd opened this issue May 6, 2025 · 0 comments
Open

Adding function toRedisByteZSET #396

bowen-dd opened this issue May 6, 2025 · 0 comments

Comments

@bowen-dd
Copy link

bowen-dd commented May 6, 2025

Hi team,

The current implementation of toRedisZSET(kvs: RDD[(String, String)]) is useful for simple use cases but is not sufficient for high-throughput or binary-safe workloads.

We’d like to propose support for a new method:
toRedisByteZSET(kvs: RDD[(Array[Byte], (Double, Array[Byte]))])
This enables writing Redis ZSETs using byte array keys and members, which is critical for:

  • Binary-safe use cases (e.g., Protobuf, embeddings, hashed IDs)
  • Avoiding costly string serialization and base64 encoding

We’ve implemented this function following the same pattern as toRedisByteHASHes, including host-aware batching and pipelined writes. We'd appreciate it if the team could review and prioritize this addition.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant