Answered Release Edge Events

  • Friday, February 03, 2012 3:29 PM
     
     

    Hello,

    I use edge events for my order stream, in my query I just need the active orders but my input adapter enqueues everything from the orders stream by design because I might use the inactive or cancelled orders in future.

    So my input adapter is a point adapter and I use the ToSignal method to convert the events to edge events so they'd be always available for any join.

    My problem is, if I cancel an order it still goes to streaminsight as a cancelled order and waits in the dictionary or collection or whatever in server anyway..

    What I need is, if an order cancelled I want to take it out of the other active orders (edge events).

    In my linq query I filter them with "where order.state == "Active" " but it still uses memory to keep start events for inactive orders.

     

    Thanks in advance.

All Replies

  • Sunday, February 05, 2012 8:07 PM
     
     

    Why are you using ToSignal? How are you matching the source stream with the clip stream? Typically, ToSignal would be used for something that occassionally reports a value and you always want to have the last known value available for any calculations.

    As for what you are doing ... how does the order state of an active event get changed? Is the order state change enqueued as a separate event? Is there any way that you can use AlterEventDuration() to "expire" the cancelled orders?


    DevBiker (aka J Sawyer)
    My Blog
    My Bike - Concours 14

    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.
  • Tuesday, February 07, 2012 11:54 AM
     
     Answered
    • Marked As Answer by Stylus.vb Tuesday, February 07, 2012 11:54 AM
    •