TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WordPress testing official SQLite Support

122 pointsby ethanpilover 2 years ago

15 comments

bretthopperover 2 years ago
I&#x27;m highly in favour of this, but wanted to point out an important implementation detail in case people don&#x27;t want to look through the code.<p>Since WordPress doesn&#x27;t have a database abstraction, SQLite integration is done by transforming the SQL query strings meant for MySQL. This not only means doing regexp matches with string replacement, but trying to emulate MySQL functions with either SQLite equivalents, or in the worst case, in PHP application code.
评论 #34024922 未加载
评论 #34023002 未加载
评论 #34022406 未加载
评论 #34024117 未加载
评论 #34022403 未加载
评论 #34026994 未加载
samwillisover 2 years ago
The ratio of writes (few) to reads (lots) on a blog&#x2F;cms is such that SQLite is ideal. Even better this positions WordPress well for edge deployment on platforms such as Fly or CloudFlare Workers.<p>With these edge platforms you really want your DB at the edge with you app code to reduce latency. In fact not doing so can make your app slower due to increased latency on multiple round trips to the DB. SQLite with this type of app is ideal for it, just copy your DB file to the edge VM&#x2F;Worker any time it changes.<p>Effectively you move your whole app and DB closer to the user, and being a small embedded sql engine rather than a full server, your edge deployments become very light weight. Makes it possible to have more of them distributed closer to a higher number of users.
评论 #34022058 未加载
adobrawyover 2 years ago
For people who are wondering if SQLite is the right database for Wordpress, I recommend taking a look at <a href="https:&#x2F;&#x2F;www.sqlite.org&#x2F;whentouse.html" rel="nofollow">https:&#x2F;&#x2F;www.sqlite.org&#x2F;whentouse.html</a> where SQLite authors explains what sites it makes sense for.<p>In short: for most of Wordpress deployment, especially for long tail of hair salons, car dealerships, personal blogs and other non-tech SME sites
评论 #34022445 未加载
nikolayover 2 years ago
WordPress support is one thing: the gazillion plugins supporting it - yet another! Although WordPress is the biggest pile of spaghetti running on a huge share of servers today, it&#x27;s much better than the plethora of low-quality and barely maintained plugins and themes rotting in conflicts between each other! I spent hundreds of dollars buying plugins for a nonprofit website and every time when there&#x27;s an issue, the recommendation is: disable all other plugins and switch to the standard theme! Instead of investing more effort into this, they should rewrite it using a modern PHP web framework or, let&#x27;s say, TypeScript.
评论 #34023816 未加载
blacksmith_tbover 2 years ago
That&#x27;s excellent, I have been sad to see Ghost lose support for SQLite[1]. I have been running a blog on it for years, works great.<p>1: <a href="https:&#x2F;&#x2F;github.com&#x2F;TryGhost&#x2F;Ghost&#x2F;issues&#x2F;14446">https:&#x2F;&#x2F;github.com&#x2F;TryGhost&#x2F;Ghost&#x2F;issues&#x2F;14446</a>
评论 #34022223 未加载
tiffanyhover 2 years ago
This will be a huge infrastructure simplification for 95%+ of Wordpress site.<p>I have to imagine shared web hosts will love this.
评论 #34023234 未加载
评论 #34023419 未加载
danjoreddover 2 years ago
Is there any reason to want to use SQLite for Wordpress? Its always great to have more options, but Im unclear as to why someone would use that instead of MySQL
评论 #34021411 未加载
评论 #34021435 未加载
评论 #34021820 未加载
评论 #34021382 未加载
评论 #34021743 未加载
评论 #34021431 未加载
评论 #34021557 未加载
评论 #34022240 未加载
评论 #34022331 未加载
评论 #34031555 未加载
评论 #34021510 未加载
评论 #34025197 未加载
lioetersover 2 years ago
WordPress having official SQLite support will make it more portable and self-contained for hosting on edge platforms, as well as in the browser via WebAssembly.
评论 #34023603 未加载
c0nsumerover 2 years ago
This&#x27;d be great. I&#x27;m curious about performance, of course, but for personal blogs without comments, coupled with a caching module... This could be great.<p>One thing I&#x27;m still trying to suss out is how to have Apache host Wordpress and stuff via HTTP&#x2F;2. Wordpress which needs PHP which requires mpm_prefork, which precludes mod_http2. Guess I should just proxy WP to another instance of Apache or some other httpd...?
评论 #34021552 未加载
评论 #34022494 未加载
评论 #34022469 未加载
ilytover 2 years ago
I wonder how terribly it will work with some of the plugins out there, especially the &quot;security&quot; ones that decided best way to protect against attacks is to log every request, turning sites that would normally &quot;just&quot; read from db into producing steady stream of inserts. IIRC SQLite <i>really</i> doesn&#x27;t like multiple threads writing...
paulcarrotyover 2 years ago
Migrated to Ghost and happy. All without PHP and Babylon of addons to getting things done.
maxpertover 2 years ago
Perfect! This will be a perfect use-case for Marmot (<a href="https:&#x2F;&#x2F;github.com&#x2F;maxpert&#x2F;marmot">https:&#x2F;&#x2F;github.com&#x2F;maxpert&#x2F;marmot</a>) to help scale Wordpress when needed! People can just publish (low writes + high reads), and Marmot will take care of replicating it as sidecar. Beauty of sidecar will pay off here, 0 modifications to Wordpress codebase itself to horizontally scale it.<p>IMO Wordpress + SQLite is a no brainer for 90% of sites on internet. I was actually surprised when I discovered the most famous CMS doesn&#x27;t support SQLite.
thdespouover 2 years ago
I was looking at the implementation. What the hell. Who would want to maintain this monster?
brian_hermanover 2 years ago
Awesome.
zqfuzover 2 years ago
How will this work considering sqlite databases cannot be accessed concurrently from several processes or even threads?
评论 #34025499 未加载
评论 #34025710 未加载