diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-18 08:18:33 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-18 08:18:33 +0000 |
commit | b54a768bc63b01475a79426ea519d22217a001c5 (patch) | |
tree | 27b6124e2d7488f7a7c05c69de79fee720f96e32 /Source/CustomQuery.m | |
parent | e1af7c62ee26b33be9ced00561bda8873ada8fc6 (diff) | |
download | sequelpro-b54a768bc63b01475a79426ea519d22217a001c5.tar.gz sequelpro-b54a768bc63b01475a79426ea519d22217a001c5.tar.bz2 sequelpro-b54a768bc63b01475a79426ea519d22217a001c5.zip |
• some tiny improvements to speed up queryString:
- cache the function pointer for delegate willPerformQuery:
- if Console Log window is NOT visible suppress reloadData and scrolling to last line (this speeds it up remarkably); if user opens the Console log window it will be synchronized
- timeIntervall for execution time will be divide by CLOCKS_PER_SEC in [NSString stringForTimeInterval]
- removed for utf8 enc in cString the return UTF8String (no significant difference)
• now execution time shows only the time for mysql_real_query
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 495f6b20..b59fe084 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -585,26 +585,26 @@ if (totalAffectedRows==1) { [affectedRowsText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"1 row affected in total, by %i queries taking %@", @"text showing one row has been affected by multiple queries"), totalQueriesRun, - [NSString stringForTimeInterval:executionTime] + [NSString stringForTimeInterval:executionTime intervalInClocks:YES] ]]; } else { [affectedRowsText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"%i rows affected in total, by %i queries taking %@", @"text showing how many rows have been affected by multiple queries"), totalAffectedRows, totalQueriesRun, - [NSString stringForTimeInterval:executionTime] + [NSString stringForTimeInterval:executionTime intervalInClocks:YES] ]]; } } else { if (totalAffectedRows==1) { [affectedRowsText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"1 row affected, taking %@", @"text showing one row has been affected by a single query"), - [NSString stringForTimeInterval:executionTime] + [NSString stringForTimeInterval:executionTime intervalInClocks:YES] ]]; } else { [affectedRowsText setStringValue:[NSString stringWithFormat:NSLocalizedString(@"%i rows affected, taking %@", @"text showing how many rows have been affected by a single query"), totalAffectedRows, - [NSString stringForTimeInterval:executionTime] + [NSString stringForTimeInterval:executionTime intervalInClocks:YES] ]]; } |