vikestep
Re:You’re better off using Exceptions
on Monday February 03, 2020 @01:50PM (#22227504)
In support of the article, your code would still throw an exception if all the customers in the list have missing credit.
https://github.com/dotnet/fsharp/blob/master/src/fsharp/FSha...
You could instead write it as the following to handle that.
let average (customers : Customer list) =
customers
|> List.choose (fun c -> c.Credit)
|> function
| [] -> Error "no customers with credit"
| xs -> Ok (List.average xs)
Re:Azure Cosmos DB, a globally distributed database
on Thursday May 11, 2017 @12:36AM (#14313847)
I can't seem to find the old DocumentDB prices any more, but it seems like it's a lot cheaper now? Also, is User-Defined Performance something new? since last time I looked into DocumentDB you had to pay the monthly RU fee per 10GB disk.
One more thing, as someone who went from DocumentDb to Azure Storage (Tables) back in April 2016 because of the higher price, slower queries, and scalability problems, is there anything that may make Cosmos DB a better option?
Re:Azure Storage Impacted
on Wednesday March 15, 2017 @07:55PM (#13881068)
Same symptoms here, production is running fine, but we aren't able to view the storage accounts directly or do most things in the azure portal.
Re:Dear MongoDB users, we welcome you in Azure DocumentDB
on Friday February 17, 2017 @05:45AM (#13667344)
We used to use DocumentDB, but switched to Azure Table Storage a while back. Did some benchmarking and DocumentDB was too slow for our needs (getting documents for a range between two epochs). Not sure if others experienced the same thing or if things have gotten better since then though.