supavisor
sql-examples
supavisor | sql-examples | |
---|---|---|
15 | 10 | |
1,591 | 344 | |
1.8% | 0.9% | |
8.9 | 1.1 | |
2 days ago | 11 months ago | |
Elixir | Vue | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
supavisor
-
PostgreSQL Is Enough
WalEx instead of pub/sub (listen/subscribe): https://github.com/cpursley/walex
Supavisor connection pooler: https://github.com/supabase/supavisor
-
Introducing Read Replicas
To make use of your read replicas, copy your connection string for the read replica, update your apps to use the new read replica and you are done! A unique connection pool is also provisioned for each read replica via Supavisor.
-
Supavisor 1.0: a scalable connection pooler for Postgres
[I'm on the supabase team]
You can find the code/docs here: https://github.com/supabase/supavisor
This release adds support for
- SQL Parsing
- Load balancing
- support for named prepared statement
- query cancellation
It's also now available on all new databases in Supabase. For some more background on scalability, we have some benchmarks available here:
https://supabase.com/blog/supavisor-1-million
-
PgBouncer 1.21.0 released with prepared statement support
PgBouncer maintainer here, so obviously biased. But I think currently PgBouncer should still be the default connection pooler that you choose. There's a few newer options: Odyssey, pgcat, and supavisor. But all focus on a solving 1 or 2 specific problems that PgBouncer did not solve well, while not solving many of the other problems that PgBouncer does solve. So if you have the exact same requirements as the authors of those tools, then switching might be good. But otherwise you should probably continue using PgBouncer.
Supavisor specifically is really immature. It's missing some really core functionality like query cancellations: https://github.com/supabase/supavisor/issues/174
I did a talk on this exact topic at PGConf NYC recently. My slides are here: https://github.com/JelteF/slides/raw/main/2023-10-05-future-...
-
Supavisor: Scaling Postgres to 1 Million Connections
If you are interested in exploring Supavisor's potential or want to implement its scalability in your upcoming project, check out the GitHub repository to know more.
-
How to Listen to Database Changes Using Postgres Triggers in Elixir
Phoenix.PubSub is basically a noop service. It really just works. You should try it!
If discovering nodes is difficult in your env, try using a listen/notify libcluster strategy:
https://github.com/supabase/supavisor/blob/main/lib/cluster/...
-
The Database Package Manager for PostgreSQL Trusted Language Extensions
[2] https://github.com/supabase/supavisor
-
Supabase Logs: open source logging server
Supavisor
- Supavisor - Postgres connection pooler written in Elixir
- Supavisor - a Postgres connection pooler written in Elixir
sql-examples
-
What does Supabase need? What features or tools would help you make better use of Supabase?
If you decide to do this we should put it on database.dev - i'm sure it would be very popular
-
Supabase Beta April 2023
database.dev fills the same role for PostgreSQL as npm for JavaScript or pip for Python, it enables publishing libraries and applications for repeatable deployment. Our goal is to create an open ecosystem for packaging and discovering SQL.
-
SPARTAN. Type-safe Angular full-stack development powered by Analog.
Supabase just wrapped up their Launch Week 7 with a ton of incredible features. This includes an AI assistant that was added to their premium platform. It is aware of your database design and can help you when creating more complex SQL queries. I'm even more thrilled by their most recent releases of outstanding open source projects, such as the PostgreSQL package manager database.dev. dbdev serves the same purpose for PostgreSQL that npm does for JavaScript. It gives your PostgresSQL database incredibly easy access to packages that give your DB superpowers like full-text search or one-time-only-read data access à la Snapchat. The best thing is that dbdev can load any PostgreSQL instance that has the required fundamental extensions, independent of the Supabase platform. Again, the code is open source. I can't wait to see where this project goes in the future, and I have no doubt that we will soon be able to utilize a lot more fantastic libraries. Like Brandon Roberts puts it:
- dbdev - The Database Package Manager for PostgreSQL Trusted Language Extensions
-
Dbdev: PostgreSQL Package Manager
hi hn!
supabase engineer and author of dbdev here
happy to answer questions
If you're looking for a next step after reading the article, checkout the available packages on https://database.dev
(shameless plug) https://database.dev/olirice/asciiplot is a fun one to play around with if you have some queries that could use optimization
I'm really looking forward to opening dbdev up to community packages in the coming weeks
- The Database Package Manager for PostgreSQL Trusted Language Extensions
-
My Holy Trinity for Remembering Terminal Commands
https://database.dev/ Database for SQL commands - great for backend engineers!
-
Supabase/Postgres SQL Cheatsheet - Curated List of SQL
If you - find it useful, please spare a 🌟 at the Github Repo If you - found any issue/bug, create issues is much appreciated. If you - wanted to contribute the SQL scripts, PR is even more welcomed!
What are some alternatives?
pgcat - PostgreSQL pooler with sharding, load balancing and failover support.
jellyfin-vue - A modern web client for Jellyfin based on Vue
pg_tle - Framework for building trusted language extensions for PostgreSQL
dashibase-insert - Notion-like form builder powered by Vue, Tailwind and Supabase
mssql-changefeed
supabase-vue-user-management - supabase.io quickstart example in vuejs
debezium - Change data capture for a variety of databases. Please log issues at https://issues.redhat.com/browse/DBZ.
Hoppscotch - Open source API development ecosystem.
walex - Postgres change events (CDC) in Elixir
ionic-vue-crud-supabaseio-series - showing how to use supabase.io with vuejs and ionic framework
cainophile
supabase - The open source Firebase alternative.