58 Commits

Author SHA1 Message Date
Kavin
cb6bfb30b1
Fix a subquery's selection type 2023-04-30 22:16:49 +01:00
Kavin
977ffa1286
Add shutdown thread to close session factory 2023-04-16 22:56:33 +01:00
Kavin
7c2014fc85
Cleanup list randomization code for pubsub. 2023-03-11 20:59:52 +00:00
Kavin
aa36c6f68b
Filter invalid channel IDs. 2022-12-14 20:38:19 +00:00
Kavin
2467946471
Remove debug print code. 2022-12-14 14:45:28 +00:00
Kavin
522fd2cd66
Add missing pubsub channels. 2022-12-14 13:44:50 +00:00
Kavin
b1b7dbb44a
Attempt to improve pubsub subscription handling. 2022-12-10 04:56:31 +00:00
Kavin
fd6a6b3083
Start matrix sync thread asynchronously. 2022-11-15 01:41:15 +00:00
Kavin
cd6e63130b
Implement federation of video data. 2022-11-13 00:27:13 +00:00
Kavin
08b61a1d20
Ignore ErrorResponse and implement tracing. 2022-10-30 22:26:20 +00:00
Kavin
8c55b85fc2
Allow using sentry to log errors. 2022-10-30 19:56:04 +00:00
Kavin
2afecb3f39
Refactor server code into multiple classes. 2022-10-29 22:00:55 +01:00
Kavin
383c017f5c
Optimize pubsub subscription query. 2022-09-17 20:29:26 +05:30
Kavin
ab0540392f
Let NewPipeExtractor use same executor. 2022-09-11 01:35:10 +05:30
Kavin
13710d24d8
Update NPE fork and parallelize StreamExtraction requests. 2022-09-07 12:59:11 +05:30
Kavin
81fa92361d
Fix and optimize pubsub timer query. 2022-08-05 00:03:47 +05:30
Kavin
9a45e33fdb
Fix bugs and implement more of unauthenticated subs. 2022-07-31 23:17:42 +05:30
Kavin
c0f51c6fb6
Allow disabling server on a node. 2022-07-19 14:15:42 +05:30
Kavin
c85cbf6034
Use a timer task instead for deleting playlist videos not in any playlists. (#311) 2022-07-08 00:06:39 +01:00
Kavin
d29d9c415d
Attempt to optimize session handling. (#307) 2022-07-05 14:18:33 +01:00
Kavin
e6c0f7c0f4
Cleanup transaction code. (#306) 2022-07-04 18:44:16 +01:00
Kavin
606cbf5ca6
Use Criteria API for deleting old videos. (#302) 2022-07-04 07:09:20 +01:00
Kavin
17b9a974de
Attempt to use stateless sessions in read-only operations. (#301) 2022-07-04 06:42:01 +01:00
Kavin
0158744506
Hold pubsub session for lesser time. (#298) 2022-07-02 18:13:58 +01:00
Kavin
3a009407ad
Run server on new thread. (#297) 2022-07-02 13:32:20 +01:00
Kavin
b7a91036f9
Cleanup Transactions. (#275)
- use hibernate 6 methods
- Don't use session.getTransaction()
- regex to validate channelId for saving channels
2022-06-26 10:03:02 +01:00
Kavin
160e6933d3
Allow disabling pubsub timer to lower cpu usage. (#289) 2022-06-25 10:19:06 +01:00
Kavin
c23805288f
Update to Hibernate 6. 2022-06-17 17:05:59 +01:00
Kavin
87917f0da2
Use parallel streams for some operations. (#264) 2022-05-12 11:54:28 +01:00
Kavin
11b53e8c00
Update NewPipeExtractor. (#249) 2022-04-24 18:01:00 +01:00
Kavin
9c1c165fb2
Significantly speed up import process. (#242) 2022-04-11 00:02:25 +01:00
Kavin
43d6dc93c0
Use try with for sessions (#222) 2022-03-16 03:21:24 +00:00
Kavin
6e88cf3050
Log and clear throttling cache every hour. (#220) 2022-03-14 14:54:47 +00:00
Kavin
a03ae434be
Replace native query with criteria api for PubSub subscriptions (#191) 2022-02-15 11:55:08 +00:00
Kavin
8880a884c3
Add feed retention configuration option. (#174) 2022-01-31 04:17:16 +00:00
FireMaskterK
6ec517e0ef
Add index and improve pubsub db query. 2021-11-18 23:32:19 +00:00
FireMasterK
15f7eef82c
Cleanup PubSub query. 2021-08-21 01:52:39 +05:30
FireMasterK
cf9d1cd8cf
Print stacktraces on any errors. 2021-07-21 18:07:43 +05:30
FireMasterK
e03f2661b4
Add null check for pubsub. 2021-07-21 02:57:28 +05:30
FireMasterK
dfca88952a
Use Hibernate as a database (#32)
* Basic hibernate structure.

* Commit stash.

* Improve a lot of things.

* Implement Feed, PubSub, query optimizations.

* Update video views on channel visits.

* Allow mass importing subscriptions.

* Allow configuring database in config.properties.

* Major multi-threading and pubsub improvements.

* PubSub query improvements and fix for postgres.

* Revert docker-compose change.

* Disable showing sql statements.
2021-07-17 04:10:46 +05:30
FireMasterK
efc28a8994
ActiveJ migration. (#30)
* Initial ActiveJ migration.

* Add multi-threading.
2021-03-29 19:29:10 +05:30
FireMasterK
9275e01c5a
Fix compile error. 2021-02-24 15:56:26 +05:30
FireMasterK
dd2ee203bb
Commit changes. 2021-02-24 15:22:29 +05:30
bopol
935ec90710
use server.onDispose().block() instead of Thread.sleep(Long.MAX_VALUE) (#19) 2021-02-10 01:00:34 +05:30
bopol
7e5256134b
Change pubsub mimetype 2021-02-05 20:33:21 +01:00
bopol
347bacdd85 add response mime type 2021-02-05 19:28:02 +01:00
bopol
554d39807b add status code to server response 2021-02-05 18:54:46 +01:00
bopol
e8c7b44e8e Use HttpHeaderNames for HTTP headers 2021-02-05 18:53:14 +01:00
FireMasterK
ec247f5bce
perf: add server timings 2021-01-30 20:39:01 +05:30
FireMasterK
bf42b197be
fix missing imports. 2021-01-12 13:46:49 +05:30