Company
Date Published
Author
Matthew Groves
Word count
1104
Language
English
Hacker News points
None

Summary

This ASP.NET Core CRUD series has come to an end, covering setup, reading with SQL++, reading with key-value, creating/updating, and now deleting data. Deleting can be done using a SQL++ DELETE statement or a key-value delete operation, with guidelines to help decide which method to use. The series also introduces the concept of "soft" deletion, where data is marked as deleted but still exists in the database, allowing for discoverability, recoverability, and reportability. A new endpoint is created to perform soft deletes, and the GetAll endpoint is modified to handle soft-deleted data. Finally, indexing is discussed, with Couchbase's Capella tool recommending better indexes. The final API surface is presented, along with links to documentation for further learning.