1
0
mirror of https://github.com/etesync/server synced 2024-11-29 12:08:07 +00:00
Commit Graph

9 Commits

Author SHA1 Message Date
Tom Hacohen
f52facad1c Subscriptions: implement live subscriptions for collection items 2021-01-11 22:15:12 +02:00
Tom Hacohen
6ec03c3d34 Revert "Add a django middleware to cleanup db connections."
This ended up being useless because of the way startlette and fastapi do
thread pools. The middleware is called in one thread, the path in
another, and the dependency in yet another.

This reverts commit 473448246f.
2020-12-30 15:37:59 +02:00
Tom Hacohen
473448246f Add a django middleware to cleanup db connections.
This severely impacts performance, though without it we are getting
django.db.utils.InterfaceError once connections in the pool go stale.
2020-12-30 09:26:33 +02:00
Tom Hacohen
dbdff06e68 Move all the routers under their own dir. 2020-12-29 15:42:41 +02:00
Tom Hacohen
f67730f42d Support passing custom middlewares. 2020-12-29 10:12:36 +02:00
Tom Hacohen
a8b97e60d4 Docs: improve metadata. 2020-12-29 09:46:20 +02:00
Tom Hacohen
10ff303b75 Fix formatting. 2020-12-28 17:09:20 +02:00
Tom Hacohen
c1f171bde0 Change how we create applications. 2020-12-28 16:42:39 +02:00
Tom Hacohen
0fa2f2da3b Make the fastapi application the main asgi one. 2020-12-28 16:42:39 +02:00