[ 
https://issues.apache.org/jira/browse/TRAFODION-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110502#comment-16110502
 ] 

ASF GitHub Bot commented on TRAFODION-647:
------------------------------------------

GitHub user CoderSong2015 opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/1193

    [TRAFODION-647]Make threshold of compression configurable

    In Windows,you need to modify the registry to set the compression threshold.
    In Linux,you need to set the threshold by DSN file like:
    [Default_DataSource]
    ...
    Compression = balance
    Compressionlimits = 3000
    ...
    
    You also can config it by connection string like:
    "DSN=Default_DataSource;USER=XX;PWD=XXX;Compressionlimits=3000"


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/CoderSong2015/incubator-trafodion master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/1193.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1193
    
----
commit 82479353930649b13ce2c19cee17905032bf27eb
Author: CoderSong2015 <[email protected]>
Date:   2017-08-02T05:17:50Z

    Make threshold of compression configurable in linux

commit c508372fca9c0917a2676f9d75ee0533aa00ce9b
Author: CoderSong2015 <[email protected]>
Date:   2017-08-02T05:25:22Z

    Make threshold of compression configurable in Windows

----


> LP Bug: 1371452 - allow user to set starting compress threshold value in odbc 
> driver
> ------------------------------------------------------------------------------------
>
>                 Key: TRAFODION-647
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-647
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: client-odbc-linux, client-odbc-windows, 
> connectivity-dcs, connectivity-mxosrvr
>            Reporter: Daniel Lu
>            Assignee: Daniel Lu
>
> Currently, driver compression is turned on by the DSN setting 
> "Compression=?", but still, if the sending buffer size is too small, we do 
> not compress it.  because in this case the time would be taken by 
> compress+extract code, very possible longer than actually transmit time of 
> the small buffer.  so we have a hard code threshold value for this in driver 
> and server. but we know what is the best value for this depend on actual H/W 
> and network delay.  so hard code is not a good option. we need to externalize 
> it to outside user. for driver, we can put it in DSN setting, but for server 
> side, a new property is required for DCS server, we need consider about it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to