mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fasten the document deletion
When a document deletion occurs, instead of deleting the document we mark it as deleted in the new “soft deleted” bitmap. It is then removed from the search, and all the other endpoints.
This commit is contained in:
parent
77c837fc1b
commit
3b309f654a
10 changed files with 413 additions and 284 deletions
|
@ -27,6 +27,8 @@ pub enum Error {
|
|||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum InternalError {
|
||||
#[error("Tried to access a soft deleted documents.")]
|
||||
AccessingSoftDeletedDocument { document_id: DocumentId },
|
||||
#[error("{}", HeedError::DatabaseClosing)]
|
||||
DatabaseClosing,
|
||||
#[error("Missing {} in the {db_name} database.", key.unwrap_or("key"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue