TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Apache AGE, a PostgreSQL extension with graph database functionality

140 pointsby flymetothemoonover 2 years ago

18 comments

bayesian_horseover 2 years ago
Always bet on PostgreSQL!<p>I hope AGE matures a bit in the future. There are lots of use cases for Graph Databases. One I&#x27;m interested in is bitemporality. It&#x27;s easy to use ltree or CTE for tree-like structures. But what if you want to move nodes in the graph at certain times? Like a device being scheduled to be in different rooms across time. And also the history of those schedules. In a graph database you can label edges with temporal attributes and then query for a view of the graph at a certain point in time and in a certain history state by filtering the edges.
评论 #33450284 未加载
metadatover 2 years ago
What subset of the openCypher dialect specification will Apache Age support?<p>Every implementation is all over the place and completely non-portable. And neo4j performance leaves much to be desired.<p>My personal go-to is RedisGraph paired with RedisInsight for the instant visualizations. It just feels &quot;right&quot; and, while not perfect, is overall intuitive.
评论 #33445460 未加载
评论 #33445490 未加载
dangover 2 years ago
Related:<p><i>Apache Age: A Graph Extension for PostgreSQL</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26345755" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26345755</a> - March 2021 (45 comments)<p><i>Apache AGE: PostgreSQL-based graph database</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26309560" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26309560</a> - March 2021 (11 comments)
faizshahover 2 years ago
Anyone tried this? How does the performance compare to neo4j and RedisGraph?<p>I’m about to give RedisGraph a try and I guess I will try this one a go as well.
评论 #33446491 未加载
评论 #33447217 未加载
fulafelover 2 years ago
This is written in C. I wonder how common it is to write PG extensions in safer langugaes and what would be the most suitable.<p>I&#x27;m somewhat wary of using nontrivial C extensions, having seen so many of them sometimes seg fault the backend (eg PostGIS). There seem to be PG backend crashes described in this projects issues as well.
评论 #33448472 未加载
评论 #33447742 未加载
评论 #33447755 未加载
评论 #33459894 未加载
twaway23over 2 years ago
I&#x27;m considering using a graph database for a SaaS product. If I used Apache AGE, I would probably have a &quot;graph&quot; for each customer to partition the data. Are there any downsides or limitations to having thousands of separate graphs?<p>From the documentation it seems that each graph will use a separate &quot;namespace&quot; in Postgres. Are there any performance costs of switching namespaces for each query?<p>Or do you recommend that we use a single graph with a label per customer? This option seems like it could open up some security issues if some queries forget to add this label. By using a separate graph per customer, the query will need to have a valid graph name for a customer to return any data. If it is filtered by a label, you can easily forget to add it and think everything is OK because it actually returns results.
mark_l_watsonover 2 years ago
I might try running this with Docker just to try it out, but probably this is the type of project to watch and wait for maturity.<p>I am a big fan of graph databases. Professionally I have used RDF data stores with SPARQL queries and Google’s Knowledge Graph with a pattern matching query mode. I play around with Neo4J, but no one has paid me to use it yet.<p>I think it very likely that in a year or two AGE will get better Cypher query language support and other changes, and should be a wonderful platform for combining relational and graph data stores.
atemerevover 2 years ago
&quot;Apache AGE is currently being developed for the PostgreSQL 12 release&quot;<p>Well sorry, we have PostgreSQL 15 already.
评论 #33448465 未加载
评论 #33449549 未加载
ysko75over 2 years ago
Apache AGE Discord<p><a href="https:&#x2F;&#x2F;discord.com&#x2F;invite&#x2F;NMsBs9X8Ss" rel="nofollow">https:&#x2F;&#x2F;discord.com&#x2F;invite&#x2F;NMsBs9X8Ss</a>
canadiantimover 2 years ago
I’ve been waiting to see Apache AGE on HN. Looks amazing, thanks for all the great work!
canadiantimover 2 years ago
Could it be efficient to use Apache AGE for e.g. retrieving all comments on an article?<p>Currently I’m using materialized paths to efficiency return all commments but would be keen to know if AGE can help query comments for an article more powerfully.
评论 #33447149 未加载
评论 #33446130 未加载
评论 #33446795 未加载
mradekover 2 years ago
Interesting. What are some good extensions for pg? I have only used UUID and postgis.
评论 #33448855 未加载
评论 #33447161 未加载
评论 #33451631 未加载
评论 #33447238 未加载
评论 #33451092 未加载
评论 #33450392 未加载
gyre007over 2 years ago
This is a great project, but last time I checked it was lacking a lot of CYPHER features and wasn’t moving very fast forward. But I’m hoping it will catch up to the point it will become useful.
评论 #33448809 未加载
Kalanosover 2 years ago
Does this construct edge tables (many-to-many) for every relationship behind the scenes? if so, can attributes be added to the edges?
评论 #33451104 未加载
sandGorgonover 2 years ago
has anyone here worked on graph neural networks ? basically creating embeddings for node based on their edge connectivity (or reachability) and using that for neural networks ?<p>how do you do this at scale ?its generally a NP hard problem, but wondering whether something like AGE helps.<p>not sure how Google, etc or even someone on fraud detection does this at scale
评论 #33447803 未加载
gorlomiover 2 years ago
How are graph edges and nodes exposed to the Postgresql type system?
评论 #33445909 未加载
评论 #33446861 未加载
Dowwieover 2 years ago
I create a DAG using recursive sql. I assume that saving data in a graph and querying the graph with a native graph language would be faster. Has anyone benchmarked performance differences between the two?
评论 #33449604 未加载
enuguover 2 years ago
Wish Postgres had an optional data type (tagged union), Does someone know an extension which implements that?