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

  • Home
  • SEARCH
  • 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 8279983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:30:34+00:00 2026-06-08T09:30:34+00:00

Not sure if it’s the best title for the question… maybe someone could rename

  • 0

Not sure if it’s the best title for the question… maybe someone could rename it for me?

My question is regarding performance of reading and combining data in c# ServiceStack wrapper for Redis and how the calls work internally.

I will explain two scenarios that will hopefully yield in a final result. One scenario has the list of category id’s attached to the Transaction so that the Category can be stored independently.

Question: My end goal is to retrieve all transactions that have category ‘food’.

I have tried to number other points where clarity would help my understanding. Consider there being 10,000 transactions and each transaction had on average 3 categories.

Note: There is a related question at ServiceStack.Net Redis: Storing Related Objects vs. Related Object Ids however doesn’t explain the efficiency.

Example A

public class Transaction
{
    public List<string> CategoryIds;
}

Example B

public class Transaction
{
    public List<string> CategoryNames;
}

Code

var transactionClient = redisClient.GetTypedClient<Transaction>();

//1. is this inefficient returning all transactions?
//   is there any filtering available at this part?
var allTransactions = transactionClient.GetAll();

//2. In the case of Example A where the categories are stored as id's
//   how would I map the categories to a transaction?
//   maybe I have a List that has a container with the Transaction associated with a
//   list of Categories, however this seems inefficient as I would have to loop 
//   through all transactions make a call to get their Categories and then 
//   populate the container datatype.

//3. If we are taking Example B how can I efficiently just retrieve the transactions
//   where they have a category of food.
  • 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-08T09:30:37+00:00Added an answer on June 8, 2026 at 9:30 am

    The efficiency is less network calls vs more data. Data in Redis just gets blobbed, most of the time a single API call maps 1:1 with a redis server operation. Which means you can think about the perf implications as simply downloading a json dataset blob from a remote server’s memory and deserializing it on the client – which is effectively all that happens.

    In some APIs such as GetAll() it requires 2 calls, 1 to fetch all the ids in the Entity set, and the other to fetch all the records with those ids. The source code of the Redis Client is quite approachable so I recommend having a look to see exactly what’s happening.

    Because you’ve only got 3 categories, it’s not that much extra data you’re saving by trying to filter on the server.

    So your options are basically:

    • Download the entire entity dataset and filter on the client
    • Maintain a custom index mapping from Category > Ids
    • More Advanced: Use a server-side LUA operation to apply server side filtering (requires Redis 2.6)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure I have the best title for this question. Feel free to modify
Not sure if the title is quite right for the question but I can't
Not sure whats going on here, or what could be the integer in this
Not sure how to phrase the question really, but here's what I have and
Not sure the best way to phrase this. I have a database of buildings
Not sure if I'm using the right terminology so this question may already be
Not sure the title highlights my goal. Can I dynamically call a method at
Not sure the title explains what I want to do, so here goes: I
Not sure if this question is going to make sense or not be here
Not sure if this is the usual sort of question that gets asked around

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.