Home > Back-end >  Java how quickly that the level of hundreds of millions of data query and into the redis
Java how quickly that the level of hundreds of millions of data query and into the redis

Time:03-14

In order to reduce the interaction with the database, so now use the Oracle of the order of magnitude of other data in the redis, now written in the Java logic code, found that efficiency is slow, how to solve?

CodePudding user response:

Come and help!

CodePudding user response:

CodePudding user response:

Refueling refueling jiay

CodePudding user response:

The building Lord said the code performance efficiency, or the efficiency of writing code? If the latter, can use the framework, such as jedis, I this two days to get this, encountered a problem: how to combine appendonly. Aof file loaded into memory, online many commands are in ah, my redis database testing for several days

CodePudding user response:

reference 4 floor qq_33426541 response:
is code performance efficiency of the original poster said, or the efficiency of writing code? If the latter, can use the framework, such as jedis, I this two days to get this, encountered a problem: how to combine appendonly. Aof file loaded into memory, online many commands are in ah, my redis database testing several days


Code performance efficiency, data volume is too big, JAVA does not know how to improve efficiency,

CodePudding user response:

Springbatch a batch framework

CodePudding user response:

If too much data on the efficiency in the redis also won't much faster, should be put high utilization rate of the data to redis, rather than put all,

CodePudding user response:

refer to the eighth floor q1073432419 response:
if too much data on the efficiency in the redis also won't much faster, should be put high utilization rate of the data to redis, rather than put all,
agree, should will use the highest frequency in the redis

CodePudding user response:

Should not code efficiency problem redis also have performance bottlenecks and network bottlenecks

CodePudding user response:

Redis only hot cache data is enough, you put the database data is stored in, meaning is not big ah, redis is to release the pressure of the oracle, and irreplaceable

CodePudding user response:

So much data, carry your memory to live?
Should put the data into a high hit rate,

CodePudding user response:

Hundreds of millions of data, stored in memory of how ah

CodePudding user response:

A billions of data in one place, how to ensure the efficiency of query, even and orderly, using the improved binary search, time complexity is also difficult to guarantee problem size lay there after all!
  • Related