diff options
author | rowanbeentje <rowan@beent.je> | 2010-01-02 01:52:38 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-01-02 01:52:38 +0000 |
commit | e42f000e98e9ff33a91a86a3e2a0cf04c6778102 (patch) | |
tree | ab52b693e5fe7122e10536b626f18b1a48399794 /Source/SPConstants.h | |
parent | 7753ee58924ee3d8da9177a1c318a28dd0bcd6d9 (diff) | |
download | sequelpro-e42f000e98e9ff33a91a86a3e2a0cf04c6778102.tar.gz sequelpro-e42f000e98e9ff33a91a86a3e2a0cf04c6778102.tar.bz2 sequelpro-e42f000e98e9ff33a91a86a3e2a0cf04c6778102.zip |
- With the improved row count support and behaviour, replace the old "Fetch correct row count" preference with a new Table row counts query level (never, only for small tables, always), defaulting to only for small tables - boundary currently set to 5MB. This addresses Issue #500
Diffstat (limited to 'Source/SPConstants.h')
-rw-r--r-- | Source/SPConstants.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h index 73f363c8..a4f844d4 100644 --- a/Source/SPConstants.h +++ b/Source/SPConstants.h @@ -48,6 +48,13 @@ typedef enum { SPSSHTunnelConnection = 2 } SPConnectionType; +// Table row count query usage levels +typedef enum { + SPRowCountFetchNever = 0, + SPRowCountFetchIfCheap = 1, + SPRowCountFetchAlways = 2 +} SPRowCountQueryUsageLevels; + // Kill mode constants extern NSString *SPKillProcessQueryMode; extern NSString *SPKillProcessConnectionMode; @@ -83,7 +90,8 @@ extern NSString *SPReloadAfterAddingRow; extern NSString *SPReloadAfterEditingRow; extern NSString *SPReloadAfterRemovingRow; extern NSString *SPLoadBlobsAsNeeded; -extern NSString *SPFetchCorrectRowCount; +extern NSString *SPTableRowCountQueryLevel; +extern NSString *SPTableRowCountCheapSizeBoundary; extern NSString *SPNewFieldsAllowNulls; extern NSString *SPLimitResults; extern NSString *SPLimitResultsValue; |