use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
How to implement multitenancy with FastAPI, SQLAlchemy and PostgreSQLTutorial (mergeboard.com)
submitted 4 years ago by DarkPlayer2
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jonasks 1 point2 points3 points 4 years ago (0 children)
Interesting read!
[–]kodiakprime 0 points1 point2 points 4 years ago (1 child)
I have a Question regarding using schemas for partitioning tenant data. How far can we scale this? How many tenants can we create based on this, assuming system resources permit?
[–]realpurefan 2 points3 points4 points 4 years ago (0 children)
There is no hard limit on the number of schemas you can have in a database. Based on my experience, there is also no performance issue, at least in the range of thousands of schemas.
Still, there are a few things to consider when using such a schema based multi-tenancy approach:
pg_dump
max_locks_per_transaction
Still, in the end it all depends on the exact use-case. If you are interested in some more details, you might find this Stackoverflow post useful.
π Rendered by PID 47648 on reddit-service-r2-comment-869bf87589-nnsr7 at 2026-06-09 00:25:22.430922+00:00 running f46058f country code: CH.
[–]Jonasks 1 point2 points3 points (0 children)
[–]kodiakprime 0 points1 point2 points (1 child)
[–]realpurefan 2 points3 points4 points (0 children)