Skip to content

Document SUMMARY indexes in Indexing CTables notebook - #729

Merged
FrancescAlted merged 2 commits into
Blosc:mainfrom
prb2:pb/summary-indexes
Oct 5, 2026
Merged

FrancescAlted merged 2 commits into
Blosc:mainfrom
prb2:pb/summary-indexes

Conversation

@prb2

@prb2 prb2 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR adds a new section to the "Indexing CTables" tutorial notebook to describe SUMMARY indexes and provides an example benchmark to demonstrate the benefit.

Addresses #645.

Testing

  • Ran the new notebook cell and confirmed the results are reasonable.
  • Ran all the notebook cells and confirmed there is no regression.
  • Generated the documentation locally with Sphinx and verified that the rendered notebook looks good.

AI Tool Use

I used Codex to generate the boilerplate code in the Generate the dataset section. I had also used it to generate the Run the benchmark section, but ended up rewriting that code myself.

"id": "d9fa565cab114c0d",
"metadata": {},
"source": [
"## Automatic SUMMARY indexes\n",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I sourced this text from the PR description of #643 and from the existing info about summary indexes in the Optimization Tips guide

" blosc2.open(str(summary_path), mode=\"r\") as summary_readings,\n",
" blosc2.open(str(no_summary_path), mode=\"r\") as no_summary_readings,\n",
"):\n",
" def predicate(t):\n",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In this notebook, I only focused on the benefit to where() queries, since the min()/max() benefits were already covered in the Optimization Tips guide. However, I'm happy to add a min/max example here too, if desired.

@prb2
prb2 marked this pull request as ready for review September 30, 2026 19:42

@FrancescAlted FrancescAlted left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This offers a clear and very simple explanation of what SUMMARY indexes offer. Thanks, it is exactly the kind of contributions that our current docs need. Looking forward for more like this!

@FrancescAlted
FrancescAlted merged commit 8ba7b1d into Blosc:main Oct 5, 2026
15 checks passed
@prb2
prb2 deleted the pb/summary-indexes branch October 5, 2026 18:37
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.

2 participants