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
    39
    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
    39
    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

    Works like a charm with both MySQL and Maria database. Thank you very much!
    Works like a charm with both MySQL and Maria database. Thank you very much!
    After a clean MP and MySQL uninstallation and deleting all MP and MySQL program and data folders the new MP 1.38 installation fails...
    Replies
    2
    Views
    531
    It helped me too. Thanks
    It helped me too. Thanks
    After updating to MP1.37 (x86), I get a MySQL error when I access the TVServer configuration. The error message and log are attached.
    Replies
    6
    Views
    1K
    That screen is generated by the file "MyVideo.xml", but it uses various other files too. When the list on the right is a list of episodes, the area in the middle contains the programme information for the episode that has the focus. In your screen shot, the list on the right is a list of folders. You could fill the area in the...
    That screen is generated by the file "MyVideo.xml", but it uses various other files too. When the list on the right is a list of...
    Can someone please assist me in the file name and location of which XML controls this screen. I want to create an additional box...
    Replies
    1
    Views
    873
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for any entry in your music database: Artist, Album, Title, Lyrics... I'm afraid there is no such plugin :unsure:
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for...
    HI, I'm new to MediaPortal and have a question about searching for data. I have an extensive collection of music, films, and TV...
    Replies
    1
    Views
    2K
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue stemmed from the corruption of one or both of the mc2xml.dat and/or mc2xml.exe files, for an unknown reason. Consequently, even though the tvguide.xml file appeared to be updated, its content kept being an...
    Update: Problem solved! The electronic program guides (tvguide.xml) have been successfully transferred to MediaPortal. The issue...
    I was having a problem with the EPG on MP2 1.4.1 (although it used to run without any issues for a while). So I installed MP2 1.5...
    Replies
    8
    Views
    738
    Top Bottom