komga | Media server for comics/mangas/BDs with API and OPDS support | REST library
kandi X-RAY | komga Summary
kandi X-RAY | komga Summary
Check the development guidelines.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of komga
komga Key Features
komga Examples and Code Snippets
Community Discussions
Trending Discussions on komga
QUESTION
i'm the developper of an open-source application designed for self-hosting. As such, it is used by many people on various systems, OSes, and hardware. It's built using Kotlin and Spring Boot, and uses H2 as the database. The problem i have is that many users are facing database corruption from times to times (it happened to me also a few times).
The corruptions are always of the form:
...ANSWER
Answered 2020-Jun-25 at 15:30If your application uses
Thread.interrupt()
for threads doing calls into embedded database, this is the reason of corruption, don't do this or use theasync:
filesystem (jdbc:h2:async:…
).If classloader with H2 can be forcibly unloaded (on some application servers, for example) or application is going to be terminated in some abnormal way, you need to close all connections before it or execute the
SHUTDOWN
command and wait for its completion.If you try to open the database file with some older version of H2, it can corrupt the file created by a more recent version.
You may run into some bug in H2, so if you can build a standalone test case (Java / JDBC / SQL only, no third-party libraries), you need to fill a new issue on GitHub. You can also try to build H2 from its current sources, there were some changes in the storage backend, but current H2 is very different from 1.4.200 in other aspects and third-partly libraries that you use may be not yet ready to work with it.
You can use the legacy PageStore backend instead of default one by appending
;MV_STORE=FALSE
to the JDBC URL when you create your database. This backend uses table-level locks (you need to lock tables in the same order in all your transactions) and doesn't execute commands from different sessions in parallel, but it is more reliable.You can use a separate H2 Server process; such configuration is usually more reliable than embedded databases, but it works slower.
In any case, with any DBMS, you should create backup copies on regular basis. H2 has
BACKUP
command for this purpose.
QUESTION
I am trying to setup Hibernate query cache for queries derived by method name in Spring Data, but the query cache is never used, or doesn't even seem to be active.
I am using Spring Boot 2.2.1
, Kotlin 1.3.50
, and Caffeine with the JCache extension as my underlying Hibernate cache.
My repository is as follows:
...ANSWER
Answered 2019-Dec-18 at 02:36I had a problem in my yaml
which was not properly indented (!)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install komga
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page