Skip to content

Commit

Permalink
Merge pull request #49 from openzim/move_to_linktarget
Browse files Browse the repository at this point in the history
Move to new linktarget table
  • Loading branch information
kelson42 authored Jan 10, 2025
2 parents 24e8716 + b78bbf6 commit 734f978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_selections.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ do
UPPER_LIMIT=$((UPPER_LIMIT + 10000))
echo " from pl_from from $LOWER_LIMIT to $UPPER_LIMIT..."
$MYSQL \
"SELECT pl_from, pl_title FROM pagelinks WHERE pl_namespace = 0 AND pl_from_namespace = 0 AND pl_from >= $LOWER_LIMIT AND pl_from < $UPPER_LIMIT" \
"SELECT pl_from, lt_title AS pl_title FROM pagelinks LEFT JOIN linktarget ON pl_target_id = lt_id WHERE lt_namespace = 0 AND pl_from_namespace = 0 AND pl_from >= $LOWER_LIMIT AND pl_from < $UPPER_LIMIT" \
-N -h ${DB_HOST} ${DB} >> $PAGELINKS
NEW_SIZE=$(ls -la $PAGELINKS 2> /dev/null | cut -d " " -f5)
done
Expand Down

0 comments on commit 734f978

Please sign in to comment.