Click here to Skip to main content
15,881,248 members
Home / Discussions / Database
   

Database

 
QuestionOracle instant client Pin
Muammar©2-Jul-08 1:00
Muammar©2-Jul-08 1:00 
QuestionFinaly I Found it. Compare and synchronize SQL Server database structures and data. Pin
dingoishere2-Jul-08 0:12
dingoishere2-Jul-08 0:12 
AnswerRe: Finaly I Found it. Compare and synchronize SQL Server database structures and data. Pin
Syed Mehroz Alam2-Jul-08 18:44
Syed Mehroz Alam2-Jul-08 18:44 
QuestionPerformance Issue Pin
sujithkumarsl1-Jul-08 19:43
sujithkumarsl1-Jul-08 19:43 
AnswerRe: Performance Issue Pin
Paul Conrad1-Jul-08 20:03
professionalPaul Conrad1-Jul-08 20:03 
GeneralRe: Performance Issue Pin
sujithkumarsl1-Jul-08 20:24
sujithkumarsl1-Jul-08 20:24 
AnswerRe: Performance Issue Pin
N a v a n e e t h1-Jul-08 20:36
N a v a n e e t h1-Jul-08 20:36 
GeneralRe: Performance Issue Pin
sujithkumarsl1-Jul-08 22:04
sujithkumarsl1-Jul-08 22:04 
hi,

check this...

// Change
              WaitHandle[] resetEvents = new WaitHandle[GeCommonConfig.ThreadCount];
              for (int index = 0; index < GeCommonConfig.ThreadCount; index++)
              {
                  resetEvents[index] = new AutoResetEvent(false);
                  ThreadDetails objThreaddetails = new ThreadDetails((AutoResetEvent)resetEvents[index], index.ToString());
                  ThreadPool.QueueUserWorkItem(new WaitCallback(StartProcessing), objThreaddetails);
              }
              WaitHandle.WaitAll(resetEvents);


Here StartProcessing is the method.... in which 80 datatables have been updating...among some are having billions of data...

protected static bool ExecuteQuery(string strQuery, DataSet dataSet, Object lockObject)
{
        try
        {
            lock (lockObject)
            {
                return ExecuteQueryEx(strQuery, dataSet);
            }
        }
        catch
        {

        }
    return false;
}


I have a LockType class in which defined 5 differnt lock objects. according to the query( which all tables are using) the lock is passing to the ExecuteQuery method..

My small attempt...

GeneralRe: Performance Issue Pin
N a v a n e e t h1-Jul-08 22:51
N a v a n e e t h1-Jul-08 22:51 
GeneralRe: Performance Issue Pin
sujithkumarsl1-Jul-08 23:12
sujithkumarsl1-Jul-08 23:12 
GeneralRe: Performance Issue Pin
TheFM2342-Jul-08 4:37
TheFM2342-Jul-08 4:37 
AnswerRe: Performance Issue Pin
Mycroft Holmes2-Jul-08 21:17
professionalMycroft Holmes2-Jul-08 21:17 
GeneralRe: Performance Issue Pin
sujithkumarsl3-Jul-08 0:48
sujithkumarsl3-Jul-08 0:48 
QuestionSQL Server Trigger Pin
irusul1-Jul-08 9:48
irusul1-Jul-08 9:48 
AnswerRe: SQL Server Trigger Pin
Giorgi Dalakishvili1-Jul-08 10:14
mentorGiorgi Dalakishvili1-Jul-08 10:14 
AnswerRe: SQL Server Trigger Pin
Mycroft Holmes1-Jul-08 14:06
professionalMycroft Holmes1-Jul-08 14:06 
AnswerRe: SQL Server Trigger Pin
TheFM2342-Jul-08 4:29
TheFM2342-Jul-08 4:29 
GeneralRe: SQL Server Trigger Pin
Mycroft Holmes2-Jul-08 21:22
professionalMycroft Holmes2-Jul-08 21:22 
QuestionStore Procedure Pin
brettokumar1-Jul-08 1:43
professionalbrettokumar1-Jul-08 1:43 
AnswerRe: Store Procedure Pin
SomeGuyThatIsMe1-Jul-08 2:57
SomeGuyThatIsMe1-Jul-08 2:57 
QuestionHelp In Query Pin
Saiyed Alam1-Jul-08 1:06
Saiyed Alam1-Jul-08 1:06 
AnswerRe: Help In Query Pin
SomeGuyThatIsMe1-Jul-08 3:09
SomeGuyThatIsMe1-Jul-08 3:09 
GeneralRe: Help In Query Pin
Saiyed Alam1-Jul-08 5:27
Saiyed Alam1-Jul-08 5:27 
QuestionConnection: login failed - State 16 Pin
DharperII1-Jul-08 0:52
DharperII1-Jul-08 0:52 
QuestionSql server replication (from 2000 to 2005) Pin
acodman30-Jun-08 23:49
acodman30-Jun-08 23:49 

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.