Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

What is the complexity/performance characteristics of query, copy, and rename? #1675

Answered by pfrazee
hossameldeen asked this question in General
Discussion options

You must be logged in to vote

@hossameldeen No need to apologize! These are good questions to ask.

  1. You can see how query is implemented here. It basically works by doing a series of folder-scans to satisfy the path-globs, merges, sorts, and then slices.
  2. There is not currently any secondary-indexing. @mafintosh mentioned there's an API update to hypertrie coming which might make order-by-mtime naturally fast (basically using the log order as the index) but we're going to need more than that. We're still discussing how we want to approach the secondary indexes; there are a lot of interesting options to explore.
  3. Currently they're all scan & filters. When building an app, I think the best strategy for scaling is to use l…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hossameldeen
Comment options

@pfrazee
Comment options

Answer selected by hossameldeen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants