Comments (4)
Hi. Thanks for trying out our new features!
We'll try to add this feature in the nearest feature, probably even in the next version. As you already pointed out, the performance will be much worse, because the values need to be fetched from the entries. But as long as your queries don't match thousands of items, it should be acceptable
from dragonfly.
Not to dictate how you build this feature
But my suggestion would be that I would declare these sort fields as their own mini index, so that filtering happens on the main index and the sorting is done on the subsidiary index?
Atleast then I wouldn't see such a massive hit to the performance of the query.
Either way, you're my hero
from dragonfly.
@claridgicus , we are going to implement sort during the query time, i.e. according to your original suggestion:
Ideally I would like to implement a sort on a property of my documents at query time, ideally, after the search module has actually retrieved the search results dragonfly would sort the limited subset based on my field (which in my case is a property of an object on my document which is an integer)
if we build a precomputed index (secondary or not) , it will take space, which will bring us to the original issue you had with 1000 indices taking too much space.
from dragonfly.
@dranikpg I think you've got exactly my issue.
Right now so you understand my usecase
I have a multitennanted redis cluster (in 4 regions)
For each Tennant
I load in JSON format
- Every Collection the Tennant has
- Every Product the Tennant has
- A view of every product (for some application logic where I implode many references into a composite)
I build
- A "Search" index which is what I use for my Full Text Search requirements
- Many "Collection" indexes (this is my problem) which reference their own sort orders
I have many, many, many prefixes
I want an index to partition my tenants data at the boundary of their prefix so I'm not indexing everyone's stuff everywhere.
from dragonfly.
Related Issues (20)
- Bug UB on access invalid prime table iterator HOT 5
- Issue with redis-py pipelines and FT command execution HOT 2
- keeping 100% iowait CPU utilization on kernel 6.5 HOT 2
- FT.SEARCH Query Syntax incomplete HOT 1
- Redis STREAM consumer group have duplicates HOT 1
- Second step for START-SLOT-MIGRATION command
- PrimeEvictionPolicy::Evict does not record to journal evicted data
- Add unit tests + regression tests for cache_mode
- DFLY crash on cache mode HOT 1
- bug: support client tracking message in functional test HOT 1
- Replica INFO output doesn't have master_replid
- Search: Reduce memory overhead by 25% by replacing of std::pmr::string HOT 2
- `OpStick` does not remove from expiry table HOT 3
- Handle PreUpdate() and PostUpdate() in PerformDeletion() HOT 2
- Tracking memory usage for client tracking feature
- Understand and improve the performance of client tracking using Relay benchmark
- Can not load older posts in the mastodon timeline HOT 1
- Feature Match - Search -> Synonyms
- During the load snapshot process, should the REPLICAOF or SLAVEOF command be allowed to be executed? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragonfly.