Click here to Skip to main content
15,915,093 members
Home / Discussions / Database
   

Database

 
AnswerRe: MySQL - Update a table from same table using SELECT Pin
User 1106097917-Jul-16 1:37
User 1106097917-Jul-16 1:37 
GeneralRe: MySQL - Update a table from same table using SELECT Pin
Jassim Rahma17-Jul-16 3:00
Jassim Rahma17-Jul-16 3:00 
GeneralRe: MySQL - Update a table from same table using SELECT Pin
User 1106097917-Jul-16 3:11
User 1106097917-Jul-16 3:11 
AnswerRe: MySQL - Update a table from same table using SELECT Pin
Bernhard Hiller18-Jul-16 21:18
Bernhard Hiller18-Jul-16 21:18 
GeneralRe: MySQL - Update a table from same table using SELECT Pin
Mycroft Holmes18-Jul-16 22:05
professionalMycroft Holmes18-Jul-16 22:05 
QuestionError: Conversion failed when converting the varchar value Pin
Richard Andrew x648-Jul-16 10:39
professionalRichard Andrew x648-Jul-16 10:39 
AnswerRe: Error: Conversion failed when converting the varchar value Pin
Jörgen Andersson8-Jul-16 12:37
professionalJörgen Andersson8-Jul-16 12:37 
GeneralRe: Error: Conversion failed when converting the varchar value Pin
Richard Andrew x648-Jul-16 12:44
professionalRichard Andrew x648-Jul-16 12:44 
AnswerRe: Error: Conversion failed when converting the varchar value Pin
Mycroft Holmes8-Jul-16 13:54
professionalMycroft Holmes8-Jul-16 13:54 
GeneralRe: Error: Conversion failed when converting the varchar value Pin
Richard Andrew x648-Jul-16 14:22
professionalRichard Andrew x648-Jul-16 14:22 
GeneralRe: Error: Conversion failed when converting the varchar value Pin
Mycroft Holmes8-Jul-16 21:21
professionalMycroft Holmes8-Jul-16 21:21 
GeneralRe: Error: Conversion failed when converting the varchar value Pin
Richard Andrew x649-Jul-16 4:27
professionalRichard Andrew x649-Jul-16 4:27 
GeneralRe: Error: Conversion failed when converting the varchar value Pin
Mycroft Holmes9-Jul-16 11:31
professionalMycroft Holmes9-Jul-16 11:31 
GeneralRe: Error: Conversion failed when converting the varchar value Pin
Richard MacCutchan8-Jul-16 22:50
mveRichard MacCutchan8-Jul-16 22:50 
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 

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.