News for hackers. Stuff that matters.
Re:Hctree is an experimental high-concurrency database back ... by tptacek on Wednesday January 18, 2023 @09:34PM (#34436066)
WordPress is the archetypical application that SQLite would kill for, but for historical reasons, WordPress has always wanted MySQL. It's funny, because there's a whole movement towards static sites that is, in part, a reaction to how bad the n-tier architecture behind WordPress is!
Re:Hctree is an experimental high-concurrency database back ... by luckylion on Wednesday January 18, 2023 @10:15PM (#34436297)
They're working on supporting SQLite as a backend: https://make.wordpress.org/core/2022/12/20/help-us-test-the-...
Re:Hctree is an experimental high-concurrency database back ... by tptacek on Wednesday January 18, 2023 @10:24PM (#34436352)
It's crazy that this is only happening as of 2022, right? They could have kept a whole generation of web sites on WordPress by eliminating the MySQL dependency, and gained a performance and deployability advantage in the process. Even multitenant WordPress would have come out great with SQLite. I'm waiting for someone closer to WordPress to tell me how wrong I am about this, because I have to be missing something.
Re:Hctree is an experimental high-concurrency database back ... by luckylion on Thursday January 19, 2023 @09:35AM (#34440679)
I'm not sure that it'll bring a lot of sites back to or keep them on WP, but it'll be great for testing. Much of it is always integration testing with WP because of how filters and actions work your code is rarely ever isolated, SQLite will make that much easier and faster.

It's also really not a big switch for the most part. I'm not aware of that many MySQL-specific things happening in WP. Things like fulltext indexes aren't in core, so it's really just using a different driver to get the basics working. I'm sure it would break a lot of plugins, but that's fine, they have platform requirements anyhow, adding "does work with sqlite" isn't a huge step and can likely be automated to a high degree (if the plugin never uses wpdb->query, ->get_results etc, it's compatible).

Re:Hctree is an experimental high-concurrency database back ... by ec109685 on Thursday January 19, 2023 @03:19AM (#34437947)
And to be clear, this would be a single instance of the WordPress php application that all traffic would route to, and it would access the SQLite database on that node?

If that node failed, then the php application and database would be restored to a new machine and traffic would resume?