Hacker Newsnew | past | comments | ask | show | jobs | submit | onnnon's commentslogin

Don't expose primary keys to the public. Create separate external ids instead. I personally use BIGINT primary keys, with UUIDv4 external ids, but any random string will do.


Plus, it’s easy to tell v4 from v7, if internally you have no choice on keys.


Certainly seems the easiest solution. A lot of handwringing about poor database performance of UUID4 when you could use it exclusively for an external identifier all for the cost of an additional column.


Also, poor performance of UUIDv4 primary keys is most related to how write heavy your table is in the first place, and in particular how insertion heavy it is. In theory your users table shouldn't be very write-heavy, even if it may be insertion-heavy compared to other writes.


I'm also going down this rabbit hole, and it's about to get even crazier with multi-tenant SQLite[1] and Beamer[2] replication. It's not quite ready yet, but the foundation is there.

[1] https://www.youtube.com/watch?v=Sc4FJ0EZTAg

[2] https://www.youtube.com/watch?v=lcved9uEV5U




Elon is only permitted to work for 130 days because he's an SGE. The last day is May 30, which is 130 days after Jan 20.

A "special Government employee" (or "SGE") is an officer or employee in the Executive Branch of the Federal Government who is appointed to perform important, but limited, services to the Government, with or without compensation, for a period not to exceed 130 days during any period of 365 consecutive days.

https://www.doi.gov/ethics/special-government-employees


This administration, including Musk, isn't known for following any rules/laws/norms, so I doubt this is the reason for his exit.


The idea of focusing on a single car "framework" from which you can create many variations seems great. I personally really like the design too.


Sesame Street was highlighted in the 2024 Festivus Report (PAGE 33) from the Committee on Homeland Security and Governmental Affairs:

https://www.hsgac.senate.gov/wp-content/uploads/FESTIVUS-REP...


The tone of the writing in this report is unbearable.


Title should be: "Elon Musk Leaves Pentagon After Discussions About China and Tech"


This article is based on the text change on the gov.uk website from:

"The authorities in the US set and enforce entry rules."

to...

"You should comply with all entry, visa and other conditions of entry. The authorities in the US set and enforce entry rules strictly. You may be liable to arrest or detention if you break the rules."

https://www.gov.uk/foreign-travel-advice/usa/entry-requireme...


For Chrome/Edge you can use Manifest V3 content blocker "uBO Lite":

https://github.com/uBlockOrigin/uBOL-home/releases


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: