Skip to content

Join only the pairs of a block of C4 that can join in the partition of res cluster - #582

Merged
tamnd merged 1 commit into
mainfrom
partition-pairs
Nov 5, 2026
Merged

tamnd merged 1 commit into
mainfrom
partition-pairs

Conversation

@tamnd

@tamnd tamnd commented Nov 5, 2026

Copy link
Copy Markdown
Owner

The partition of RS10.8 joined all the records of each block of C4, and the block of each author with the block of the next year. On the full catalogue of 4706235 records, this gave one component of 1119739 records, and the run of that bucket was stopped by the system for lack of memory.

Pass C4 joins two records of a block only when their score is at or above High, and puts them in the queue only when the score is at or above Middle. The score uses only the two records. So the partition now scores the pairs of each block and joins only the pairs at or above Middle. The result of the passes does not change. With a spill directory, the records of the blocks go to 128 spill files by author, and the partition scores one file at a time. The test TestPartitionBlockPairs checks that a block with low scores gives separate components, in memory and with spill files. The tests of the partitioned run against one run all pass. Part of #352.

@tamnd tamnd added type: fix Corrects something that is wrong. area: resources The catalogue of works: books, courses, papers (corpus resources RS) labels Nov 5, 2026
@tamnd

tamnd commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Check on the 26-source tree (22441 source records): the run with -spill gives the same files as one run in memory (diff 0 on the whole tree, with the same queue and the same joins of each pass). The largest component now has 21 records.

@tamnd
tamnd enabled auto-merge (squash) November 5, 2026 09:31
@tamnd
tamnd merged commit cf9d44e into main Nov 5, 2026
12 of 13 checks passed
@tamnd
tamnd deleted the partition-pairs branch November 5, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: resources The catalogue of works: books, courses, papers (corpus resources RS) type: fix Corrects something that is wrong.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant