aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-01-12 00:58:17 +0000
committerrowanbeentje <rowan@beent.je>2010-01-12 00:58:17 +0000
commit21f0846b7ad5f3b1c755ae4f31fd68f6975bda7f (patch)
tree3c9f8a1226cd952e4c4b94099ba97b593e28ea18 /Source
parent703e78c5b147261417718d56281e91603b1e8356 (diff)
downloadsequelpro-21f0846b7ad5f3b1c755ae4f31fd68f6975bda7f.tar.gz
sequelpro-21f0846b7ad5f3b1c755ae4f31fd68f6975bda7f.tar.bz2
sequelpro-21f0846b7ad5f3b1c755ae4f31fd68f6975bda7f.zip
- Move the query for the database structure to a background processing thread, as well as the existing background database connection, for a smoother experience
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 273612de..88578b08 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -682,7 +682,7 @@
notificationName:@"Connected"];
// Query the structure of all databases in the background (mainly for completion)
- [mySQLConnection performSelector:@selector(queryDbStructure) withObject:nil afterDelay:0.5];
+ [NSThread detachNewThreadSelector:@selector(queryDbStructure) toTarget:mySQLConnection withObject:nil];
// Init Custom Query editor with the stored queries in a spf file if given.
[spfDocData setObject:[NSNumber numberWithBool:NO] forKey:@"save_editor_content"];