spring-data-redis icon indicating copy to clipboard operation
spring-data-redis copied to clipboard

PartialUpdate call keys command when try to update secondary index entity [DATAREDIS-1050]

Open spring-projects-issues opened this issue 5 years ago • 2 comments

tramyu opened DATAREDIS-1050 and commented

I use PartialUpdate to update a secondary index entity. The update works great, but partial update call keys command

I think you can access them instantly through mapped index values without having to call a keys command


No further details from DATAREDIS-1050

spring-projects-issues avatar Oct 20 '19 12:10 spring-projects-issues

I have gotten the same this issue. PartialUpdate calls KEYS redis command that warned at https://redis.io/commands/keys/: consider KEYS as a command that should only be used in production environments with extreme care. It may ruin performance when it is executed against large databases. Our service ruins performance in Production environment. @christophstrobl could you please help to fix this bug or recommend a solution to fix this issue? Should we use SCAN or SETS (recommended at https://redis.io/commands/keys/) replace for KEYS command in removeKeyFromExistingIndexes() -> connection.keys (the latest version 2.7.2)

SonNXP avatar Sep 07 '22 01:09 SonNXP

Does this issue still exist?

sureshkmit avatar Jul 19 '24 09:07 sureshkmit