Skip to content
YACReader
If you know how to improve YACReader, please tell me your ideas.

Bring your own DB?

  • jakanapes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #2474 by jakanapes
Bring your own DB? was created by jakanapes
I'd love to be able to save the Library in my own local database. There'd be a nice performance boost for larger libraries.

Poking around the source, I know that QT supports mysql and pg, which would probably be the most commonly used.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #2475 by selmf
Replied by selmf on topic Bring your own DB?
Hi jakanapes! Bringing you own DB is probably a bit "too much" for most of our users, so we're currently not looking into implementing this. Since you're already poking around in the source code you could try to do the necessary changes yourself. Since the code responsible for the database handling is database-independent it could be as easy as switchting the sql database driver.

This will give you a good start:

doc.qt.io/qt-5/qsqldatabase.html

The code responsible for the database creation is located in YACReaderLibrary/db/data_base_management.cpp

Happy hacking ;)

My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #2477 by Luis Ángel
Replied by Luis Ángel on topic Bring your own DB?
In YACReaderLibrary most of the performance overhead comes from processing comics files and loading covers while browsing. Since there are not concurrent accesses to the data base, the performance using sqlite is good enough.

But maybe I am missing something, how do you expect to improve the performance?

Anyway, if you find any bottleneck in the access to the DB, please, let me know. It has been a while since the last time I tested the performance of the DB. I usually create a huge synthetic dataset for testing, way larger than any actual library, to be sure that the performance is fine.

Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\

Please Log in or Create an account to join the conversation.

Moderators: Luis Ángel
Powered by Kunena Forum

Thanks for downloading YACReader!

Your download is starting.

YACReader for iOS and Android

Connect to YACReaderLibrary to browse, read remotely and import comics. Your reading progress is synchronized across devices.

Download on the App Store Get it on Google Play Available at Amazon Appstore

Discover all the features on the iOS and Android pages, and learn how to use them in the iOS and Android user guides.

Support YACReader

YACReader for desktop and server is free to use, but it is not free to develop: maintaining this website, developer programs, code signing certificates, test devices and, of course, all the time it takes. Less than 0.01% of downloads end in a donation, so any amount counts.

By supporting the project you help keep it regularly updated and, most importantly, alive. Thanks!