mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-16 16:52:57 +00:00
## Summary - Exposes `Session` in Python and Typescript so users can set the `index_cache_size_bytes` and `metadata_cache_size_bytes` * The `Session` is attached to the `Connection`, and thus shared across all tables in that connection. - Adds deprecation warnings for table-level cache configuration 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude <noreply@anthropic.com>
46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
[**@lancedb/lancedb**](../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../globals.md) / OpenTableOptions
|
|
|
|
# Interface: OpenTableOptions
|
|
|
|
## Properties
|
|
|
|
### ~~indexCacheSize?~~
|
|
|
|
```ts
|
|
optional indexCacheSize: number;
|
|
```
|
|
|
|
Set the size of the index cache, specified as a number of entries
|
|
|
|
#### Deprecated
|
|
|
|
Use session-level cache configuration instead.
|
|
Create a Session with custom cache sizes and pass it to the connect() function.
|
|
|
|
The exact meaning of an "entry" will depend on the type of index:
|
|
- IVF: there is one entry for each IVF partition
|
|
- BTREE: there is one entry for the entire index
|
|
|
|
This cache applies to the entire opened table, across all indices.
|
|
Setting this value higher will increase performance on larger datasets
|
|
at the expense of more RAM
|
|
|
|
***
|
|
|
|
### storageOptions?
|
|
|
|
```ts
|
|
optional storageOptions: Record<string, string>;
|
|
```
|
|
|
|
Configuration for object storage.
|
|
|
|
Options already set on the connection will be inherited by the table,
|
|
but can be overridden here.
|
|
|
|
The available options are described at https://lancedb.github.io/lancedb/guides/storage/
|