Skip to content
Browse files

Don't force relation clear on table update, as it now uses notificati…

…ons to update itself; this will improve table switching speed significantly on laggy connections due to a forced information re-fetch
  • Loading branch information
rowanbeentje committed Jun 23, 2014
1 parent 185a29c commit 0c2ea8b95e4f85470af1e917e0d4560e42f35c3e
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/SPDatabaseViewController.m
@@ -564,11 +564,12 @@ - (void)_loadTableTask
// Clear any views which haven't been loaded as they weren't visible. Note
// that this should be done after reloading visible views, instead of clearing all
// views, to reduce UI operations and avoid resetting state unnecessarily.
// Some views (eg TableRelations) make use of the SPTableChangedNotification and
// so don't require manual clearing.
if (!structureLoaded) [tableSourceInstance loadTable:nil];
if (!contentLoaded) [tableContentInstance loadTable:nil];
if (!statusLoaded) [[extendedTableInfoInstance onMainThread] loadTable:nil];
if (!triggersLoaded) [[tableTriggersInstance onMainThread] resetInterface];
if (!relationsLoaded) [[tableRelationsInstance onMainThread] refreshRelations:self];

// If the table row counts an inaccurate and require updating, trigger an update - no
// action will be performed if not necessary

0 comments on commit 0c2ea8b

Please sign in to comment.
You can’t perform that action at this time.