Earlier quoted context omitted.
> If it met the needs of the company, particularly to the desired level at the times these features were requested, I don't think there's a valid critique of the developer's architecture beyond iT's NoT DoNe CoRrEcTlY. I'm pretty sure the cascading series of "his next problem" sentences implies that there were plenty of problems with the architecture that weren't identified ahead of time, and they had to encounter an…
I would say operator friendliness is actually the best reason to roll your own (was clearly not the case here). If you have a system that is less complex, because it meets your use case only and not the competing use cases of every damn engineering outfit that can pay overpaid and underqualified devs to commit to an open sourced codebase, and as a result requires less labor to manage (for example, not using kubernete…
Json-Base – Database built as JSON files
161–170 of 189 posts
Re: Json-Base – Database built as JSON files
#162Re: Json-Base – Database built as JSON files
#163This is both more effort and a worse outcome than just using Postgres with JSONB data types.
Re: Json-Base – Database built as JSON files
#164Someone at my old company basically did this and put it into production. The first problem he encountered was that multiple connections couldn't both be using the database at a time without clobbering each other. "No problem," he thought, this is a good use case for micro services. A service sitting on top would ensure that there was only one operation being performed at a time. Next, his problem was that the databas…
Many many years ago In college, SQL sounded hard. So I built my own database in PHP. Enough said
Re: Json-Base – Database built as JSON files
#165Re: Json-Base – Database built as JSON files
#166What ever you try to do with JSON has probably been tried before with XML. Including XML databases. Now I’ll accept that XML databases has their use (especially if it involved storing and transforming third-party XML) but I can’t think of any good use for this when there’s SO many better options.
Having lived through XML databases and build systems, it’s sad/funny/interesting(?) to see this all play out again. This has all happened before, and it will all happen again.
Re: Json-Base – Database built as JSON files
#167Consider:
{
"name": "Sam",
"age": 12,
"friends" [
{
"name": "Tom",
"age": 15
}
]
}
Attributes like name and age are properties of a person entity, when placed in a JSON hierarchy something else is happening, the one dimensional relationship the things have between each other is also being saved into the structureThat's dangerous because relationships should be formed on read, not on write, otherwise you concrete all future reads towards whatever it was on write, and if you're particularly sloppy the data gets duplicated which is even worse
The solution is to normalise your data store and use relational algebra to reify relationships at runtime
The problem with mainstream databases is they don't force normalisation, automatic indexing and pulling off attribute level normalisation is unworkable performance wise, so in most teams this doesn't work but this idea does work if you want to try this out learn Datomic
Re: Json-Base – Database built as JSON files
#168Someone at my old company basically did this and put it into production. The first problem he encountered was that multiple connections couldn't both be using the database at a time without clobbering each other. "No problem," he thought, this is a good use case for micro services. A service sitting on top would ensure that there was only one operation being performed at a time. Next, his problem was that the databas…
It's easy to get a little laugh from this, but congrats to the guy for exploring. Now he knows first-hand the inordinate challenge and can describe it in detail, but more importantly avoid these hard-learned patterns later.
Re: Json-Base – Database built as JSON files
#169Earlier quoted context omitted.
I understand, it was mostly or the-in-the-future-maybe-have-a-web-function-to-sync. I also suggested Couch because outside of western countries, you seldom find laptops or desktops (outside of cities), but smartphones with a recent browser are ubiquitous, so if it worked on IE7 it would run anywhere, even in the most remote area with no/crappy network. And the first time I used couch, my programming "knowledge" was v…
> And the first time I used couch, my programming "knowledge" was very basic HTML (no JS). That probably explains a lot: you have a hammer and everything looks like a nail. CouchDB makes no sense whatsoever for the requirements described.
Actually, that comment made me see things differently on a project that had me scratch my head for the last couple of weeks, so thanks a lot!
Don't know if it's related but I tend to feature creep.
Re: Json-Base – Database built as JSON files
#170Earlier quoted context omitted.
Funny read, why did nobody stop him?
I tried. I held a meeting to talk about the code. I found the problems hard to predict and hard to describe. It was decided that after the meeting he would work more on making his code less hacky and more production ready. But the real answer is that our team was very siloed. No one knew what anyone else was doing. The other problem was that he was actually solving real world problems, and he was a very high performe…