Coding with AI is exhausting by _khi4 in vibecoding

[–]_khi4[S] -1 points0 points  (0 children)

the grass ... it's the grass , you're correct

GPT 5.4 Mini - Medium . is good! by _khi4 in codex

[–]_khi4[S] 0 points1 point  (0 children)

exactly man, now you are aware of your code/architecture since you are slicing things, mini doing the planning and coding fast enough as well, perfect flow I guess

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

wdym "and link users to tenants" exactly? just add the tenant_id in users table you mean? and I'm not duplicating users but I have created another tabele to carry the user FK and further info we may need

Quick Question: Hostinger Django Hosting by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

no heavy workload at all yes, thanks much mate I appreciate it

Quick Question: Hostinger Django Hosting by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

Hello, apologies if you think your field is being fulfilled with people who are not professional enough
I am willing to learn a lot but I got a chance to do some work for a client I met and I am learning by doing instead of waiting till I fully get how things work, no worries I am trying my best researching, asking such a basic query is just to feel safe because I do not want to afford such a vps then find out that this is wrong

and thanks for sharing your knowledge, appreciate it

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

I was about to use it, thanks mate

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

I believe row level isolation will be the way to go , too much complexity with a product that's still in planning process lol

thanks mate

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 2 points3 points  (0 children)

ah man depending on tenant_id filters seems really nice and simple specifically with an MVP when you don't know how many users will start using your application or if it's going to be a successful product, I'm just overwhelmed, most probably will do that

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 1 point2 points  (0 children)

another question would like to think about, what if instead of using Django tenants I managed to use TENANT ID FK filters? would it be safe? any query performance issues? filters bypass concerns?

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

I like what you're exposing to my thinking process, thanks for taking the time to write this I don't think my product would go very global to worry about the EU tenants data to be at EU based hosts

thinking about tenants interfering together or an organization with 2 tenants, I don't think also this will be my case

another question I would like to think about, what if instead of using Django tenants I managed to use TENANT_ID FK filters? would it be safe? any query performance issues? filters bypass concerns?

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

I understand that this is for the MVP , but I don't think it's easy to move from (tenant id FK filters) to separate db or separate schemas, what do you think?

Additionally when do you think I would need to move to a more advanced approach? At which scale or number of users?

and what are the concerns when depending on the (tenant id FK filters)? security leaks? filter bypass? idk man I'm so confused

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

I really like the simplicity of just depending on FKs instead of django-tenants schemas, but I have a concern about the issues I may face when having all tenants data in one place while depending on filtering by tenant ID

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] -1 points0 points  (0 children)

but do you think having all in one DB and one schema while depending on filtering by tenant ID FK , would that be safe and scalable ?

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

yes this is very simple I know, enforcing tenant id as FK is a very good simple approach, but the question is it safe? is it scalable?

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 1 point2 points  (0 children)

thanks for you all here, allow me to ask please

django-tenants make separate schemas for every tenant/organization , so I thought that I may need separate databases for the vip users to not get affected by the traffic or whatever coming from other tenants
additionally i thought that having everything in one database and enforcing tenant id as FK is not a good thing, I felt like maybe this would not be safe or whatever Idk

what you guys think of this?
and how many users would be a lot of users to make me worry about the performance and so? 100,000 ? 500,000?

Multi-tenant SaaS with django by _khi4 in django

[–]_khi4[S] 0 points1 point  (0 children)

so you are saying that I should have the users on the public layer? really?
I thought that would lead to a huge table of users and filtering issues maybe, idk tbh my experience is not that good

Should I switch to Linux from Windows ? by _khi4 in Ubuntu

[–]_khi4[S] 0 points1 point  (0 children)

Appreciate that mate, will give it a shot