Re: [w3ctag/design-reviews] IndexedDB putAll (#536)

I don't have a strong opinion on what is better, but aside from putAll(), putMultiple(), and putBatch() also seem to exist in different contexts. Explicitly indicating that the function is intended for multiple entries does make perfect sense.

Question 1) The explainer suggests that a later key-value pair clobbering an early key-value pair is fine; but this feels like it might obstruct debugging for cases where this happens due to human/code errors. (Imagine debugging something where the 3rd entry is clobbered by the 499844th entry out of 1M inserts, and you are trying to figure out why) Would this make sense to throw? (or optionally throw?)

Question 2) The examples seem to suggest this is a synchronous API; given that this may be used to batch insert lots of data that could potentially block - would there be a async path for this feature? 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/536#issuecomment-661025275

Received on Monday, 20 July 2020 13:03:05 UTC