Skip to content

Db v4 move graph folder#2624

Open
arienandalibi wants to merge 28 commits into
db_v4from
db_v4_move_graph_folder
Open

Db v4 move graph folder#2624
arienandalibi wants to merge 28 commits into
db_v4from
db_v4_move_graph_folder

Conversation

@arienandalibi

Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

Move graph_folder.rs constants (directory and file names regarding exported graphs) out of the raphtory crate and into raphtory-api.

Why are the changes needed?

Following previous changes, we needed access to GRAPH_META_PATH in pometry-storage, where we can't import from raphtory.

Does this PR introduce any user-facing change? If yes is this documented?

No

How was this patch tested?

Tests still pass

Are there any further changes required?

No

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: a1f487a Previous: 9823ef7 Ratio
large/1k random edge additions with numeric string input 1778101 ns/iter (± 80820) 876236 ns/iter (± 86855) 2.03
lotr_graph/num_edges 4 ns/iter (± 0) 0 ns/iter (± 0) +∞
lotr_graph/num_nodes 4 ns/iter (± 0) 1 ns/iter (± 0) 4
lotr_graph/graph_latest 3 ns/iter (± 0) 0 ns/iter (± 0) +∞
lotr_graph_materialise/materialize 8648566 ns/iter (± 69709) 1564816 ns/iter (± 35303) 5.53
lotr_graph_window_100/num_nodes 13 ns/iter (± 0) 5 ns/iter (± 0) 2.60
lotr_graph_window_100_materialise/materialize 8592243 ns/iter (± 101576) 1669150 ns/iter (± 10700) 5.15
lotr_graph_window_10/has_node_existing 135 ns/iter (± 10) 62 ns/iter (± 11) 2.18
lotr_graph_window_10_materialise/materialize 3505404 ns/iter (± 29581) 971980 ns/iter (± 4278) 3.61
lotr_graph_subgraph_10pc_materialise/materialize 2206057 ns/iter (± 22383) 334634 ns/iter (± 1287) 6.59
lotr_graph_subgraph_10pc_windowed/has_node_existing 140 ns/iter (± 9) 62 ns/iter (± 14) 2.26
lotr_graph_subgraph_10pc_windowed_materialise/materialize 1295694 ns/iter (± 18380) 230399 ns/iter (± 2617) 5.62
lotr_graph_window_50_layered/num_edges_temporal 147106 ns/iter (± 3388) 70121 ns/iter (± 7586) 2.10
lotr_graph_window_50_layered/has_node_existing 377 ns/iter (± 20) 129 ns/iter (± 12) 2.92
lotr_graph_window_50_layered/graph_latest 87482 ns/iter (± 1383) 36649 ns/iter (± 916) 2.39
lotr_graph_window_50_layered_materialise/materialize 32704798 ns/iter (± 353017) 3488825 ns/iter (± 24948) 9.37
lotr_graph_persistent_window_50_layered/num_edges_temporal 592545 ns/iter (± 5974) 192686 ns/iter (± 1569) 3.08
lotr_graph_persistent_window_50_layered/has_node_existing 410 ns/iter (± 376) 174 ns/iter (± 83) 2.36
lotr_graph_persistent_window_50_layered/graph_latest 126625 ns/iter (± 3946) 57549 ns/iter (± 4809) 2.20
lotr_graph_persistent_window_50_layered_materialise/materialize 59624634 ns/iter (± 861043) 5298035 ns/iter (± 147912) 11.25

This comment was automatically generated by workflow using github-action-benchmark.

@arienandalibi arienandalibi marked this pull request as ready for review June 10, 2026 06:30
Comment thread raphtory/src/serialise/graph_folder.rs Outdated
arienandalibi and others added 11 commits June 12, 2026 04:34
… over. Now, we have many import errors because things from raphtory can't be imported (like GraphError)
….rs file over. Now, we have many import errors because things from raphtory can't be imported (like GraphError)"

This reverts commit 2cab13c.
# Conflicts:
#	raphtory/src/db/graph/views/filter/model/degree_filter.rs
…ata to update metadata instead of previous refresh_disk_graph_metadata.

@ljeub-pometry ljeub-pometry left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the Drop implementation for storage should be gone, the metadata write can now be part of the flush in the disk storage

Comment thread raphtory/src/db/api/storage/storage.rs Outdated
Comment thread raphtory/src/db/api/mutation/addition_ops.rs Outdated
…o GraphStore::flush (in db4-storage). Gets the graph type from reading the .meta file. Checks to make sure the path hasn't changed.
… "io" feature in raphtory-api. Update write_metadata to take a Metadata (not GraphView) bc GraphView isn't available in raphtory-api. Update callsites to construct the Metadata. Add an error type in raphtory-api to avoid using GraphError.
… error types. Update InnerGraph to be ready (write_metadata doesn't take GraphView). replace_graph is now replace_graph_path and updates the metadata/removes the old dir. Encoding the new graph's data is handled separately in replace_graph_in_folder and stays in raphtory.
# Conflicts:
#	db4-storage/src/pages/mod.rs
#	raphtory-api/src/core/storage/graph_folder.rs
# Conflicts:
#	raphtory-api/src/core/storage/graph_folder.rs
#	raphtory-graphql/src/model/graph/meta_graph.rs
#	raphtory-graphql/src/paths.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants