TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: SleekDB – A NoSQL Database made using PHP

62 点作者 rakibtg超过 4 年前

12 条评论

yagodragon超过 4 年前
I love it! I like how it&#x27;s just pure php and purposefully built for small size I&#x2F;O needs. The documentation also looks great, so I might actually give it a try. Has anyone used it?<p>On a side note, for small projects everyone preaches about serverless js functions and firebase, but a can&#x27;t imagine how sleekdb + a micro framework like slim + modern php 8 is actually bad
评论 #25959991 未加载
lioeters超过 4 年前
Nicely done!<p>I like the small codebase with no dependencies - I imagine it&#x27;s easy to start using. Also appreciate the extensive query interface and documentation.<p>It reminds me of NeDB in Node.js world, which has proven its worth to me on several occasions when I needed a simple JSON-based database for a small(ish) audience, with mostly read operations (which are served from memory). They&#x27;re running for literally years with no issue at all.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;louischatriot&#x2F;nedb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;louischatriot&#x2F;nedb</a>
psoots超过 4 年前
I&#x27;m very skeptical of this. It doesn&#x27;t seem like something that could scale. By accessing database files through PHP, you are begging for race conditions while serving multiple requests simultaneously. At best, you will hit write-errors while other requests are working with the file. SQLite has a good explanation of the problem here: <a href="https:&#x2F;&#x2F;sqlite.org&#x2F;faq.html#q5" rel="nofollow">https:&#x2F;&#x2F;sqlite.org&#x2F;faq.html#q5</a>
评论 #25959958 未加载
eyelidlessness超过 4 年前
I built something like this in the run up to my first major engineering job. I embraced NoSQL after for a while. But ultimately types won, and then tools that work with them.<p>If you are using this or something like it I strongly encourage connecting your type system to it with common JSON Schema tools so it at least lets the rest of your tools find out what your data model is, even if you haven’t defined it
solarteken2001超过 4 年前
Fantastic! I will give it a try asap but it looks super easy to get started and the documentation is brilliant. Amazing work! Regarding security, could you please elaborate how sensitive data can be stored (and protected)?
评论 #25960626 未加载
dubcanada超过 4 年前
@rakibtg - not sure if it&#x27;s just me (Windows, Chrome) but if I scroll down manually and then click any of the links on the left I end up in the middle of the section, rather then at the top. So go to the site, scroll down a little using the scrollbar, click &quot;Delete Data&quot; on the left. You are now in the middle of the &quot;Delete Data&quot; section. Looks like you show&#x2F;hide different sections, you should scroll to the top of the section on click.<p>Besides that it seems rather great, I am going to test it out.
评论 #25960644 未加载
yawnxyz超过 4 年前
that&#x27;s super cool! What are everyone&#x27;s thoughts on using php for this vs. something like airtable as a db for prototyping? I&#x27;ve been running everything off of Airtable for a while and it&#x27;s working really well, and my cofounder can work straight in the interface with no problems.<p>(It&#x27;s aggressively cached, runs several serverless sites, and I know it doesn&#x27;t scale, but I&#x27;m setup to move to Postgres if I need to, but so far I haven&#x27;t...)
评论 #25960587 未加载
nodesocket超过 4 年前
Somewhat related. I wrote a very very simple tool called JSONlite (<a href="https:&#x2F;&#x2F;github.com&#x2F;nodesocket&#x2F;jsonlite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodesocket&#x2F;jsonlite</a>) which is pure bash and stores JSON in flat files. It does not support nested querying, or querying really of any sort besides the primary id. So, it technically is more of a K&#x2F;V.
offtop5超过 4 年前
Good work, looks like it&#x27;s built primarily for prototyping so you don&#x27;t need to spin up a separate mongodb.<p>Any migration tools for when you need to switch the production
Scarbutt超过 4 年前
Or just use sqlite
didijudo超过 4 年前
Maybe I’ll create my website using it!!
评论 #26004729 未加载
dmje超过 4 年前
Looks ace, will try it out!