feat: graph accessors, schema_version, sync indexes, resize refactor#378
feat: graph accessors, schema_version, sync indexes, resize refactor#378
Conversation
- Add schema_version field to Graph (incremented on schema changes) - Add MvccGraph::from_graph() constructor and schema version tracking - Add get_type_id_mut() for get-or-create relationship types - Add inc_reserved_node_count/inc_reserved_relationship_count - Add max_relationship_id, deleted_*_count, deleted_relationships accessors - Add label_matrices(), relationship_tensors() accessors - Add create_index_sync/populate_indexes_sync for synchronous index rebuild - Add get_all_pending_fields() to Indexer - Add attribute name accessors and build_global_attrs - Extract resize_node_matrices/resize_relationship_matrices from resize() Split from #359.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 47 minutes and 32 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #378 +/- ##
==========================================
- Coverage 84.15% 83.14% -1.02%
==========================================
Files 110 110
Lines 28963 29367 +404
==========================================
+ Hits 24375 24418 +43
- Misses 4588 4949 +361
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
Split from #359. Adds public API surface needed by persistence and effects replication.
schema_versionon Graph — tracks schema changes (new labels, types, attributes)MvccGraph::from_graph()— construct from existing Graph for RDB loadcreate_index_sync,populate_indexes_syncget_type_id_mut,max_relationship_id,deleted_*_count,label_matrices,relationship_tensors, attribute name helpersresize_node_matrices/resize_relationship_matriceshelpersTest plan
cargo checkpassescargo test -p graphpasses