Fossil SCM
Create a temporary index to speed up incremental Git import.
Commit
0fa60142eb3ae667fffb216f405611a31d6ee650
Parent
057e4b0a62eff88…
1 file changed
+1
+1
| --- src/import.c | ||
| +++ src/import.c | ||
| @@ -1761,10 +1761,11 @@ | ||
| 1761 | 1761 | ** times but only the last tag should be used. And we do not know which |
| 1762 | 1762 | ** occurrence of the tag is the last until the import finishes. |
| 1763 | 1763 | */ |
| 1764 | 1764 | db_multi_exec( |
| 1765 | 1765 | "CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT);" |
| 1766 | + "CREATE INDEX temp.i_xmark ON xmark(trid);" | |
| 1766 | 1767 | "CREATE TEMP TABLE xbranch(tname TEXT UNIQUE, brnm TEXT);" |
| 1767 | 1768 | "CREATE TEMP TABLE xtag(tname TEXT UNIQUE, tcontent TEXT);" |
| 1768 | 1769 | ); |
| 1769 | 1770 | |
| 1770 | 1771 | if( markfile_in ){ |
| 1771 | 1772 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1761,10 +1761,11 @@ | |
| 1761 | ** times but only the last tag should be used. And we do not know which |
| 1762 | ** occurrence of the tag is the last until the import finishes. |
| 1763 | */ |
| 1764 | db_multi_exec( |
| 1765 | "CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT);" |
| 1766 | "CREATE TEMP TABLE xbranch(tname TEXT UNIQUE, brnm TEXT);" |
| 1767 | "CREATE TEMP TABLE xtag(tname TEXT UNIQUE, tcontent TEXT);" |
| 1768 | ); |
| 1769 | |
| 1770 | if( markfile_in ){ |
| 1771 |
| --- src/import.c | |
| +++ src/import.c | |
| @@ -1761,10 +1761,11 @@ | |
| 1761 | ** times but only the last tag should be used. And we do not know which |
| 1762 | ** occurrence of the tag is the last until the import finishes. |
| 1763 | */ |
| 1764 | db_multi_exec( |
| 1765 | "CREATE TEMP TABLE xmark(tname TEXT UNIQUE, trid INT, tuuid TEXT);" |
| 1766 | "CREATE INDEX temp.i_xmark ON xmark(trid);" |
| 1767 | "CREATE TEMP TABLE xbranch(tname TEXT UNIQUE, brnm TEXT);" |
| 1768 | "CREATE TEMP TABLE xtag(tname TEXT UNIQUE, tcontent TEXT);" |
| 1769 | ); |
| 1770 | |
| 1771 | if( markfile_in ){ |
| 1772 |