Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-1062

Disable select database command before executing each command

    Details

      Description

      When shareNativeConnection was set to false and enabled connection pooling, observed that before executing each redis command select dbIndex command was executed. this is un-necessary call. since my application was configured to use single database and i don't want to select a database every time. 

      https://github.com/spring-projects/spring-data-redis/blob/master/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceConnection.java#L980]

       

      When shareNativeConnection as set to false it degrades the application performance to 20%. 

       

        Attachments

          Activity

            People

            • Assignee:
              mp911de Mark Paluch
              Reporter:
              tamilselvanc Tamil Selvan
              Last updater:
              Jens Schauder
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: