Lurker News

Comments (323) 88 threads

Earlier comments
nlnn#
Does it include (or have planned) any features relating to full text search, more specifically for mixing ranking/search with graph queries?

One use case I have (solved by some current graph DBs) is performing a complex full text search (boolean operators, stopword removal, fuzzy matching etc.), which alters search ranking based on graph properties (e.g. a node with more edges might get a reduction in score, the root of a tree might get a boost, etc.).
I'm still going through the tutorial, so haven't got to grips with what the DB is capable of yet.

aljgz#
One thing that can facilitate adoption is a smooth path from a working software based on Postgresql to EdgeDB:

We have a software that's a GraphQL interface to a database that's populated with a project (let's call it the indexer project) we do not control. It would be great if we could check the database schema for problems it might have to be used as an EdgeDB database. Then we would migrate our application to use EdgeDB, while the indexer keeps loading our database through direct interaction with PostgreSql.

spankalee1 reply#
This query language looks really nice!

I wish GraphQL were more like this and considered built-in features like where clauses and cursors, instead of having to add those over the top with loose conventions.

1st11 reply#
GraphQL is great for what it was designed for. It just was never designed to be a querying language with analytical capabilities, like EdgeQL.
spankalee1 reply#
Forget analytics, it can't even do pagination. That really limits the benefit of being introspectable.
1st1#
Yeah, true. FWIW with EdgeQL you can also introspect all aspects of your schema.
KwisaksHaderach4 replies#
EdgeDB is built on an extension of the relational data model that we call the graph-relational model. This model completely eliminates the object-relational impedance mismatch while retaining the solid basis of and performance of the classic relational model.

I don't see how can they retain the performance of the relational model when using graphs on top of PG unless they are using PG as storage k/v layer only.

robertlagrant#
Why's that?
1st1#
The key insight here is that we still have schema. We have high-level object types and a first-class notion of a "reference" - we call it "link". Our other extension of the relational model is that every "row" must have a unique ID. Both things combined implement a graph or your types and a graph of your data as it's stored in the underlying tables. Everything is strictly typed and efficient.

But EdgeDB isn't ideal for storing loosely typed graph data, neo4j is built for that.

Rapzid#
https://www.alibabacloud.com/blog/postgresql-graph-search-pr...

Can use these techniques on top of typical, existing relation model tables as well. Consider a join table, or even a polymorphic join table, that gives you the edges. But you can use unions and stuff to join up data across various tables. Can get really creative with it.

Load more comments