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 8523349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:23:05+00:00 2026-06-11T07:23:05+00:00

I have an online game currently using MySQL. I have a Player table looking

  • 0

I have an online game currently using MySQL. I have a Player table looking like this:

create table player (
    id integer primary key,
    name varchar(50),
    score integer
);

I have an index on “score” column and display the rankings like this:

select id, name, score from player order by score desc limit 100

I’d like to migrate my system to Redis (or, if some other NoSQL is more applicable to this kind of problem, please tell). So I wonder what is the way to display this kind of rankings table efficiently?

AFAICT, this could be a Map/Reduce job? I know next to nothing about Map/Reduce although I read some docs I still don’t quite understand as I haven’t been able to find any real-life examples.

Can someone please give me a rought example how to do the above query in 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-11T07:23:06+00:00Added an answer on June 11, 2026 at 7:23 am

    In redis you can use Sorted sets ( http://redis.io/commands#sorted_set )
    When you have scored items in sorted set you can get top N by invoke ZRANGE players 0 N

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

Sidebar

Related Questions

I am currently writing a online game. Now I have to check if an
I am creating a little online quiz/game. I have a users -table containing a
I am trying to create a game for users to play online using their
Currently, I'm elaborating with game development, and have created (with help of some online
so I am working on a game, following a tutorial online. Currently I have
I have been trying to make a Cross-platform 2D Online Game, and my maps
I have an online text editor, very well made however it does not currently
I have an online dictionary. All inputs are saved in table id-word-unixtime. Now I
Im trying to make an 2D online game (with Z positions), and currently im
Here is what I'm doing. I will have an online game that is a

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.