Commit Graph
100 Commits
Author SHA1 Message Date
emeric 0780d1ab21 Added a way to manually compact and/or optimize the db 2024-04-20 23:57:01 +02:00
emeric 8cde7ddf43 Micro useless optim 2024-04-20 14:19:30 +02:00
emeric 53a356dace Fixed modal close error because already closed by client side 2024-04-19 23:42:19 +02:00
emeric abd013ad29 Fixed bad ids 2024-04-19 18:38:22 +02:00
emeric e16c4edb32 Improved query 2024-04-19 18:32:36 +02:00
emeric fd36527681 Bumped sqlite3 in released docker image 2024-04-19 14:08:38 +02:00
emeric d6b86a9360 Perform vacuum if migration is performed 2024-04-19 12:01:23 +02:00
emeric 4432def11f Added missing indexes, force index recreation to remove outdated indexes 2024-04-19 11:20:44 +02:00
emeric 27120d9848 Fixed regression on migration not performed 2024-04-19 11:19:45 +02:00
emeric 697233dcef Fixed results inconsistencies when using search3 2024-04-19 08:56:48 +02:00
emeric 38d0115069 Added missing break 2024-04-19 08:50:22 +02:00
emeric 1862cd23c2 Changed db optimization strategy: now perform a full analyze (only after scan if enough changes has been made, and during application startup). Also perform a vacuum if needed during startup. Added an init screen for the web interface since it can take a while to complete 2024-04-18 18:46:35 +02:00
emeric c63f9fa51c Simplified queries 2024-04-18 09:06:27 +02:00
emeric a5b7e7e5f3 Added some hints for the query planner for bad quality indexes 2024-04-17 19:27:51 +02:00
emeric 42315395fd Simplified queries 2024-04-17 19:04:52 +02:00
emeric 87daa5c767 Simplified queries + added some hints for the query planner for bad quality indexes 2024-04-17 19:01:28 +02:00
emeric ba1fb4a6d6 Added an index to speedup a query + split for better reading 2024-04-17 18:43:54 +02:00
emeric ec1a38fa76 Simplified queries 2024-04-17 18:41:23 +02:00
emeric f7fac19a5c Simplified queries 2024-04-17 18:37:44 +02:00
emeric e92fcb79de Iterate on clusters to better trace 2024-04-17 18:32:11 +02:00
emeric 78dd0302d0 Removed useless join 2024-04-16 14:28:30 +02:00
emeric 7ecaa16b8e Added a trace for index creation 2024-04-16 14:06:49 +02:00
emeric 90a2ac5680 CodeFactor review 2024-04-15 19:10:31 +02:00
emeric 18b220b241 Optimm to get all artists of a track in a single query 2024-04-15 18:50:00 +02:00
emeric 2c3365f1aa Fixed dropdown menu in search view sometimes hidden, fixes #436 2024-04-15 14:07:04 +02:00
emeric 29289c6026 Upgraded boostrap from 5.1.3 to 5.3.3, ref #444 2024-04-15 14:06:23 +02:00
emeric e3a6364429 Fixed build on ubuntu 22.04 2024-04-14 23:54:26 +02:00
emeric 0cda12a8bf Subsonic API: added bitDepth, samplingRate and channelCount, see https://github.com/opensubsonic/open-subsonic-api/pull/83 2024-04-14 16:17:45 +02:00
emeric b23f38facf Added relative file path+file size in DB 2024-04-14 09:37:24 +02:00
emeric be600b5e13 Small optim when visiting artist links 2024-04-13 14:33:06 +02:00
emeric cd5569db2f Give a chance to construct an ObjectPtr by moving source 2024-04-13 14:26:54 +02:00
emeric e6e8a6eac5 Optimized queries to iterate over artists/releases, when specifying a media library 2024-04-12 16:58:13 +02:00
emeric 5bf9be304b Added missing index 2024-04-12 14:22:57 +02:00
emeric f394e96b71 DB generator: make each generated release in a single media library (more realistic) 2024-04-12 14:22:18 +02:00
emeric d7b5d4190a Added missing groupBy when iterating db with a media library filter 2024-04-05 23:40:58 +02:00
emeric d050d039f5 Added missing db trace for migration 2024-04-05 23:33:55 +02:00
emeric 9bb7756938 Added indexes on artist(id), release(id) and listen(id) 2024-04-05 15:22:24 +02:00
emeric aff46065b0 Export the traces using gzip format 2024-04-05 14:10:02 +02:00
emeric 8438da9fde Added db stats in trace metadata 2024-04-03 00:02:48 +02:00
emeric 0acef3bfd4 Cleaned up Useless session 2024-04-03 00:01:19 +02:00
emeric 50ecfb1378 More query wrapped + fixed typo 2024-04-02 23:04:54 +02:00
emeric e2f68356fa traces: compacted struct + fix bad json export 2024-04-01 23:10:07 +02:00
emeric 741f0e12ed Tracing: added some more details for db operations 2024-04-01 20:27:52 +02:00
emeric 284dc58fce Removed useless include 2024-03-31 23:36:56 +02:00
emeric a3c53e1609 Tracing: added some details for db operations 2024-03-31 23:35:12 +02:00
emeric 7163b38e70 Fixed debug buil 2024-03-31 15:05:20 +02:00
emeric 1703e3eaf9 Added missing exec wrappers for queries 2024-03-31 13:13:24 +02:00
emeric 418286a1f2 Chaned the way the inner dbo session is accessed + added exec wrappers for queries 2024-03-31 13:13:01 +02:00
emeric 4ba8330194 Tracing: use only lower 32bits for thread, to make capture compatible with perfetto UI 2024-03-31 13:07:02 +02:00
emeric 9ca4ac073a Added some traces for image handling 2024-03-30 00:04:57 +01:00
emeric a91fc78d80 Fixed ubuntu build 2024-03-29 23:40:39 +01:00
emeric bad7ef1006 Added missing file to build 2024-03-29 21:03:22 +01:00
emeric 98d62c6419 Updated clang tidy rules 2024-03-29 21:02:59 +01:00
emeric 58df9284d4 Extracted image cache 2024-03-29 21:02:36 +01:00
emeric fb6670290e Subsonic API: ignore time parameter for 'now playing' scrobbles, ref #438 2024-03-27 23:44:36 +01:00
emeric 2d01814ede Fixed last track not sent to ListenBrainz, fixes #438 2024-03-27 23:42:26 +01:00
emeric ac69582f4b Changed the default cover image for releases 2024-03-24 15:15:36 +01:00
emeric 339b797312 Subsonic API: fixed getAlbumList with ordering set to alphabeticalByArtist 2024-03-24 15:07:45 +01:00
emeric 6048e8c30b Merge branch 'develop' into subsonic-custom-allocator 2024-03-23 15:58:25 +01:00
emeric 7b228f3acf Merge branch 'subsonic-scan-tracker' into develop 2024-03-23 15:56:07 +01:00
emeric 1630b7cb6f Scan tracker: now handle releases and artists 2024-03-23 15:55:29 +01:00
emeric ac3643709f Added missing include 2024-03-22 19:41:41 +01:00
emeric 717f71254e Fixed build when CMAKE_BUILD_TYPE is set to None 2024-03-19 22:49:50 +01:00
emeric 7315063a30 Fixed bad merge 2024-03-19 22:48:50 +01:00
emeric 78384d5d3f Added custom allocator for subsonic responses 2024-03-19 09:08:43 +01:00
emeric 5bfd31ff8a Scan tracker: take into account MediaLibrary 2024-03-18 12:01:48 +01:00
emeric 498c6f8e2b Added option to silent useless warnings 2024-03-17 23:37:21 +01:00
emeric ed1be02aaf Added a scan tracker to speed up queries with high offset in very large database 2024-03-17 23:36:40 +01:00
emeric fef4a90ce0 Added build type in trace metadata 2024-03-15 23:23:12 +01:00
emeric e37337a55c Added clang-tidy conf file 2024-03-15 23:03:20 +01:00
emeric 0f37daaa30 Completely removed the transaction checker in release (which was here but as a noop checker) 2024-03-15 16:26:59 +01:00
emeric 28405bb96e Added a scope around actual write transactions 2024-03-15 12:24:25 +01:00
emeric db692260a2 Do not process the metadata parsing results till the queue is empty, to avoid starvation of the workers 2024-03-15 00:02:28 +01:00
emeric 03425f3c94 Made the last scan step (checking for removed files) faster on big libraries 2024-03-14 23:21:30 +01:00
emeric 071b86602e Added an index on track(id) as it seems to speed up things when db is cold 2024-03-14 14:17:00 +01:00
emeric e4ad0a5406 Do not attempt extra data fetch when hitting the end of a query 2024-03-14 13:51:28 +01:00
emeric a769909ebc Removed useless new line 2024-03-14 00:18:36 +01:00
emeric a37b7a42da Fixed clang warnings 2024-03-14 00:16:18 +01:00
emeric 4c4bef266a Fixed clang warnings 2024-03-14 00:16:03 +01:00
emeric 63651de4bb Fixed clang warning 2024-03-13 23:56:08 +01:00
emeric 41992f235e Reworked internal namespaces 2024-03-12 23:11:29 +01:00
emeric 17905ae952 Merge branch 'stkw0-fix-asserts' into develop 2024-03-12 13:40:46 +01:00
emeric 9da781cff6 Fixed badly reported offset when hitting the end of the collection 2024-03-12 13:40:32 +01:00
emeric d876a2df0c Switched to LiteralString for keys in subsonic responses 2024-03-12 13:08:30 +01:00
emeric 181a5fadd3 Ignore vscode stuff for now 2024-03-12 13:08:30 +01:00
emeric f0d18ca2fd Merge branch 'stkw0-develop' into develop 2024-03-12 13:06:21 +01:00
emeric 4e36e033e4 Switched to LiteralString for keys in subsonic responses 2024-03-12 13:05:25 +01:00
emeric eb7b622b71 Ignore vscode stuff for now 2024-03-12 13:05:25 +01:00
emeric 4b7c4295ec Refactored namespaces 2024-03-12 08:32:08 +01:00
emeric 487960b413 Switched to LiteralString for keys in subsonic responses 2024-03-10 15:28:16 +01:00
emeric 377e50c525 Ignore vscode stuff for now 2024-03-10 15:27:45 +01:00
emeric c6ae3fe3fa Renamed profiling to tracing 2024-03-10 12:21:01 +01:00
emeric 47ef5f7cc7 Added some detailed profiling info into subsonic responses handlers 2024-03-09 22:39:07 +01:00
emeric fa9844810d Added some detailed profiling info for the http send queue 2024-03-09 22:23:41 +01:00
emeric 9c8844d866 Added some thread names 2024-03-09 22:23:02 +01:00
emeric 65d95060b0 Added a way to set thread name in profiling captures 2024-03-09 22:22:15 +01:00
emeric 88580a8903 Fixed race 2024-03-09 20:23:58 +01:00
emeric 15b4a4601e Removed unnecessary write access to the DB 2024-03-09 19:22:06 +01:00
emeric d6fd95ab44 Added some profiling events for subsonic API (media retrieval) 2024-03-09 19:14:13 +01:00
emeric f072f171d8 Added some profiling events for the subsonic API 2024-03-09 19:02:02 +01:00