r/programming • • Aug 13 '18

C Is Not a Low-level Language

https://queue.acm.org/detail.cfm?id=3212479
87 Upvotes

222 comments sorted by

View all comments

Show parent comments

15

u/MINIMAN10001 Aug 13 '18

You'd basically have to have a unique hash for all items for that to be safe. The fact that you can hold on to a query means the index can be outdated, at that point you'd be better off dropping the index and deleting item by name.

39

u/kukiric Aug 14 '18

You'd basically have to have a unique hash for all items for that to be safe.

Or, you know, a primary key.

16

u/CaineBK Aug 13 '18

Looks like you've said something taboo...

10

u/[deleted] Aug 13 '18

Delete by name. /shudder

0

u/[deleted] Aug 13 '18

[deleted]

0

u/[deleted] Aug 13 '18

[deleted]

4

u/red75prim Aug 14 '18

Why the downvote?

Don't worry about that too much. Here are probably a dozen of downvoting bots. It's /r/programming after all.