MovieLib - Your movie database on web - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116) +--- Thread: MovieLib - Your movie database on web (/showthread.php?tid=167893) |
RE: MovieLib - Your movie database on web - Motorradfahrer - 2016-10-23 (2016-07-13, 11:29)Regss Wrote: I don't try on kodi 17 yet but you can try I did install it today at Krypton and saw no issues. Thanks a lot for that nice tool. RE: MovieLib - Your movie database on web - skybird1980 - 2016-10-23 hi there, maybe it's possible to rewrite the mysql - class for php7? you need to use mysqli_connect (e.g) because the old mysql_connect is deprecated. RE: MovieLib - Your movie database on web - Poci - 2016-11-01 Edit: Deleted. Dead thread :-( RE: MovieLib - Your movie database on web - calexicoca - 2016-12-10 I dont know what I am doing wrong. When i Try to install script as soon as I type password I get this RE: MovieLib - Your movie database on web - Numax-Pure.Cinema - 2016-12-22 after many days......i just couldn't get it to work i gave up. RE: MovieLib - Your movie database on web - darkside40 - 2017-02-23 Works great. You only have to be carefull to use PHP5 on the Server than it works. I just need to do some optimizations because with 2800+ Movies and about 20000+ TV Show Episodes it is awfully slow. Disabling the Facebook Integration already cut down the load time of the website from 25sec to 14sec. I have to see what i can further do to optimize load times. What are youre experinces when it comes to page load times? RE: MovieLib - Your movie database on web - Regss - 2017-02-24 (2017-02-23, 09:34)darkside40 Wrote: ...20000+ TV Show Episodes ... I know that optimization is needed. I gather knowledge in the field of mysql. Changing to mysqli looks easy. edit: If you add to any URL parameter debug= You can see what mysql query take too long. ex. http://host/movielib/index.php?debug= RE: MovieLib - Your movie database on web - darkside40 - 2017-02-25 THX for the hint with the debug switch. And i think i have identiefied the SQL Statement which is causing the delay: SELECT DISTINCT actor.id, actor.actor FROM `actor`, `movies_actor` WHERE actor.id=movies_actor.actorid ORDER BY actor.actor - 7.9521350860596 I have tried if reducing the elements per page changes the loading time, but it does not. Btw. this delay only effects the Movies, not the TV Shows. RE: MovieLib - Your movie database on web - _Andy_ - 2017-02-26 I use movielib a long time. I have about 1600 movies and 254 tvshows with about 18000 episodes. Recently i need to change my server and i switched to php7. The movie index page takes less than 3 seconds to load. Code: SELECT id, title, date_added, hide FROM movies WHERE hide=0 ORDER BY date_added DESC LIMIT 10 - 0.00031805038452148 RE: MovieLib - Your movie database on web - darkside40 - 2017-02-26 Maybe you could send your changes needed for PHP7 to Regss? Would save him some work. How long was it with PHP5? RE: MovieLib - Your movie database on web - Regss - 2017-02-26 Out of curiosity how many rows have yours actor table in database? RE: MovieLib - Your movie database on web - darkside40 - 2017-02-26 80150, which is less than in my original Kodi DB. There are 104324 rows. RE: MovieLib - Your movie database on web - Regss - 2017-02-27 I don't have that many actors in my database. Do you can check if this fix speed up load time: open function.php and in line 515 replace from; Code: $sel = 'SELECT DISTINCT ' . $val . '.id, ' . $val . '.' . $val . ' FROM `' . $val . '`, `' . $table . '_' . $val . '` WHERE ' . $val . '.id=' . $table . '_' . $val . '.' . $val . 'id ORDER BY ' . $val . '.' . $val; to: Code: $sel = 'SELECT ' . $val . '.id, ' . $val . '.' . $val . ' FROM `' . $val . '` ORDER BY ' . $val . '.' . $val; and from: Code: $sel = 'SELECT DISTINCT `' . $val . '` FROM `' . $table . '` WHERE `hide` = 0 ORDER BY `' . $val . '`'; to: Code: $sel = 'SELECT `' . $val . '` FROM `' . $table . '` WHERE `hide` = 0 ORDER BY `' . $val . '`'; RE: MovieLib - Your movie database on web - darkside40 - 2017-02-27 Tried it and it works. Loading time reduces from approx. 12sec to 4sec. Great This change althought only has the sideeffect that the years in the left pane are not reduced anymore. RE: MovieLib - Your movie database on web - Regss - 2017-02-27 I forgot. Undo the second change. |