/// Loads a graph file (i.e. triples) into the store.
/// Loads a graph file (i.e. triples) into the store.
///
///
/// This function is atomic, quite slow and memory hungry. To get much better performances you might want to use [`bulk_load_graph`](Store::bulk_load_graph).
/// This function is atomic, quite slow and memory hungry. To get much better performances you might want to use the [`bulk_loader`](Store::bulk_loader).
///
///
/// Usage example:
/// Usage example:
/// ```
/// ```
@ -411,7 +411,7 @@ impl Store {
/// Loads a dataset file (i.e. quads) into the store.
/// Loads a dataset file (i.e. quads) into the store.
///
///
/// This function is atomic, quite slow and memory hungry. To get much better performances you might want to [`bulk_load_dataset`](Store::bulk_load_dataset).
/// This function is atomic, quite slow and memory hungry. To get much better performances you might want to use the [`bulk_loader`](Store::bulk_loader).
///
///
/// Usage example:
/// Usage example:
/// ```
/// ```
@ -477,7 +477,7 @@ impl Store {
/// Adds atomically a set of quads to this store.
/// Adds atomically a set of quads to this store.
///
///
/// Warning: This operation uses a memory heavy transaction internally, use [`bulk_extend`](Store::bulk_extend) if you plan to add ten of millions of triples.
/// Warning: This operation uses a memory heavy transaction internally, use the [`bulk_loader`](Store::bulk_loader) if you plan to add ten of millions of triples.
pubfnextend(
pubfnextend(
&self,
&self,
quads: implIntoIterator<Item=implInto<Quad>>,
quads: implIntoIterator<Item=implInto<Quad>>,
@ -753,15 +753,7 @@ impl Store {
self.storage.backup(target_directory.as_ref())
self.storage.backup(target_directory.as_ref())
}
}
/// Loads a dataset file efficiently into the store.
/// Creates a bulk loader allowing to load at lot of data quickly into the store.
///
/// This function is optimized for large dataset loading speed. For small files, [`load_dataset`](Store::load_dataset) might be more convenient.
///
/// Warning: This method is not atomic.
/// If the parsing fails in the middle of the file, only a part of it may be written to the store.
/// Results might get weird if you delete data during the loading process.
///
/// Warning: This method is optimized for speed. It uses multiple threads and GBs of RAM on large files.
///
///
/// Usage example:
/// Usage example:
/// ```
/// ```
@ -771,9 +763,9 @@ impl Store {
///
///
/// let store = Store::new()?;
/// let store = Store::new()?;
///
///
/// // insertion
/// // quads file insertion
/// let file = b"<http://example.com> <http://example.com> <http://example.com> <http://example.com> .";
/// let file = b"<http://example.com> <http://example.com> <http://example.com> <http://example.com> .";
/// Validates that all the store invariants held in the data
/// Validates that all the store invariants held in the data
@ -1155,9 +1076,7 @@ impl<'a> Transaction<'a> {
self.writer.insert(quad.into())
self.writer.insert(quad.into())
}
}
/// Adds atomically a set of quads to this store.
/// Adds a set of quads to this store.
///
/// Warning: This operation uses a memory heavy transaction internally, use [`bulk_extend`](Store::bulk_extend) if you plan to add ten of millions of triples.