How can we use a single CREATE PROJECTION statement to create the correct number of buddy projections based on the k-safety of the cluster? I have a deployment script that creates tables and projections with segmentation. When deployed in a 3-node cluster with k-safety=1, I would like the script to create a pair of buddy projections, and when deployed in a single node instance with k-safety=0, the script should only create a single projection.
Creating 2 buddy projections with offset=1 irrespective of k-safety works, but that results in 2 identical copies of the projection in a single node, just taking disk space and extra load time. I looked at projections created by dbdesigner as well. DBD seems to be adding CREATE PROJECTION statements for each buddy projection required which is not ideal for maintaining a single deployment script for different cluster size.
Thanks
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.