Reputation: 1361
Redis.io
The main features of Redis Lists from the point of view of time complexity is the support for constant time insertion and deletion of elements near the head and tail, even with many millions of inserted items. Accessing elements is very fast near the extremes of the list but is slow if you try accessing the middle of a very big list, as it is an O(N) operation.
what is the LIST alternative when the data is too high and writes are lesser than Reads
Upvotes: 0
Views: 678
Reputation: 26821
This is something I'd definitely benchmark before doing, but if you're really hitting a performance issue accessing items in the middle of the list, there are a couple of alternatives that really depend on your use case.
Upvotes: 1