# INSERT =\> READ =\> DELETE workflow with single rows

**URL:** <https://forum.scylladb.com/t/insert-read-delete-workflow-with-single-rows/1420>\
**Category:** ScyllaDB\
**Tags:** data-model, compaction, tombstone\
**Created:** [March 25, 2024, 6:38am UTC](https://forum.scylladb.com/t/insert-read-delete-workflow-with-single-rows/1420 "2024-03-25T06:38:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/guy/32/9_2.png) [@Guy](https://forum.scylladb.com/u/Guy)\
**Post date:** [March 25, 2024, 6:38am UTC](https://forum.scylladb.com/t/insert-read-delete-workflow-with-single-rows/1420/1 "2024-03-25T06:38:09Z")

</div>

> [@](#):
>
> [**Originally from the User Slack**](https://scylladb-users.slack.com/)
> 
> ![Dylan_Piette](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/a8cf80ed511950142e15ca1004fbc85b85814271.png) **@Dylan\_Piette:** Hello to the scylla team,  
> I have a question for you  
> In our project we might have a use case with Scylla where we would be forced to do a lot of INSERT =\> READ =\> DELETE workflow with single rows  
> I was wondering how would you manage that ?  
> Wouldn’t it be preferable to create another boolean column named “Acknowleged” and have a batch job that will delete them later ?  
> So the new workflow would be INSERT =\> READ =\> UPDATE (Acknowleged = true) and later do a batch job consisting of DELETE WHERE Acknowleged = true
> 
> ![dor](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/27b698a3e588f84cb82a722e458d31c997a48bed.jpeg) **@dor:** It’s hard to say, I’d start with a simplistic approach and just delete the row. Batching can primarily help if you have a window of time where the cluster is not busy and you can even call compaction later. It’s not a must
> 
> ![Dylan_Piette](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/a8cf80ed511950142e15ca1004fbc85b85814271.png) **@Dylan\_Piette:** Ok thanks for your answer, I’ll go with that then  
> I was asking because I saw some posts online that says that cassandra like databases are not meant for these kind of use cases, and as we don’t want to deploy multiple databases system, I was wondering if there was a common strategies with scylla to deal with that
> 
> ![dor](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/27b698a3e588f84cb82a722e458d31c997a48bed.jpeg) **@dor:** Deletes create tombstones (it basically similar to your ‘update’ and actual delete later  
> Most of the time we handle those tombstones well, so assume that’s the case
> 
> ![Dylan_Piette](https://us1.discourse-cdn.com/flex016/uploads/scylladb/original/1X/a8cf80ed511950142e15ca1004fbc85b85814271.png) **@Dylan\_Piette:** Ok great, thank you !
