Use salting is just a convenience method so we don't always need to call SaltingUtil.useSalting on a table.getBucketNum every time we want to know if the table is using salting. Plus this value is not being transmitted over the wire, it will not affect the performance.

Sent from my iPad

Thanks
Tony

On Apr 15, 2013, at 1:31 PM, "James Taylor" <notifications@github.com<mailto:notifications@github.com>> wrote:


In src/main/java/com/salesforce/phoenix/schema/PTableImpl.java:

> @@ -69,13 +71,15 @@
>      private Map<String, PColumnFamily> familyByString;
>      private ListMultimap<String,PColumn> columnsByName;
>      private String pkName;
> +    private int bucketNum;


Why do we need both bucketNum and useSalting?

—
Reply to this email directly or view it on GitHub<https://github.com/forcedotcom/phoenix/pull/139/files#r3801240>.