generic typeahead repository is growing on every app start

61 views
Skip to first unread message

dernasherbrezon

unread,
Apr 6, 2012, 3:26:47 PM4/6/12
to Cleo
Hi Cleo Team,

I took Company example and implemented it in my app. Then I noticed
that every time app starts, homedir size is growing. Seems like it
creates segments for GenericTypeahead on every initialization.

Config is the same as in example:
https://github.com/linkedin/cleo/blob/master/src/examples/resources/generic-config/i001.config

GenericTypeahead initialization routine is the same as in example:
https://github.com/linkedin/cleo/blob/master/src/examples/java/cleo/examples/CompanyTypeahead.java

Could you please advise?

Best Regards

Jingwei

unread,
Apr 9, 2012, 1:50:24 PM4/9/12
to Cleo
Hi,

Upon restart, cleo will do some compaction to re-claim 1 or 2
fragmented segments. During this process, new segments may be
generated. However, the total number of segments will stop to grow
over time. You can try to restart your application a few times, then
you will see that the number of segments will not change (if you do
not index new elements).

Best,

Jingwei

On Apr 6, 12:26 pm, dernasherbrezon <dernasherbre...@gmail.com> wrote:
> Hi Cleo Team,
>
> I took Company example and implemented it in my app. Then I noticed
> that every time app starts, homedir size is growing. Seems like it
> creates segments for GenericTypeahead on every initialization.
>
> Config is the same as in example:https://github.com/linkedin/cleo/blob/master/src/examples/resources/g...
>
> GenericTypeahead initialization routine is the same as in example:https://github.com/linkedin/cleo/blob/master/src/examples/java/cleo/e...
Reply all
Reply to author
Forward
0 new messages