You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by "spmallette (via GitHub)" <gi...@apache.org> on 2026/08/05 17:52:02 UTC
[PR] Show optimization strategies firing in the Unnecessary Steps recipe [tinkerpop]
spmallette opened a new pull request, #3613:
URL: https://github.com/apache/tinkerpop/pull/3613
The "Unnecessary Steps" section of the anti-patterns recipe correctly teaches the manual rewrites (`outE().inV()` to `out()`, and folding a counted adjacency onto its incident edges), and states that TinkerPop performs these rewrites automatically through optimization strategies. However the section gave a reader no way to confirm that claim, never named the strategies involved, and offered no pointer to further reading.
This change addresses that gap:
- Adds a runnable `explain()` example on the two original (unoptimized) queries so the optimizations are visible in the compiled traversal rather than taken on faith. The block is executed at doc-build time against the modern graph, so the transcript is real output.
- Names the two strategies responsible: `IncidentToAdjacentStrategy` (which folds `outE("created").inV()` into a single `out("created")` step) and `AdjacentToIncidentStrategy` (which rewrites the counted adjacency back onto the incident edges), and explains how to read the strategy/category columns and the `Final Traversal` line.
- Cross-references the `explain()` and `profile()` steps and the traversal strategies section of the reference documentation.
The change is scoped to `docs/src/recipes/anti-patterns.asciidoc` (+26 lines). The rendered recipes book was previewed locally to confirm the live `explain()` transcript renders and the new prose displays cleanly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Show optimization strategies firing in the Unnecessary Steps recipe [tinkerpop]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #3613:
URL: https://github.com/apache/tinkerpop/pull/3613#issuecomment-5195554419
## [Codecov](https://app.codecov.io/gh/apache/tinkerpop/pull/3613?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 80.05%. Comparing base ([`a28cd1f`](https://app.codecov.io/gh/apache/tinkerpop/commit/a28cd1f2f1f10c140030a56de44c5c6c045af5f0?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`74193b5`](https://app.codecov.io/gh/apache/tinkerpop/commit/74193b582c4a068183ffa49a1aaf11376e7a7d5d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 430 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #3613 +/- ##
============================================
+ Coverage 76.35% 80.05% +3.69%
============================================
Files 1012 32 -980
Lines 60341 6913 -53428
Branches 7075 0 -7075
============================================
- Hits 46076 5534 -40542
+ Misses 11548 1053 -10495
+ Partials 2717 326 -2391
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/tinkerpop/pull/3613?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Show optimization strategies firing in the Unnecessary Steps recipe [tinkerpop]
Posted by "spmallette (via GitHub)" <gi...@apache.org>.
spmallette merged PR #3613:
URL: https://github.com/apache/tinkerpop/pull/3613
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org