Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Optimize db files of XBMC+Addons
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Optimize db files of XBMC+Addons
23rd Mar, 2013, 05:08 AM
Post: #1
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
Optimize db files of XBMC+Addons
This will search for db files in the xbian folder and will optimize those databases. This requires the sqlite3 binaries.
Could be handy when you have a big database and/or made many changes. As it just reorganize/rebuilt the databases and doesn't delete any data, it should be safe to use.

Terminal

sudo apt-get update
sudo apt-get install sqlite3
sudo /etc/init.d/xbmc stop

for i in `find /home/xbian -iname "*.db"` ; do sudo /usr/bin/sqlite3 $i 'VACUUM;' ; sudo /usr/bin/sqlite3 $i 'REINDEX;' ; done

sudo /etc/init.d/xbmc start

Perhaps something for the xbian-config tool like a kind of "housekeeping" task? ;-)
Find all posts by this user
Quote this message in a reply
23rd Mar, 2013, 07:59 AM
Post: #2
mad-max Offline
Registered
Posts: 28
Joined: Jan 2013
Reputation: 5
AW: Optimize db files of XBMC+Addons
Do you have ans timings before and after indexing?
Find all posts by this user
Quote this message in a reply
23rd Mar, 2013, 06:07 PM
Post: #3
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: Optimize db files of XBMC+Addons
No, unfortunately not.
I have only a very small movie database at the moment due some re-installations. So I can't make a real test for now.

But perhaps another user will make a short comment here.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 03:30 AM Powered By MyBB, © 2002-2025 MyBB Group.