Giter VIP home page Giter VIP logo

Comments (4)

Smoles avatar Smoles commented on July 30, 2024

So I think I've figured out the reason for the difference in behavior. It looks like when you pass in a connection string to the CassandraContext it sets CompressCqlQueries to a different default value. In the ConnectionBuilder.InitializeConnectionString() method when it checks for "Compress CQL Queries", if it's not found it then defaults to true. However, the ConnectionBuilder() constructor that takes a series of parameters defaults this value to false. I would think that in all cases it should be defaulted to false when not specified.

        if (!pairs.ContainsKey("Compress CQL Queries"))
        {
            CompressCqlQueries = true;
        }
        else
        {
            string compressCqlQueriesValue = pairs["Compress CQL Queries"];

            // YES or TRUE is a positive response everything else is a negative response
            CompressCqlQueries = String.Equals("yes", compressCqlQueriesValue, StringComparison.OrdinalIgnoreCase) || String.Equals("true", compressCqlQueriesValue, StringComparison.OrdinalIgnoreCase);
        }

from fluentcassandra.

Smoles avatar Smoles commented on July 30, 2024

One other note. It looks like ConnectionBuilder.GetConnectionString() is not appending the "Compress CQL Queries" option to the connection string. Not sure if this was intentional but I would think that it should be included.

from fluentcassandra.

nberardi avatar nberardi commented on July 30, 2024

Yeah I had an issue getting the compression to work. I must have just corrected the default constructor and not everything else. I will make this consistent in the next push.

from fluentcassandra.

nberardi avatar nberardi commented on July 30, 2024

The latest code should reflect support for compression and normalization of ConnectionBuilder settings.

from fluentcassandra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.