Click here to Skip to main content
15,892,809 members
Home / Discussions / Database
   

Database

 
QuestionSSIS: Trying to update a subset of columns in an Ole Db Destination from a flat file source Pin
Alaric_6-Jul-11 2:15
professionalAlaric_6-Jul-11 2:15 
Questionis it possible restore file( which back up in ms-sql2008) to ms-sql 2005? Pin
buffering835-Jul-11 23:50
buffering835-Jul-11 23:50 
AnswerRe: is it possible restore file( which back up in ms-sql2008) to ms-sql 2005? Pin
scottgp6-Jul-11 1:35
professionalscottgp6-Jul-11 1:35 
AnswerRe: is it possible restore file( which back up in ms-sql2008) to ms-sql 2005? Pin
Shameel6-Jul-11 21:48
professionalShameel6-Jul-11 21:48 
QuestionDeadlock problem Pin
Y_Kaushik5-Jul-11 19:18
Y_Kaushik5-Jul-11 19:18 
SuggestionRe: detecting and ending Deadlocks Pin
David Mujica6-Jul-11 3:08
David Mujica6-Jul-11 3:08 
AnswerRe: Deadlock problem Pin
MecAlex10-Jul-11 22:40
MecAlex10-Jul-11 22:40 
QuestionMySQL in-memory table vs. SQLite in-memory DB Pin
GregStevens5-Jul-11 17:32
GregStevens5-Jul-11 17:32 
I would like to know which of the following options will produce the fastest transactions (and why). Unfortunately, I don't know enough about the low-level "nuts and bolts" of database operation to really have a good intuition on this.

My PHP script resides on one server, my MySQL database resides on another. I believe that by performing operations on a regular MyISAM table, I am incurring time costs related to both 1) communicating between the web server and the database server, and 2) performing disk operations because of MyISAM is disk-based storage engine. I do not, however, know how much of the time cost is associated with each of these factors or if both are really significant (in the sense of important).

I have some temporary data that I want to manipulate on a per-session basis, and the way I see it I have two options:

I can create a local memory database and create a table there.
$wm = sqlite_open(':memory:', 0666);
sqlite_query($wm,"CREATE TABLE patterns (pattern varchar(500))");


Or, I can create a table in memory on the existing MySQL database.
mysql_connect("not.localhost.com", "admin", "example");
mysql_select_db("example");
mysql_query("CREATE TEMPORARY TABLE patterns (pattern VARCHAR(500)) ENGINE=MEMORY");


Which one of these will be faster to perform queries on? Will there be a noticable difference? My intuition is that the second will be slower because it is a transaction on a non-local database, but I don't know this for sure. When the table is in-memory, which computer's memory is it actually in? How much volume would have to be going on for a difference to actually be noticable?

Any thoughts would be very much appreciated.
--Greg

AnswerRe: MySQL in-memory table vs. SQLite in-memory DB Pin
Eddy Vluggen8-Jul-11 13:02
professionalEddy Vluggen8-Jul-11 13:02 
QuestionRID|Key lookup vs Index Seek? [modified] Pin
devvvy5-Jul-11 17:23
devvvy5-Jul-11 17:23 
AnswerRe: RID|Key lookup vs Index Seek? Pin
dasblinkenlight6-Jul-11 6:13
dasblinkenlight6-Jul-11 6:13 
GeneralRe: RID|Key lookup vs Index Seek? Pin
devvvy10-Jul-11 0:11
devvvy10-Jul-11 0:11 
QuestionFeeding parameters from a C# app into an SSIS package that converts query results to CSV and FTP [modified] Pin
Alaric_5-Jul-11 12:34
professionalAlaric_5-Jul-11 12:34 
AnswerRe: Feeding parameters from a C# app into an SSIS package that converts query results to CSV and FTP Pin
Alaric_7-Jul-11 6:44
professionalAlaric_7-Jul-11 6:44 
QuestionLow-level filtering of IsDeleted bit field Pin
army_man716554-Jul-11 11:39
army_man716554-Jul-11 11:39 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
Johan Hakkesteegt5-Jul-11 1:48
Johan Hakkesteegt5-Jul-11 1:48 
GeneralHistory table Pin
David Mujica5-Jul-11 3:25
David Mujica5-Jul-11 3:25 
GeneralRe: History table Pin
Eddy Vluggen5-Jul-11 13:19
professionalEddy Vluggen5-Jul-11 13:19 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
jschell5-Jul-11 6:20
jschell5-Jul-11 6:20 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
Mycroft Holmes5-Jul-11 14:21
professionalMycroft Holmes5-Jul-11 14:21 
AnswerRe: Low-level filtering of IsDeleted bit field Pin
Shameel7-Jul-11 3:20
professionalShameel7-Jul-11 3:20 
QuestionUnQuote a nvarchar() string and use it as a table name Pin
reza assar4-Jul-11 1:57
reza assar4-Jul-11 1:57 
AnswerRe: UnQuote a nvarchar() string and use it as a table name Pin
Shameel4-Jul-11 4:46
professionalShameel4-Jul-11 4:46 
AnswerRe: UnQuote a nvarchar() string and use it as a table name Pin
PIEBALDconsult4-Jul-11 6:01
mvePIEBALDconsult4-Jul-11 6:01 
AnswerRe: UnQuote a nvarchar() string and use it as a table name Pin
Niladri_Biswas4-Jul-11 17:03
Niladri_Biswas4-Jul-11 17:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.