Skip to content


Browse files Browse the repository at this point in the history
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 0c2ea8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/SPDatabaseViewController.m
Expand Up @@ -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
Expand Down

0 comments on commit 0c2ea8b

Please sign in to comment.