Yes Gihan. You are correct. We initially thought of defining indexing
properties in stream definition itself so the index properties are sent to
BAM when the stream format is published. But we then came to conclusion
that indexing properties are not part of the stream definition so it's not
better to change the existing format.


On Wed, Aug 7, 2013 at 12:07 PM, Gihan Anuruddha <[email protected]> wrote:

> Hi Inosh,
>
> There can be a situation that we might need to use secondary indexes
> without any toolboxes.  How we define secondary indexes in such a situation
> ?
>
> Regards,
> Gihan
>
>
> On Tue, Aug 6, 2013 at 7:27 PM, Inosh Goonewardena <[email protected]> wrote:
>
>> Hi,
>>
>> I am working on implementing BAM events & activity search feature. To
>> support the search we need to index some predefined stream properties. We
>> can either use cassandra secondary indexes or we can use our own custom
>> indexes(secondary indexes are not recommended for columns having high
>> cardinality values). Anyway we need to defined the index properties
>> somehow, so we thought of define those in BAM toolbox.
>>
>> In BAM toolbox there is already a configuration file named
>> 'streams.properties'.
>>     .tbox
>>         |-- analytics <folder>
>>                 .
>>                 .
>>         |-- dashboard <folder>
>>                 .
>>                 .
>>         |-- streamDefn <folder>
>>                 |-- defn_1 <file>
>>                 |-- defn_2 <file>
>>                 |-- *streams.properties <file>*
>>
>> 'streams.properties' file is currently use to keep meta information about
>> stream definitions. So I thought of adding two new properties to
>> 'stream.properties' to keep indexing information like belows.
>>
>> *
>> streams.definitions.defn1.secondary.indexes=meta_host,payload_service_name,payload_operation_name
>> streams.definitions.defn1.custom.indexes=correlation_bam_activity_id*
>>
>> WDYT???
>>
>> --
>> Regards,
>>
>> Inosh Goonewardena
>> Associate Technical Lead- WSO2 Inc.
>> Mobile: +94779966317
>>
>
>
>
> --
> ---
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>



-- 
Regards,

Inosh Goonewardena
Associate Technical Lead- WSO2 Inc.
Mobile: +94779966317
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to