Click here to Skip to main content
15,886,518 members
Home / Discussions / Database
   

Database

 
GeneralRe: Error: Conversion failed when converting the varchar value Pin
Richard Andrew x649-Jul-16 4:28
professionalRichard Andrew x649-Jul-16 4:28 
Questionsql linq, data duplication on 1 particular record Pin
jkirkerx7-Jul-16 14:06
professionaljkirkerx7-Jul-16 14:06 
AnswerRe: sql linq, data duplication on 1 particular record Pin
jkirkerx8-Jul-16 8:03
professionaljkirkerx8-Jul-16 8:03 
QuestionData duplication on multiple fields Pin
VK195-Jul-16 9:19
VK195-Jul-16 9:19 
AnswerRe: Data duplication on multiple fields Pin
Jörgen Andersson5-Jul-16 11:14
professionalJörgen Andersson5-Jul-16 11:14 
AnswerRe: Data duplication on multiple fields Pin
Mycroft Holmes5-Jul-16 17:21
professionalMycroft Holmes5-Jul-16 17:21 
AnswerRe: Data duplication on multiple fields Pin
jonyj18-Jul-16 2:49
jonyj18-Jul-16 2:49 
GeneralSQL Transactions - Torn apart in old code Pin
HobbyProggy5-Jul-16 1:12
professionalHobbyProggy5-Jul-16 1:12 
Hey guys,

while i was doing some performance tests on my software i came across a fascinating result.
A lot of my DB query execution code uses transactions since if there is an error i have to undo the canges on the database. So now i found that the transaction creation and commit takes roughly 2 the cost of the actual executeQuery(). I also have a isDBAvailable check before every DB query gets fired to cope with connection problems. Now i saw i used to do the available check also with a transaction, which is in fact quite an overload for just checking a SELECT 0 executing as scalar.

So now im not sure if i should stick to the transaction there, any pros or cons? Should i just execute the scalar without using a transaction, what would you guys do? I mean it actually costs ~20ms so far using a transaction and currently im not sure if i need it or not. Little bit stuck right here cause i don'T know what i was thinking back then Smile | :)

Discuss?

[ed. Moved to Database discussion forum]
Edit: Thanks for moving, i see that the term technical discussion was a bit overshot in this!
Rules for the FOSW ![^]
if(this.signature != "")
{
    MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
    MessageBox.Show("404-Signature not found");
}


modified 5-Jul-16 7:57am.

GeneralRe: SQL Transactions - Torn apart in old code Pin
Marc Clifton5-Jul-16 1:15
mvaMarc Clifton5-Jul-16 1:15 
GeneralRe: SQL Transactions - Torn apart in old code Pin
HobbyProggy5-Jul-16 1:18
professionalHobbyProggy5-Jul-16 1:18 
GeneralRe: SQL Transactions - Torn apart in old code Pin
Dave Kreskowiak5-Jul-16 1:51
mveDave Kreskowiak5-Jul-16 1:51 
GeneralRe: SQL Transactions - Torn apart in old code Pin
HobbyProggy5-Jul-16 1:56
professionalHobbyProggy5-Jul-16 1:56 
QuestionTime calculation Pin
AVPRF4-Jul-16 20:37
AVPRF4-Jul-16 20:37 
AnswerRe: Time calculation Pin
Mycroft Holmes4-Jul-16 21:01
professionalMycroft Holmes4-Jul-16 21:01 
GeneralRe: Time calculation Pin
AVPRF5-Jul-16 19:47
AVPRF5-Jul-16 19:47 
GeneralRe: Time calculation Pin
Mycroft Holmes6-Jul-16 12:40
professionalMycroft Holmes6-Jul-16 12:40 
GeneralRe: Time calculation Pin
AVPRF6-Jul-16 19:02
AVPRF6-Jul-16 19:02 
QuestionHow to Search for names in MySQL Pin
Jassim Rahma2-Jul-16 13:06
Jassim Rahma2-Jul-16 13:06 
AnswerRe: How to Search for names in MySQL Pin
Mycroft Holmes2-Jul-16 14:10
professionalMycroft Holmes2-Jul-16 14:10 
QuestionNeed guidance: duplicate oracle db to another Pin
Foothill30-Jun-16 10:48
professionalFoothill30-Jun-16 10:48 
AnswerRe: Need guidance: duplicate oracle db to another Pin
Chris Quinn30-Jun-16 21:26
Chris Quinn30-Jun-16 21:26 
GeneralRe: Need guidance: duplicate oracle db to another Pin
Jörgen Andersson30-Jun-16 22:02
professionalJörgen Andersson30-Jun-16 22:02 
GeneralRe: Need guidance: duplicate oracle db to another Pin
Foothill1-Jul-16 3:16
professionalFoothill1-Jul-16 3:16 
AnswerRe: Need guidance: duplicate oracle db to another Pin
Jörgen Andersson30-Jun-16 22:21
professionalJörgen Andersson30-Jun-16 22:21 
GeneralRe: Need guidance: duplicate oracle db to another Pin
Foothill1-Jul-16 3:14
professionalFoothill1-Jul-16 3:14 

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.