worryg0d commented on issue #1918: URL: https://github.com/apache/cassandra-gocql-driver/issues/1918#issuecomment-3589104232
Hi @vikingUnet This is completely normal behaviour for gocql, as this is actually part of the mechanism that allows the driver to determine which system keyspace to use: `system` or `system_schema`. You can find its code [here](https://github.com/apache/cassandra-gocql-driver/blob/0089073b21049a32fa380f4b626752378896de86/session.go#L356): ``` func checkSystemSchema(control *controlConn) (bool, error) { iter := control.query("SELECT * FROM system_schema.keyspaces") if err := iter.err; err != nil { if errf, ok := err.(*errorFrame); ok { if errf.code == ErrCodeSyntax { return false, nil } } return false, err } return true, nil } ``` So this basically just tries to query `system_schema.keyspaces`, and if there is no such keyspace, it will just return true, which means that gocql should use the older one This mechanism is only triggered during session initialisation, so it doesn't have a big impact on performance -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
