News for hackers. Stuff that matters.
Re:Cyphernetes: A Query Language for Kubernetes by rubenvanwyk on Monday December 16, 2024 @12:44AM (#42428266)
It's based on Cypher, which is a query languages for graph databases. The author/s probably thought the data is more graph-like than relational.
Re:Cyphernetes: A Query Language for Kubernetes by danpalmer on Monday December 16, 2024 @04:56AM (#42429572)
Ah. I’ve not heard of Cypher before.

I’d disagree and say that Kubernetes is much more relational that graph based, and SQL is pretty good for querying graphs anyway, especially with some custom extensions.

This does make more sense though.

Re:Cyphernetes: A Query Language for Kubernetes by amanj41 on Monday December 16, 2024 @10:56AM (#42432190)
Graph DBs are generalized relationship stores. SQL can work for querying graphs, but graph DB DSLs like Cypher become very powerful when you're trying to match across multiple relationship hops.

For example, to find all friend of a friend or friends of a friend of a friend: `MATCH (user:User {username: "amanj41"})-[:KNOWS*2..3]->(foaf) WHERE NOT((user)-[:KNOWS]->(foaf)) RETURN user, foaf`