On Tue, Aug 15, 2023 at 1:50 PM Daniele Sassoli
<
daniele...@gmail.com> wrote:
>
> Hi Clark,
>
> On Tuesday, 15 August 2023 at 13:14:42 UTC-7 Clark Boylan wrote:
>
> Hello,
>
> I have a user that has starred more than 1024 items. When they try to
> list their starred changes they get this error "Error 400 (Bad
> Request): too many terms in query: 1193 terms (max = 1024)". The main
> issue for the user is that they cannot find the starred items in order
> to unstar them to get back under the limit.
>
> It looks like we can increase index.maxTerms from the default of 1024
> to some value over 1193. The documentation warns that search terms are
> expensive in terms of performance. Is there a general recommendation
> for setting this value? Is it memory or cpu limited? Maybe both? I
> think we're likely to increase this configuration value at least
> temporarily to allow the user to clean up their stars.
>
>
> I'm not sure of the answer to the specific question, but sounds like a potential
> workaround would be for the Gerrit admin to delete at least some of the stars
> for this user. Assuming you're on a noteDB version of gerrit, you can do this by
> going to `All-Users.git` and doing a
> `git update-ref -d refs/starred-changes/<shard-id>/<change-num>/<account number>`.
to be working so far. That won't prevent someone from starring even