From 974049dd4fbe6b42c1a8349f72ea355cf6a38634 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Fri, 16 Oct 2009 19:36:36 +0000 Subject: - 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 --- Source/SPQueryController.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/SPQueryController.h') diff --git a/Source/SPQueryController.h b/Source/SPQueryController.h index 8a350a32..d030014a 100644 --- a/Source/SPQueryController.h +++ b/Source/SPQueryController.h @@ -58,7 +58,6 @@ } @property (readwrite, retain) NSFont *consoleFont; -@property (readwrite) BOOL allowConsoleUpdate; + (SPQueryController *)sharedQueryController; @@ -72,6 +71,9 @@ - (void)updateEntries; +- (BOOL) allowConsoleUpdate; +- (void) setAllowConsoleUpdate:(BOOL)allowUpdate; + - (void)showMessageInConsole:(NSString *)message; - (void)showErrorInConsole:(NSString *)error; -- cgit v1.2.3