Backup restore is slow. #5087
Labels
area/enterprise/backup
Related to binary backups
priority/P1
Serious issue that requires eventual attention (can wait a bit)
status/accepted
We accept to investigate/work on it.
What version of Dgraph are you using?
master
Have you tried reproducing the issue with the latest release?
yes
Steps to reproduce the issue (command/config used to run Dgraph).
Daniel was trying to restore a backup and it took a while. I also thought restoring was a bit slow while doing some testing for online restores (but not as bad). But Santo was able to restore in a reasonable time so I am not 100% if this is a problem
While investigating ,I noticed that restores are being written to the database with a class called KVLoader. The comments in the code says this struct was specifically created to deal with backups. This was done before I started working on backups so I don't know the motivation for using KVLoader instead of the write batcher or the stream writer.
Assigning to @jarifibrahim for preliminary investigation. Do you have any idea why this class is there? is it necessary or can it be replace with another loader that is hopefully more performant? If something else can replace it, I can make the change.
The text was updated successfully, but these errors were encountered: