Jump to content

[SOLVED] Correct linux input commands for VACUUM, ANALYZE and REINDEX?


Recommended Posts

Posted (edited)

After searching the web and finding nothing about this, I'm asking to fellow synology users if they have tried using these commands to tidy up their library.db using putty?

 

Because when I do so, I get this error right out of the start (logged in as sudo -i):

 

 

sqlite3 library.db "VACUUM"                                                                                                                                                                                                                                     
Error: database is locked

 

 

I would like to perform 3 SQLite actions, VACUUM, ANALYZE and REINDEX, but I'm not being able to.

 

 

Did I enter an incorrect command? Any tips?

 

Thanks

Edited by djhifi
Jdiesel
Posted

Did you shutdown Emby first?

  • Like 1
Posted (edited)

Did you shutdown Emby first?

 

LMAO...no. I'm having a harsh day. Let me do so. Stupid me

 

Thanks, it worked. Just a little extra question: REINDEX is needed or just redundant after VACUUM+ANALYZE?

Edited by djhifi
Posted

Great job !

  • Like 1
Posted

Great job !

 

Are you really planning on pushing this into upcoming packages as a schedule? Would be awesome.

Posted

Well I'm not sure when I'll get to it but it's something I'd like to do.

  • Like 1
Posted

Well I'm not sure when I'll get to it but it's something I'd like to do.

 

Great. Will keep an eye on it. Up until then I will just regularly perform these commands. You can lock this topic if you wish.

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...