Preference for a yaml property and MBean. Briefly: – All other secondary index config is defined in yaml. – System properties are more cumbersome to manage in that they’re less structured and commingle JVM configuration with database configuration. – We need an MBean hot property so users can flip to their desired index preference once it’s built without restarting the database. – When hot props are tweaked, it’s easy to follow by updating yaml on disk; but system props set as launch args will disagree in ps output vs. the config in effect at runtime. I also want to highlight the user pain here for the current default. If a user has a 2i index and decides to create an SAI index on the same field, their app will immediately break because the SAI index takes precedence - even if it’s not yet built and unready for querying. Defaulting to SAI in the presence of both index types triggers an outage when new users adopt the feature, which is an awful first taste - and users excited about SAI are most likely to want to transition the indexes they already have. However I’m sympathetic to the fact that for those who have made the leap, it would be undesirable to switch them back to 2i so changing the default in trunk seems fine. - Scott — Mobile On Feb 6, 2025, at 11:42 AM, Caleb Rackliffe <calebrackli...@gmail.com> wrote:
|
- [DISCUSS] Default Selection of 2i Caleb Rackliffe
- Re: [DISCUSS] Default Selection of 2i Jeremiah Jordan
- Re: [DISCUSS] Default Selection of 2i Caleb Rackliffe
- Re: [DISCUSS] Default Selection of 2i C. Scott Andreas
- Re: [DISCUSS] Default Selection of 2i Benedict
- Re: [DISCUSS] Default Selection of ... Jon Haddad
- Re: [DISCUSS] Default Selection... Caleb Rackliffe