MySQL or MicrosoftSQL? (1 Viewer)

pedra

MP Donator
  • Premium Supporter
  • August 8, 2006
    20
    0
    Campinas/SP
    Home Country
    Brazil Brazil
    Which one is better? I know nothing about data base so is a hard decision!
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    MySQL is totally free whereas MSSQL "can" be faster in some scenarios if you've got lots of RAM

    I am using both and can assure there's no specific problem with either of them. My HTPC runs nicely with MySQL ;)
     

    Rhys.Goodwin

    Portal Pro
    November 20, 2006
    336
    1
    Home Country
    New Zealand New Zealand
    Well free as in no money but not really free licence. Not that it makes any difference I guess. Open source is ideal though. I use SQL Express, it's nice but I also like the fact that MP supports a truly free db. (MySQL is still opensource right!?)
     

    Noelix

    Portal Pro
    February 18, 2006
    393
    1
    Salt Lake City, UT
    Home Country
    United States of America United States of America
    I just tried out the tv server for the first time with MySQL (first time since testing the tv server since early January) and it runs like a dream. MySQL takes up so little memory and processing power its practically transparent. Thanks so much for working so hard on this guys (frodo, rtv)!
     

    htpsd

    Portal Member
    November 27, 2006
    12
    0
    38
    Aachen
    Home Country
    Germany Germany
    Hello Everybody,

    I was wondering what database I should use. So I set up the server once with MSSQL and once with MySQL. The content of both databases should be exactly the same. I checked it for the Table "program". In both databases I importet the same data from Clickfinder. 7777 rows are in both databases.

    Then I wrote a simple PHP Script wich makes 10.000.000 queries on the table "program". Once for MySQL and once for MSSQL.

    I ran the script for each database about 10 times to be shure that the result is right.

    The MSSQL database needed 740 seconds to execute the query.
    The MySQL database needed 600 seconds to execute the query.

    Query was: "select * from program" .


    Than I changed the script to insert data into the databases. Again I choosed the table "program". I simply added some trash data. The script added 10.000 entries in both databases.

    The MSSQL database needed 240 seconds to execute the query.
    The MySQL database needed 255 seconds to exevute the query.


    --> So for reading MySQL is faster for TVengine3 - for writing MSSQL.
    In my configuration with 4 clients the TVservice reads more data from database than it writes into it - so I decided to use MySQL.



    Additional info:

    -Both databases were set up like its written in the TVengine3 wiki.
    -This performance test is only for the TVengine Database correct. Other databases could give other results.
    -The tests run at the same machine. Only Apache and the specific database were running.
    -The results are averages from about 10 results.
    -The Server is running MySQL 5.1, MSSQL 2005 Express, PHP5.1 on Dual Core AMD 64 4600+ running on Windows 2003 Enterprise x86 and 4 GB Ram.

    Queries for MySQL (MSSQL is the same code, but mssql_connect)

    Code:
    <?php
    
    $host = 'localhost';
    $db   = 'tvlibary';
    $user = 'root';
    $pw   = '***';
    
    set_time_limit(3600);
    $link = mysql_connect($host, $user, $pw);
    if (!$link) {
       die('keine Verbindung möglich: ' . mysql_error());
    }
    echo 'Verbindung erfolgreich<br><br>';
    $que = mysql_select_db($db);
    $t1 = time();
    //Queries
    $i=1;
    while ($i <= 10000000) 
    {
      mysql_query("select * from program");
      $i++;
    }
    $t2 = time();
    $t3 = $t2-$t1;
    
    echo $t3;
    ?>
     

    funkstar

    Retired Team Member
  • Premium Supporter
  • August 9, 2005
    771
    28
    Home
    Home Country
    Scotland Scotland
    the real question is: do those figures make any real wold difference to the performance of MediaPortal?

    however the memory footprint and resources used for the DB while running the TVserver will probably have more of an effect (is any, depending on the machine specs) than the time taken to read 10,000,000 records or write 10,000 :)

    (i could be wrong in this of course, i'm not a DB engineer)
     

    htpsd

    Portal Member
    November 27, 2006
    12
    0
    38
    Aachen
    Home Country
    Germany Germany
    This is not a statement that says wich database is the better one.
    I just wanted to know wich database is faster for my uses. I posted it because this information could be useful to somebody...

    Both databases are good databases. I work everyday with databases (MSSQL, MySQL and PostgreSQL). The performance on any database depends on the hardwarespecs and for what you use it.

    I don't think that MP will run slower when I use MSSQL. It's just an info :D
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    This is not a statement that says wich database is the better one.
    I just wanted to know wich database is faster for my uses. I posted it because this information could be useful to somebody...

    Both databases are good databases. I work everyday with databases (MSSQL, MySQL and PostgreSQL). The performance on any database depends on the hardwarespecs and for what you use it.

    I don't think that MP will run slower when I use MSSQL. It's just an info :D

    To get real database performance figures for MSSQL / MySQL you could maybe use SQL statements that tv engine is using. I would assume that SELECT * operations are pretty much going to run at similar speeds on different SQL servers.
     

    Users who are viewing this thread

    Similar threads

    I had the same install problem with SQL on clean 1.35 x64 installation. I had the same install problem with SQL on clean 1.34 x64 installation. Install 1.33 x64 using MySQL, after a new full cleanup and installed without a problem. Thank you all for your informations
    I had the same install problem with SQL on clean 1.35 x64 installation. I had the same install problem with SQL on clean 1.34 x64...
    Hi, went from a 1.29 install (working, reinstalled for other reasons) on a fairly fresh and fully updated Windows 10 system for a...
    Replies
    2
    Views
    468
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem - unable to connect to any of the specified MySQL hosts. And Hostname is still in red. I don't understand - this is a dedicated TV computer. Unless an update did this I don't know why there's a problem in the...
    I removed all sign of MySQL, rebooted, did a clean reinstall. It reinstalled 5.6, But I've still got both the same problem -...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    2
    Views
    737
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP and set logs and rebooted and ran TVServer. Didn't do anything in regard to S Loopback adapter. I've been using NextPvr since the problem became insurmountable. Only reason it's not a good long term...
    I uninstalled MP, made sure no sub folders were left n any programmes folders, changed the computer name, rebooted, installed MP...
    I've been using MediaPortal for 20 or so years. Last night it recorded perfectly. This arvo it doesn't - will run videos but not...
    Replies
    24
    Views
    3K
    Just those I attached. I messed about with task priorities MP/TV-Server/SQL-Server and the issue changed to the skin.. I would do something, but it would be 10's of seconds before the action happened. Doing an Alt-Tab would flush the actions. Too weird lol!! So, with some flak from the family, I had to give in. I just did a...
    Just those I attached. I messed about with task priorities MP/TV-Server/SQL-Server and the issue changed to the skin.. I would do...
    So, this one has me quite stumped. Have tried ) and a few things - driver updates, kicking the box, threatening it with a static...
    Replies
    8
    Views
    625
    MP1 MP2 1.31.0 Cannot view Changelog anymore DE
    Hi all, I don't frequently update my MediaPortal and before seeing if it's really useful I used to browse the Changelog to determine if this update is necessary for my system or not. Today I wanted to check the Changelog for version 1.34 (1.31 installed on my system) and I was asked for a “Jira” login. I tried to use the same one as...
    Hi all, I don't frequently update my MediaPortal and before seeing if it's really useful I used to browse the Changelog to...
    Hi all, I don't frequently update my MediaPortal and before seeing if it's really useful I used to browse the Changelog to...
    Replies
    0
    Views
    325
    Top Bottom