[Question posted by a user on YugabyteDB Community Slack]
I’m trying to set enable_nestloop permanently as a g-flag. How can I set these PostgreSQL config options?
PostgreSQL parameters can be set with the [--ysql_pg_conf][1] flag as comma separated like ysql_pg_conf=enable_nestloop=false
Related
[Question posted by a user on YugabyteDB Community Slack]
Can somebody explain to me how to work with indexes metadata in YCQL?
I found this article: https://docs.yugabyte.com/preview/api/ycql/ddl_create_index/.
And I can't create example INDEX with WHERE condition with this exception:
com.datastax.driver.core.exceptions.SyntaxError: Feature Not Supported
CREATE INDEX idx ON orders (warehouse_id) WHERE warehouse_id < 100
^^^^^^
(ql error -14)
Server: YCQL 3.9.0
Driver: Yugabyte CQL Java Driver 3.8.2
YugabyteDB 2.4.4.0.
You need to upgrade to 2.6.x at a minimum to have that feature. After you upgrade you'll be able to create the index.
[Question posted by a user on YugabyteDB Community Slack]
Is it possible to work with the Postgres tables using Spark-connector? Write and read to a Yugabyte Postgres?
Yes, it is possible to read and write in YugabyteDB through the JDBC Spark connector. You can follow the Spark documentation as is.
Because YugabyteDB is PostgreSQL-compliant most PostgreSQL connectors should work just fine.
[Question posted by a user on YugabyteDB Community Slack]
I'm loading data into one table and see this on tables view on web console
Total: 2.54G
Consensus Metadata: 154.7K
WAL Files: 15.00G
SST Files: -12.46G
SST Files Uncompressed: 4.00G
Why is there a negative value for SST Files?
YugabyteDB version is 2.6.7.0 in a single node database.
This was fixed in the 2.8 branch. Specifically this commit: https://github.com/yugabyte/yugabyte-db/commit/a8152fa9a98fce7eb37cd6c87244ed7bd29a5965
[Question posted by a user on YugabyteDB Community Slack]
Is there a way to set wal_level = logical instead of replica in YugabyteDB? I’m looking to implement CDC so I can synchronize other systems with the changes.
Note that YugabyteDB doesn’t reuse the PostgreSQL storage engine & replication mechanism, but has built its own. And it doesn’t support setting wal_level=logical.
Currently, CDC support is in the works https://github.com/yugabyte/yugabyte-db/issues/9019.
[Question posted by a user on YugabyteDB Community Slack]
How are custom types CREATE TYPE .. UDT stored in rocksdb underneath ?
They are stored in rocksdb as a serialized map or struct.