Repository navigation
Commit 9df13d2
Keep the primary key prefixes in the --where temporary table
A primary key on a TEXT or BLOB column indexes a prefix, e.g.
PRIMARY KEY (slug(32)), and the temporary table that holds the rows
--where selects could not be created without it. Read the prefix
lengths of the table's primary key and index the same prefixes; the
columns still hold the full values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UWTd5pwpi2xQfDA6mUYkkx1 parent 1918289 commit 9df13d2
2 files changed
Lines changed: 50 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
600 | 630 | | |
601 | 631 | | |
602 | 632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1871 | 1871 | | |
1872 | 1872 | | |
1873 | 1873 | | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
1874 | 1893 | | |
1875 | 1894 | | |
1876 | 1895 | | |
| |||
1879 | 1898 | | |
1880 | 1899 | | |
1881 | 1900 | | |
1882 | | - | |
| 1901 | + | |
1883 | 1902 | | |
1884 | 1903 | | |
1885 | 1904 | | |
| |||
0 commit comments