|
2927 | 2927 |
|
2928 | 2928 | <dl class="py method"> |
2929 | 2929 | <dt class="sig sig-object py" id="lance.LanceDataset.prewarm_index"> |
2930 | | -<span class="sig-name descname"><span class="pre">prewarm_index</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><span class="pre">str</span></a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#lance.LanceDataset.prewarm_index" title="Link to this definition"></a></dt> |
| 2930 | +<span class="sig-name descname"><span class="pre">prewarm_index</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><span class="pre">str</span></a></span></em>, <em class="sig-param"><span class="keyword-only-separator o"><abbr title="Keyword-only parameters separator (PEP 3102)"><span class="pre">*</span></abbr></span></em>, <em class="sig-param"><span class="n"><span class="pre">with_position</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.14)"><span class="pre">bool</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#lance.LanceDataset.prewarm_index" title="Link to this definition"></a></dt> |
2931 | 2931 | <dd><p>Prewarm an index</p> |
2932 | 2932 | <p>This will load the entire index into memory. This can help avoid cold start |
2933 | 2933 | issues with index queries. If the index does not fit in the index cache, then |
2934 | 2934 | this will result in wasted I/O.</p> |
2935 | 2935 | <dl class="field-list simple"> |
2936 | 2936 | <dt class="field-odd">Parameters<span class="colon">:</span></dt> |
2937 | | -<dd class="field-odd"><p><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><em>str</em></a>) – The name of the index to prewarm.</p> |
| 2937 | +<dd class="field-odd"><ul class="simple"> |
| 2938 | +<li><p><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><em>str</em></a>) – The name of the index to prewarm.</p></li> |
| 2939 | +<li><p><strong>with_position</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.14)"><em>bool</em></a><em>, </em><em>default False</em>) – This is only supported for <code class="docutils literal notranslate"><span class="pre">INVERTED</span></code> indices. If True, positions are |
| 2940 | +also loaded into the cache during prewarm so phrase queries do not need a |
| 2941 | +separate lazy positions read.</p></li> |
| 2942 | +</ul> |
2938 | 2943 | </dd> |
2939 | 2944 | </dl> |
2940 | 2945 | </dd></dl> |
|
7900 | 7905 |
|
7901 | 7906 | <dl class="py method"> |
7902 | 7907 | <dt class="sig sig-object py" id="lance.dataset.LanceDataset.prewarm_index"> |
7903 | | -<span class="sig-name descname"><span class="pre">prewarm_index</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><span class="pre">str</span></a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#lance.dataset.LanceDataset.prewarm_index" title="Link to this definition"></a></dt> |
| 7908 | +<span class="sig-name descname"><span class="pre">prewarm_index</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">name</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><span class="pre">str</span></a></span></em>, <em class="sig-param"><span class="keyword-only-separator o"><abbr title="Keyword-only parameters separator (PEP 3102)"><span class="pre">*</span></abbr></span></em>, <em class="sig-param"><span class="n"><span class="pre">with_position</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.14)"><span class="pre">bool</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#lance.dataset.LanceDataset.prewarm_index" title="Link to this definition"></a></dt> |
7904 | 7909 | <dd><p>Prewarm an index</p> |
7905 | 7910 | <p>This will load the entire index into memory. This can help avoid cold start |
7906 | 7911 | issues with index queries. If the index does not fit in the index cache, then |
7907 | 7912 | this will result in wasted I/O.</p> |
7908 | 7913 | <dl class="field-list simple"> |
7909 | 7914 | <dt class="field-odd">Parameters<span class="colon">:</span></dt> |
7910 | | -<dd class="field-odd"><p><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><em>str</em></a>) – The name of the index to prewarm.</p> |
| 7915 | +<dd class="field-odd"><ul class="simple"> |
| 7916 | +<li><p><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.14)"><em>str</em></a>) – The name of the index to prewarm.</p></li> |
| 7917 | +<li><p><strong>with_position</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.14)"><em>bool</em></a><em>, </em><em>default False</em>) – This is only supported for <code class="docutils literal notranslate"><span class="pre">INVERTED</span></code> indices. If True, positions are |
| 7918 | +also loaded into the cache during prewarm so phrase queries do not need a |
| 7919 | +separate lazy positions read.</p></li> |
| 7920 | +</ul> |
7911 | 7921 | </dd> |
7912 | 7922 | </dl> |
7913 | 7923 | </dd></dl> |
|
0 commit comments