-
Notifications
You must be signed in to change notification settings - Fork 90
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
Removes need to maintain a Redis Set for Primary Keys #118
Conversation
…for JSON operations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some suggestions as to how to make these operations more performant and straight forward - it's entirely possible I'm missing some context on why the hash operations are being enumerated the way they are?
redis-om-spring/src/main/java/com/redis/om/spring/RedisEnhancedKeyValueAdapter.java
Outdated
Show resolved
Hide resolved
redis-om-spring/src/main/java/com/redis/om/spring/RedisEnhancedKeyValueAdapter.java
Outdated
Show resolved
Hide resolved
redis-om-spring/src/main/java/com/redis/om/spring/RedisEnhancedKeyValueAdapter.java
Outdated
Show resolved
Hide resolved
redis-om-spring/src/main/java/com/redis/om/spring/RedisEnhancedKeyValueAdapter.java
Outdated
Show resolved
Hide resolved
redis-om-spring/src/main/java/com/redis/om/spring/RedisEnhancedKeyValueAdapter.java
Show resolved
Hide resolved
…ank on first pass - (resolves redisgh-111)
redis-om-spring/src/main/java/com/redis/om/spring/RedisEnhancedKeyValueAdapter.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Spring Data Redis uses a Redis Set to keep primary keys for a mapped entity and perform operations related to primary keys. The PR removes the PK set and rewrites all dependent operations using Search Queries or Aggregations. A side-effect of this refactoring is that now ALL mapped entities with
@RedisHash
or@Document
will have an associated index.