aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-10-16 19:36:36 +0000
committerrowanbeentje <rowan@beent.je>2009-10-16 19:36:36 +0000
commit974049dd4fbe6b42c1a8349f72ea355cf6a38634 (patch)
treeb7782aacca3df7a4227710da313aba9e61996e4c /Source/SPQueryController.m
parent71a9ebd8762776e48eaf52615d76b586885c4623 (diff)
downloadsequelpro-974049dd4fbe6b42c1a8349f72ea355cf6a38634.tar.gz
sequelpro-974049dd4fbe6b42c1a8349f72ea355cf6a38634.tar.bz2
sequelpro-974049dd4fbe6b42c1a8349f72ea355cf6a38634.zip
- Improve on r1423 by avoiding stringWithFormat: within the query construction loop, enormously reducing memory usage in big loops
- Use 64k chunks instead of 256k chunks - seems to give *much* better performance, possibly due to MySQL parsing/cache sizes (?) - When restoring the query console to allow updates again after a loop, trigger a refresh of the view if the console is visible
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r--Source/SPQueryController.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m
index 25b972bb..c1e632d1 100644
--- a/Source/SPQueryController.m
+++ b/Source/SPQueryController.m
@@ -54,7 +54,6 @@ static SPQueryController *sharedQueryController = nil;
@implementation SPQueryController
@synthesize consoleFont;
-@synthesize allowConsoleUpdate;
/*
* Returns the shared query console.
@@ -403,6 +402,14 @@ static SPQueryController *sharedQueryController = nil;
return [[self window] validateMenuItem:menuItem];
}
+- (BOOL) allowConsoleUpdate {
+ return allowConsoleUpdate;
+}
+- (void) setAllowConsoleUpdate:(BOOL)allowUpdate {
+ allowConsoleUpdate = allowUpdate;
+ if (allowUpdate && [[self window] isVisible]) [self updateEntries];
+}
+
- (void)updateEntries
{
[consoleTableView reloadData];