MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/96yz21/c_is_not_a_lowlevel_language/e44krsg
r/programming • u/mazeez • Aug 13 '18
222 comments sorted by
View all comments
Show parent comments
15
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] 2 u/ThirdEncounter Aug 14 '18 Everything. 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.
39
You'd basically have to have a unique hash for all items for that to be safe.
Or, you know, a primary key.
16
Looks like you've said something taboo...
10 u/[deleted] Aug 13 '18 Delete by name. /shudder 0 u/[deleted] Aug 13 '18 [deleted] 2 u/ThirdEncounter Aug 14 '18 Everything.
10
Delete by name. /shudder
0 u/[deleted] Aug 13 '18 [deleted] 2 u/ThirdEncounter Aug 14 '18 Everything.
0
[deleted]
2 u/ThirdEncounter Aug 14 '18 Everything.
2
Everything.
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.
4
Why the downvote?
Don't worry about that too much. Here are probably a dozen of downvoting bots. It's /r/programming after all.
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.