MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » General Talk


General Talk Talk about the MediaPortal TV-Server

Reply
 
Thread Tools Display Modes
Old 2007-02-12, 20:46   #1 (permalink)
Portal Member
 
pedra's Avatar
 
Join Date: Aug 2006
Location: Campinas/SP
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Send a message via MSN to pedra
Default MySQL or MicrosoftSQL?

Which one is better? I know nothing about data base so is a hard decision!
pedra is offline   Reply With Quote
Old 2007-02-12, 22:57   #2 (permalink)
rtv
Portal Developer
 
rtv's Avatar
 
Join Date: Apr 2005
Location: Osnabruck
Posts: 2,763
Thanks: 130
Thanked 133 Times in 93 Posts

Country:

My System

Default

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
__________________
rtv is offline   Reply With Quote
Old 2007-02-13, 06:26   #3 (permalink)
Portal Developer
 
frodo's Avatar
 
Join Date: Apr 2004
Location: The Netherlands
Age: 37
Posts: 1,516
Thanks: 3
Thanked 119 Times in 44 Posts

Country:

My System

Default

SQL Server 2005 express is also free
frodo is offline   Reply With Quote
Old 2007-02-13, 08:22   #4 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 335
Thanks: 1
Thanked 1 Time in 1 Post

Country:

My System

Default

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!?)
Rhys.Goodwin is offline   Reply With Quote
Old 2007-02-13, 09:51   #5 (permalink)
Portal Member
 
Noelix's Avatar
 
Join Date: Feb 2006
Location: Salt Lake City, UT
Age: 26
Posts: 392
Thanks: 11
Thanked 1 Time in 1 Post

Country:

My System

Send a message via MSN to Noelix
Default

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)!
__________________
Noelix is offline   Reply With Quote
Old 2007-02-13, 13:42   #6 (permalink)
Portal Member
 
pedra's Avatar
 
Join Date: Aug 2006
Location: Campinas/SP
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Send a message via MSN to pedra
Default

Thanks all!!
pedra is offline   Reply With Quote
Old 2007-02-18, 17:33   #7 (permalink)
Portal Member
 
Join Date: Nov 2006
Location: Aachen
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

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;
?>
__________________
My TVServer:
- AMD Athlon64 X2 4600+ AM2 on MSI K9N-Diamond Plus!
- 4 GB RAM Samsung 1000Mhz DDR-2
- 3,5 TB RAID 5 on Promise EX8350 (8X WD Caviar)
- 2X Technotrend S1500 DVB-S
- 1X Technotrend S1101 DVB-S
- 1X Technotrend S3200 DVB-S2


My Clients:
- Samsung X20 1730V (Notebook)
- 3x Asus Pundit P1 (Barebone)
- Selfmade (See Systemspecs)
htpsd is offline   Reply With Quote
Old 2007-02-18, 17:50   #8 (permalink)
Portal Member
 
funkstar's Avatar
 
Join Date: Aug 2005
Location: Home
Posts: 393
Thanks: 7
Thanked 2 Times in 2 Posts

Country:


Default

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)
funkstar is offline   Reply With Quote
Old 2007-02-18, 17:57   #9 (permalink)
Portal Member
 
Join Date: Nov 2006
Location: Aachen
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Default

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
__________________
My TVServer:
- AMD Athlon64 X2 4600+ AM2 on MSI K9N-Diamond Plus!
- 4 GB RAM Samsung 1000Mhz DDR-2
- 3,5 TB RAID 5 on Promise EX8350 (8X WD Caviar)
- 2X Technotrend S1500 DVB-S
- 1X Technotrend S1101 DVB-S
- 1X Technotrend S3200 DVB-S2


My Clients:
- Samsung X20 1730V (Notebook)
- 3x Asus Pundit P1 (Barebone)
- Selfmade (See Systemspecs)
htpsd is offline   Reply With Quote
Old 2007-02-18, 20:13   #10 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,733
Thanks: 98
Thanked 137 Times in 109 Posts


Default

Quote:
Originally Posted by htpsd View Post
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
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.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Reply

Bookmarks

Tags
microsoftsql, mysql

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL option dunkstar Development 44 2007-02-01 14:28
MySQL Useable? Comm Get Support 2 2007-01-29 10:05
MPWebControl with mySQL klestor Plugins 2 2006-04-09 20:42


All times are GMT +1. The time now is 10:07.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden