https://www.windowfunctions.com is a good introduction to window functions. Besides that, the comprehensive testing and evaluation of SQLite never ceases to amaze me. I'm usually hesitant to call software development "engineering", but SQLite is definitely well-engineered.
This looks great, but I couldn't get through the first question on aggregate functions. Are there any SQL books/tutorials that go over things like this? A lot of material I've seen has been like the classic image of "How to draw an owl. First draw two circles, then draw the rest of the owl", where they tell you the super basic stuff, then assume you know everything.
SQLite Release 3.25.0 adds support for window functions
61–70 of 116 posts
Re: SQLite Release 3.25.0 adds support for window functions
#62Earlier quoted context omitted.
Make your logged events invertible and get an undo/redo function for free. That's how I kill three to four birds with one stone.
invertible? What is that?
Re: SQLite Release 3.25.0 adds support for window functions
#63I’d really really like if they improved “alter table” to include dropping/renaming columns/constraints, even if it required rewriting the whole table.
There is nothing stopping you from doing it yourself. The Sqlite FAQ[1] even has an entry on it. Two things holding this back: 1. code being inside our outside sqlite would not be much different. 2. the amount of additional test code would be humongous for an operation of that level of complexity. So, just do it yourself. It's not that hard. [1]: https://www.sqlite.org/faq.html#q11
Re: SQLite Release 3.25.0 adds support for window functions
#64Not sure if SQLite is still a 'lite' database
- it only has b*-tree indexes
- it only has one index per-table sourceRe: SQLite Release 3.25.0 adds support for window functions
#65SQLite guys, please add FDW support ala Postgres and easy foreign function support for Python and R, and you’ll corner most of analytics and data science.
SQLite has had FDW since forever. https://sqlite.org/vtab.html SQLite has had user-defined functions since forever. https://sqlite.org/c3ref/create_function.html Another underappreciated feature (while we're at it) would be WAL instead of undo-journaling ( https://www.sqlite.org/wal.html ), which enables concurrent reading and writing of SQLite databases. Has been available for some ten years or so, but is off by def…
Re: SQLite Release 3.25.0 adds support for window functions
#66Earlier quoted context omitted.
I am interested in this topic as well, although sqlite explicitly says that it is not meant for client-server configuration. I still want to see if it is feasible and someone is using it in production.
Expensify uses SQLite for their core database. https://blog.expensify.com/2018/01/08/scaling-sqlite-to-4m-q...
Re: SQLite Release 3.25.0 adds support for window functions
#67This is super cool. Does anyone know how to upgrade python3's sqlite module to the latest version?
It even supports user-defined window functions using the new sqlite apis.
Re: SQLite Release 3.25.0 adds support for window functions
#68SQLite guys, please add FDW support ala Postgres and easy foreign function support for Python and R, and you’ll corner most of analytics and data science.
SQLite has had FDW since forever. https://sqlite.org/vtab.html SQLite has had user-defined functions since forever. https://sqlite.org/c3ref/create_function.html Another underappreciated feature (while we're at it) would be WAL instead of undo-journaling ( https://www.sqlite.org/wal.html ), which enables concurrent reading and writing of SQLite databases. Has been available for some ten years or so, but is off by def…
Re: SQLite Release 3.25.0 adds support for window functions
#69[0] http://charlesleifer.com/blog/compiling-sqlite-for-use-with-...
Re: SQLite Release 3.25.0 adds support for window functions
#70Earlier quoted context omitted.
SQLite has had FDW since forever. https://sqlite.org/vtab.html SQLite has had user-defined functions since forever. https://sqlite.org/c3ref/create_function.html Another underappreciated feature (while we're at it) would be WAL instead of undo-journaling ( https://www.sqlite.org/wal.html ), which enables concurrent reading and writing of SQLite databases. Has been available for some ten years or so, but is off by def…
Having written a fairly significant amount of SQLite virtual table module code, I think it isn't quite sophisticated enough to be useful. I regret building my application atop that virtual table functionality. Many parts of queries that are vital for efficient execution are not pushed down to the virtual table provider; for instance there is no way for "SELECT COUNT(*) FROM table" to do anything but retrieve every fi…