Open rrjanbiah opened 4 years ago
Hi
- When permissions are used, Hasura's performance is affected. Can reproduce it with simple permissions set up and through slow
Permissions will add a slight overhead (to check the permissions) but it should be very less. Can you post any numbers that you might be observing?
- Even without permissions setup, Hasura API calls become too slow after continuously running for a day. Looks like the bottleneck is with Postgres as restarting it brings back to normal speed. So, while searching for this particular issue, came across couple of interesting links that suggest that Postgres may not be best suitable for all cases (our case is real-time update through WebSocket) and some workaround or alternative forks required.
Hmm. This is interesting. Could you point to these links? Maybe there are postgres configuration like VACCUM frequency etc that can be configured for optimal performance.
Having said that, Greenplum is an interesting database for Hasura to support in the future. We will keep it in mind.
Permissions will add a slight overhead (to check the permissions) but it should be very less. Can you post any numbers that you might be observing?
Hmm.... It seems to be easy to reproduce. For example, todos
table has many relationship with users
table (Array relationships). Both todos
and users
tables are set permissions in Hasura console ( say /console/data/schema/public/tables/todos/permissions
and /console/data/schema/public/tables/users/permissions
) with roles admin
, 1
, 2
... with different insert
, etc permissions set. When you query todos
with users
, it is too slow. Must be 100x or more.
Hmm. This is interesting. Could you point to these links? Maybe there are postgres configuration like VACCUM frequency etc that can be configured for optimal performance.
Please find.
+1 for the support for the materialize.io
Does Hasura have the ability to "change out" the underlying engine? For example, we've written a Metabase driver that allowed us to quickly work around queries which aren't yet supported by Materialize: https://github.com/MaterializeInc/metabase-materialize-driver
@0x777 For your attention, please. Question from the Materialize team (@awang)
Context
\1. https://news.ycombinator.com/item?id=22767703
\2. https://news.ycombinator.com/item?id=22771062
\3. https://news.ycombinator.com/item?id=22775330 - PostgreSQL's Imperfections - Multiple discussions suggesting from pgbouncer, etc