Ozgun Ataman

Results 21 comments of Ozgun Ataman

Understood. However, we may want to expose some functionality that provides this prefix _ stripping, especially as lens becomes more and more prevalent and field names starting with _ are...

I guess so. It is not at all idiomatic to use underscores in general, so perhaps we can assume they are safe to strip. If someone has a special use...

Hmm. Maybe we can borrow the "Entity" concept from persistent for these cases - the combination of the AutoKey and the object. So they can be something like `getEntityBy` and...

Right, but that only works when the unique constraint is a single field. Right? The major benefit from what I was describing above is being able to use a multi-field...

Could you give an example? Sent from my iPhone > On Dec 3, 2013, at 11:31 AM, Boris Lykah [email protected] wrote: > > This works for the composite keys too...

Oh, that's great! What I didn't know was that you can do `CompositeExampleUnique ==. k`. Very nice. My updateBy and deleteBy suggestions above are completely unnecessary then! Thanks!

There's a couple libs for it: https://github.com/Soostone/stoplight http://hackage.haskell.org/package/io-throttle Also notice that exponential back-off via the retry library would also achieve this effect naturally.

Since the ticket is still open, I'll mention here: Our retry package helps with this quite trivially: http://hackage.haskell.org/package/retry Here's an example from how we handle retries in application logic: ```...

Huh. Interesting. Thanks for the feedback. I did so and the program went back to normal operation. I'll have to keep an eye on this. I definitely don't have infinite...

Just wanted to say that we have also just run into this problem in prod when making lots and lots of AWS related HTTPS requests per second. Our gdb output...