341 karma · joined Feb 2, 2015 (11y ago) · 114 submissions
[ my public key: https://keybase.io/ccampo; my proof: https://keybase.io/ccampo/sigs/r0TB2nnc4n-KDP9sjiTv0cfAsC9sbaMyE_yhMxL8Fvs ]
1.
Show HN: Log2fluent – send logs to Fluent over TCP/Unix sockets(github.com ↗)
1 points · by opmac · 2y ago · discuss
comment 2y ago · link · parent
comment 3y ago · link · parent
comment 5y ago · link · parent
Thickness is always going to be an issue with automatic watches. You can get thinner watches if they are manual wind since they don't have a rotor. Usually, the thinner they get, the more expensive they get though, so keep that in mind. You can get super thin manual wind watches but they will cost hundreds to thousands of dollars usually.
comment 5y ago · link · parent
That being said, I think there is something fascinating about eco-drive movements, or just plain quartz movements in general. In the eco-drive case, you're harnessing the raw energy of the sun! Right there on your wrist! And they're using piezoelectricity to accurately keep time!
It's so simple nowadays that we all take it for granted, but centuries of scientific improvements have gone into making that relatively inexpensive and accurate wristwatch accessible to everybody.
comment 5y ago · link · parent
That being said, in PostgreSQL, you are correct --- having a UUID (or something similar) as a PK is usually fine assuming you understand the implications. However I would absolutely avoid it in a DB like MySQL where PKs are clustered.
comment 5y ago · link · parent
If you look up the resource by some other field, that means that you now need to support two indexes - one for the primary key, and one for the "public" primary key. This obviously requires more storage and comes with the performance overhead of keeping the second index updated on modifications to the table. Additionally, for something like DynamoDB where you pay per index, it could be cost prohibitive.
A better pattern is to simply encrypt/decrypt the primary key before exposing it publicly, such as in a URL. This requires no additional database overhead.
comment 5y ago · link · parent
comment 5y ago · link · parent
Instead just use a sequential integer (or UUID). When you need to expose it publicly, use something like hashids ^.
The main downside to straight UUIDs as primary key, is the B-tree used to store the primary key is larger if using UUIDs which are 16 bytes vs 8 for longs. In this case though the IDs are 8 bytes so this point is moot. Also the data is stored randomly on disk, which will make things like range queries slower if querying by ID (but you probably want a different index for querying anyway).
comment 6y ago · link · parent
And the fact remains that currently an outage of AWS's own infrastructure is impacting AWS's ability to status updates on its own status dashboard. It's just seems so... amateurish.
comment 6y ago · link · parent
You'd think they would have learned from that.
comment 6y ago · link · parent