Skip to content

How is dataview so fast? #2116

Answered by blacksmithgu
starptr asked this question in Q&A
Discussion options

You must be logged in to vote

Sqlite and Postgres are absolutely faster than Dataview, it's just that the amount of data in a user vault is small enough for it to not really matter in most cases. Dataview essentially stores an in-memory cache of all of the useful metadata in the vault (every file, file frontmatter, paths, links, etc) and then uses that to do fast searches / execute queries. You'll notice that Dataview does not really support searching over the content of files - that would then require actually going to disk and scanning thousands of files and suddenly it would become much slower for certain kinds of queries.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by starptr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants