19802d8bd5
I've noticed that the endpoint `/api/entries/exists` used by the "Sweep articles" feature on the Android app failed almost all the time on my instance. After checking the corresponding method I found that `EntryRestController::getEntriesExistsAction()` could be improved. Here is the former way the method worked: ``` for id in [list of ids] get full entry by id if null get full entry by given id return array of ids or array of hashes ``` With this behavior on my instance I could expect up to 13k SQL requests when sweeping articles from the Android app. Morever the repository fetches all fields (content included) while the method only returns ids or hashes. The new behavior is described as follow: ``` get ids, hashes by [list of ids] merge with provided [list of ids] // this part will complete the final // array with not found ids return array of ids or array of hashes ``` In my case this change reduces the number of SQL requests to only 135 (_considering one request for 50 articles_) Signed-off-by: Kevin Decherf <kevin@kdecherf.com> |
||
---|---|---|
.github | ||
app | ||
bin | ||
data/db | ||
docker | ||
scripts | ||
src | ||
tests/Wallabag | ||
var | ||
web | ||
.babelrc | ||
.composer-auth.json | ||
.editorconfig | ||
.eslintrc.json | ||
.gitignore | ||
.php_cs | ||
.scrutinizer.yml | ||
.stylelintrc | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
composer.lock | ||
COPYING.md | ||
CREDITS.md | ||
docker-compose.yml | ||
GNUmakefile | ||
Makefile | ||
package.json | ||
phpstan.neon | ||
phpunit.xml.dist | ||
README.md | ||
RELEASE_PROCESS.md | ||
webpack.config.js | ||
yarn.lock |
What is wallabag?
wallabag is a self-hostable PHP application allowing you to not miss any content anymore. Click, save and read it when you can. It extracts content so that you can read it when you have time.
More information on our website: wallabag.org.
If you do not have your own server, consider the wallabag.it hosting solution.
Install wallabag
Please read the documentation to see the wallabag requirements.
Then you can install wallabag by executing the following commands:
git clone https://github.com/wallabag/wallabag.git
cd wallabag && make install
Now, configure a virtual host to use your wallabag.
Run on YunoHost
Wallabag app for YunoHost. See here
Translate wallabag
wallabag is being translated using Weblate, a web tool designed to ease translating for both developers and translators. Feel free to help us translate wallabag!
License
Copyright © 2013-current Nicolas Lœuillet nicolas@loeuillet.org This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the COPYING file for more details.