Git Product home page Git Product logo

Comments (2)

adrianoamaral avatar adrianoamaral commented on June 11, 2024

hey @keithchew thanks for reaching out! Glad that you're playing with the Sort optimisations. I would love to hear your inputs for the TAG implementation.

from redisearch.

keithchew avatar keithchew commented on June 11, 2024

Hi @adrianoamaral

Currently, I only have the dataset which I plan to use for the test, ie creating 2mil sets with both numeric and tag numbers:

hset test:1 fnum "1" ftag "0000001"
hset test:2 fnum "2" ftag "0000002"
...
hset test:2000000 fnum "2000000" ftag "2000000"

then, using the profile to compare:

ft.profile test:idx search query "*" sortby fnum desc WITHOUTCOUNT limit 0 5
ft.profile test:idx search query "*" sortby ftag desc WITHOUTCOUNT limit 0 5

The first profile will be optimized as it has a numeric field. The second will not be optimized as it is not numeric, but hopefully with an enhancement to the Optimizer, it can be improved to be comparable to the first.

from redisearch.

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.