#[non_exhaustive]pub struct UrsaOptions {
pub index_storage_limit: IndexStorageLimit,
pub notices: NoticeLevel,
pub max_paths: MaxPaths,
pub build_read_ahead: ReadAhead,
pub graph_max_edges: GraphMaxEdges,
}Expand description
Ursa’s settings (SET ursa.<name> = …).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index_storage_limit: IndexStorageLimitThe most bytes of graph indexes a .ursa database keeps on disk:
a new index is stored only within it, removing the least recently
used to make room. Lowering it removes nothing. Default auto: 25%
of the free space on the database’s disk (counting its stored
indexes), at least 4GiB and at most 64GiB. Lasts for the session.
notices: NoticeLevelWhich notices to print on stderr: ‘on’ (slow index builds, and indexes not stored or evicted), ‘all’ (every index build, load and store) or ‘off’. Default on.
max_paths: MaxPathsThe most paths one GRAPH_TABLE path search holds before it stops with an error; 0 for no limit. Under ANY SHORTEST (and SHORTEST k) it counts the paths kept, never fewer than one (k) per node of the graph; otherwise the paths and prefixes held. Default 10000000.
build_read_ahead: ReadAheadThe most bytes of decoded rows an index build reads ahead of the rows it is interning, so the partitions of its edge and vertex tables decode in parallel. Default auto: 256MiB per partition read, at most 1GiB and at most an eighth of the memory available. 0 reads the partitions one after another.
graph_max_edges: GraphMaxEdgesThe most edges the graph view draws (.graph): a result or a
graph with more is refused, with a message that names this
setting. 0 for no limit. Default 5000000, which a desktop
browser draws; the web shell sets 500000 on a phone.
Trait Implementations§
Source§impl Clone for UrsaOptions
impl Clone for UrsaOptions
Source§impl ConfigExtension for UrsaOptions
impl ConfigExtension for UrsaOptions
Source§impl ConfigField for UrsaOptions
impl ConfigField for UrsaOptions
Source§impl Debug for UrsaOptions
impl Debug for UrsaOptions
Source§impl Default for UrsaOptions
impl Default for UrsaOptions
Source§impl ExtensionOptions for UrsaOptions
impl ExtensionOptions for UrsaOptions
Source§fn cloned(&self) -> Box<dyn ExtensionOptions>
fn cloned(&self) -> Box<dyn ExtensionOptions>
ExtensionOptions Read moreSource§fn entries(&self) -> Vec<ConfigEntry>
fn entries(&self) -> Vec<ConfigEntry>
ConfigEntry stored in this ExtensionOptionsAuto Trait Implementations§
impl Forget for UrsaOptions
impl Freeze for UrsaOptions
impl Move for UrsaOptions
impl RefUnwindSafe for UrsaOptions
impl Send for UrsaOptions
impl Sync for UrsaOptions
impl Unpin for UrsaOptions
impl UnsafeUnpin for UrsaOptions
impl UnwindSafe for UrsaOptions
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more