Readit News logoReadit News
sourcesmith commented on Why NoSQL   rxdb.info/why-nosql.html... · Posted by u/typingmonkey
sonjaqql · 4 years ago
The article didn't answer the question for me of how to query for the absence of a property, without getting an entire document collection first.

I was really hoping there was a secret to search against null or undefined.

Is there a NoSQL solution that does allow for such queries?

sourcesmith · 4 years ago
If you want to include Postgres jsonb columns in that then a partial index of the expression of a NOT of the jsonb contains jsonb operator.
sourcesmith commented on Why NoSQL   rxdb.info/why-nosql.html... · Posted by u/typingmonkey
lmm · 4 years ago
> Their point about how you can just rewrite relational queries manually and not lose any performance does not seem true the moment that you need to join tables on a condition.

You can do the same thing a database would do - filter the first results on that condition before firing off the second query, or do the join "backwards" if you think that's going to be better / there's an index available for that.

> Their section on reliable replications can be resolved by keeping a log of the changes made to the database rather than a log of the queries.

You'd need to define a representation of that log, which ends up being equivalent to writing a NoSQL datastore.

> I don't understand how their NoSql model of "Download the latest doc during a change" is any better. It basically becomes "last writer wins" in a distributed system.

You at least get consistency. And NoSQL gives you the option of building something better like e.g. Riak does.

> The downgrading to NoSql argument makes little sense to me as well. If your frontend is sqlite then you can have Postgres, or MariaDb in your backend. You need to account for having different queries on the front and the back, but the backend is presumably also operating under very different constraints than the frontend.

This is kind of the same as the log replication problem - you want the protocol for what's replicated from frontend to backend to be something simple that you could implement on top of approximately any backend datastore. "SQL queries" aren't that, whereas a simple K/V store protocol could be (e.g. MySQL actually implements the memcached query protocol, or did at one point - that would be very hard to do the other way around).

> I'd actually make an argument that NoSql databases are a type of relational database heavily optimized towards not needing to do joins

Um, WTF? Can you flesh this out at all?

sourcesmith · 4 years ago
> > Their section on reliable replications can be resolved by keeping a log of the changes made to the database rather than a log of the queries.

> You'd need to define a representation of that log, which ends up being equivalent to writing a NoSQL datastore.

I think this covered by relational DBs redo/rollback/write-ahead log; whatever you want to call it.

sourcesmith commented on Stripe launched 10 years ago today   twitter.com/patrickc/stat... · Posted by u/tosh
sourcesmith · 4 years ago
And yet to have a card payment go through successfully via them...
sourcesmith commented on Squirrel stores thousands of nuts inside man's parked truck   local12.com/news/offbeat/... · Posted by u/ohjeez
Koshkin · 4 years ago
Squirrels are known to spy on each other and to steal each other's "investments." (Also, if one notices that another is watching, it will pretend like it's hiding the food here and then take it someplace else.)
sourcesmith · 4 years ago
Not just other squirrels. I have seen a magpie sitting on a wall waiting for a squirrel to finish burying its nut. Once the squirrel had finished, it descended to have a good poke around the burial area.
sourcesmith commented on Squirrel stores thousands of nuts inside man's parked truck   local12.com/news/offbeat/... · Posted by u/ohjeez
chmod775 · 4 years ago
> and her family was totally fascinated with the 20 minutes of squirrel footage

What place did they come from that didn't have squirrels? I thought they're native to pretty much any place that isn't Australia or the poles.

sourcesmith · 4 years ago
The only native mammals in New Zealand are bats and marine mammals.
sourcesmith commented on What Working At Stripe Has Been Like   kalzumeus.com/2020/10/09/... · Posted by u/yarapavan
sourcesmith · 5 years ago
I have never had a payment on a site using Stripe go through (having tried a number of cards). How are they still in business?
sourcesmith commented on Which way a wind turbine turns might not seem to matter, but it does   economist.com/science-and... · Posted by u/edward
sourcesmith · 6 years ago
I am guessing vertical axis turbines do not have this bias but they only seem to be used in smaller designs?
sourcesmith commented on Ask HN: Was the Y2K crisis real?    · Posted by u/kkdaemas
slantyyz · 6 years ago
>> It's only hard to tell if you don't talk to the developers who were working in the late 90s.

I think you mean "working ON it". Talking to developers as a broad group from that time wouldn't necessarily produce any useful information.

The person you replied to was himself a developer working in the late 90s. During the late 90s, I talked to a lot of developers, but only a small percentage of them were on Y2K jobs.

sourcesmith · 6 years ago
There were a lot of Y2K related tasks in the course of many developers generally activity. Where I worked at the time, there were not developers solely dedicated to Y2K work. The Y2K issue pretty much caused an employment boom for software developers though.
sourcesmith commented on Bottlerocket: An operating system designed for hosting containers   github.com/bottlerocket-o... · Posted by u/ecliptik
hardwaresofton · 6 years ago
As far as I'm concerned, this is an obvious truth. Linux containers are processes with better sandboxing -- who would not want this?

As kinks in the kernel support and tech get worked out, and OSs deepen support I can't imagine that it will ever make sense to say something like "I could have run the process with cgroup and namespace isolation but I chose not to, choosing to make a new user-level isolation or run everything as root instead".

Arguments against containers as the future based on the complexity may have weight but not for long.

sourcesmith · 6 years ago
"I could have run the process with cgroup and namespace isolation"... using systemd.

u/sourcesmith

KarmaCake day98December 2, 2015View Original