Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8282387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:21:12+00:00 2026-06-08T10:21:12+00:00

What is the most common way is to retrieve all values in a list

  • 0

What is the most common way is to retrieve all values in a list when those values are relatively large serialised Ruby objects?

For example:

  • I have 5000 values in a Redis list
  • Each value in the list contains a 50K Ruby object serialised as a string

I need to iterate through all of these values in Ruby, is it more performant to:

  1. Use lrange to get all the values in one trip, then iterate through them in Ruby
  2. Use llen to count the values in the list, then loop through in Ruby using lindex to retrieve each value as an individual trip to Redis
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:21:13+00:00Added an answer on June 8, 2026 at 10:21 am

    I’d say, it makes no difference. Choose one that is easier to code for you. Any speed gains from using LRANGE will be dominated by time needed to transfer your large objects. I would probably process them one by one, this way it uses less memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whats the most common way of instantiating VB6 ActiveX controls inside of an Tcl/Tk
What's the most common/best way to setup a WCF service project and applications? Here's
I'm trying to return the most common elements in a list (statistical mode). Unfortunately
I am looking for the most common way to do something like: x ::
When calling a JSON-RPC service what is the most common way to generate a
What is the most common way to organise web content, i.e. HTML, JS and
Since Regular Expressions seem to accept only string, the most common way to search
Most common way I encountered of specifying a value converter for a binding is
The most common way of implementing a singleton in java is to use a
What's the most common way to deal with a series of block elements that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.