Don't query content table when not required
When only requesting the c_name field, limit the SQL query to the quick table.pull/201/head
parent
95d0a18c08
commit
7c00ad7110
|
@ -107,6 +107,7 @@ static GCSStringFormatter *stringFormatter = nil;
|
||||||
while ((field = [fields nextObject]))
|
while ((field = [fields nextObject]))
|
||||||
{
|
{
|
||||||
fieldName = [field columnName];
|
fieldName = [field columnName];
|
||||||
|
|
||||||
if (![fieldName isEqualToString: @"c_name"])
|
if (![fieldName isEqualToString: @"c_name"])
|
||||||
[quickFieldNames addObject: fieldName];
|
[quickFieldNames addObject: fieldName];
|
||||||
}
|
}
|
||||||
|
@ -116,7 +117,9 @@ static GCSStringFormatter *stringFormatter = nil;
|
||||||
while ((field = [fields nextObject]))
|
while ((field = [fields nextObject]))
|
||||||
{
|
{
|
||||||
fieldName = [field columnName];
|
fieldName = [field columnName];
|
||||||
[contentFieldNames addObject: fieldName];
|
|
||||||
|
if (![fieldName isEqualToString: @"c_name"])
|
||||||
|
[contentFieldNames addObject: fieldName];
|
||||||
}
|
}
|
||||||
|
|
||||||
folderId = [_folderId copy];
|
folderId = [_folderId copy];
|
||||||
|
|
Loading…
Reference in New Issue