News for hackers. Stuff that matters.
Re:Ask HN: How come there is no example code for B2B-SaaS apps? by TekMol on Sunday May 03, 2020 @01:26AM (#23057045)

    WHERE tenantId = foo
You only need to do that if you keep multiple tennants in one table. But who does this? Usually in a multi tennant application you have only one line which connects to the tennants DB and thats it. The rest of the code does not have to think about tennants.
Re:Ask HN: How come there is no example code for B2B-SaaS apps? by hombre_fatal on Sunday May 03, 2020 @03:30AM (#23057479)
> But who does this

Everyone below a certain scale. Or when it just makes more sense, like Proboards' free tier.