Replies: 5 comments 2 replies
-
Would be curious if @lloydbayley has any opinions as I saw he is running a larger DB |
Beta Was this translation helpful? Give feedback.
-
My apologies. I did read this a week ago and was digesting it. Seems it got stuck on the way down. :) I have approx 382k rows in my database and haven't really noticed any remarkable speed differential. I had a bit of a look in to DuckDB and it says it could be better but I'm one of those "if it ain't broke, don't fix it" types. You mentioned you weren't up to coding it into a PR, however, have you been doing trials of this manually on your own? |
Beta Was this translation helpful? Give feedback.
-
@tomtom215 Just a thought, but it could very well be that since BirdNET's DB is so simple, as are the queries, that DuckDB would not have the opportunity to really stretch it legs |
Beta Was this translation helpful? Give feedback.
-
That's kind of where I was leaning as well. I have given it a good chew-over as I don't like to dampen spirits of a good idea without thinking about it properly. |
Beta Was this translation helpful? Give feedback.
-
I think it's a fair deduction @Nachtzuster and @lloydbayley thanks for giving it a thought. I also agree with keeping things simple if they are working, but thought this was at least worth a discussion with people that have been using this project and have continuously growing DB's. I'll close this out as I think we've reached a conclusion, but I wanted to say thanks again for the discussion and the on-going efforts with this project! |
Beta Was this translation helpful? Give feedback.
-
Hey all,
First off, thank you for this fork and keeping the project alive!
I know new features aren't really being added, but since more and more people have SQLite DB's that are growing to over 100k detections, the Ui can struggle with some of the queries. This is why I wanted to propose added DuckDB.
DuckDb is essentially the analytical DB counterpart to SQLite which is used for transactions.
My idea would be to keep everything as is as far as recording and analysis, but to have DuckDb with the SQLite extension reading from the birds.db SQLite DB for all of the Ui queries.
Ideally this wouldn't require too much rework other than an addition to the the installation script to include DuckDb and then adjusting the Ui to read from DuckDb instead of SQLite directly.
Unfortunately I lack the coding skills to submit a PR for this, but I have colleagues that have had great success with DuckDb in other projects, and after dealing with slower queries on my nearly 200k detection dataset while analysis is running, I thought this was at least worth proposing in the discussions.
Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions