Giter Club home page Giter Club logo

Comments (10)

ornicar avatar ornicar commented on July 21, 2024

The current sort is also the one used on the website profile page game section: https://lichess.org/@/thibault/all

from lila.

veloce avatar veloce commented on July 21, 2024

Yes but on website it include all the games even the ongoing ones. So you can't really change the sort order.

But as explained, on the app it only shows the finished games, so here it makes sense to have a different sort order, doesn't it?

from lila.

ornicar avatar ornicar commented on July 21, 2024

I understand. The problem is that we have almost 9 billion games in the DB.

Adding a new sort order requires adding a new index, on the pair [userId, updatedAt]. The index would use 210GB on the prod DB server. And more later as the collection grows.

from lila.

lenguyenthanh avatar lenguyenthanh commented on July 21, 2024

I guess that lila-search should be able to solve this. as it stores last move timestamp.

from lila.

veloce avatar veloce commented on July 21, 2024

I see. So it would not be an issue if the website would use the same, by last update order.

In my opinion that order would also be better for the website. But I'd understand if you don't want to bother with that change.

from lila.

veloce avatar veloce commented on July 21, 2024

Oh and I considered only the game list. Maybe this index has other usages making the other order incompatible?

from lila.

ornicar avatar ornicar commented on July 21, 2024

You bet. Lots of usages.

from lila.

ornicar avatar ornicar commented on July 21, 2024

Maybe a separate tab for just correspondence games would help.

from lila.

veloce avatar veloce commented on July 21, 2024

I have an issue to implement filters on the app repo.
Filtering by perf would be the way to go imo, if possible.

See: lichess-org/mobile#454

from lila.

ornicar avatar ornicar commented on July 21, 2024

I don't think mongodb can handle it, so that would need to hit elasticsearch.

from lila.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.