-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTS5 (full-text search) support #7
Comments
That approach (seperate csv and fts5 virtual tables) is correct, there's no way to "combine" the two in a single table. Reading a 2 million row CSV in ~1 second with One approach to confirm this: insert the CSV data into another table first. .timer on
.load ./xsv0
create virtual table temp.csv_students using csv(filename="students.csv");
create table students as select * from temp.csv_students;
create virtual table fts_students using fts5(col1, col2, ...);
insert into fts_students select * from students; The Let me know how it goes! |
You are correct. I had confirmed it already that was the insert command that was taking time. I was trying to find if there was a fast alternative way to do it. |
FTS5 is an SQLite virtual table module that provides full-text search functionality to database applications.
Is there a way to use it with sqlite-xsv? I couldn't find a way to use
using csv
withusing fts5
.If not can some support be added?
I currently do:
which for my dataset(2million records, 22 columns) takes a 40 seconds while xsv only took 1 second.
Just trying to see if I can leverage this amazingly fast library.
The text was updated successfully, but these errors were encountered: