I fixed this by using Stored Procedures.  I store the last run dates in my 
SQL database and group them by month so as not to overload my under powered 
VM's.

So far so good this approach works much better than the column strategy.

On Monday, April 20, 2015 at 10:59:31 AM UTC-4, Jörg Prante wrote:
>
> The column strategy is a community effort, it can manipulate SQL statement 
> where clauses with timestamp filter.
>
> I do not have enough knowledge about column strategy.
>
> You are correct, at node restart, a river does not know from where to 
> restart. There is no method to resolve this within river logic.
>
> Jörg
>
>
> On Mon, Apr 20, 2015 at 2:11 PM, GWired <garrett...@gmail.com 
> <javascript:>> wrote:
>
>> I can't look at the feeder setup now but I could in the future.
>>
>> Is my SQL statement incorrect?
>>
>> Should I be doing something differently?
>>
>> Does the river not utilize created_at and updated_at in this setup?  I 
>> don't have a where clause because I thought using the column strategy it 
>> would take that in to account.
>>
>> This is an example of what I see in SQL server:
>>
>> SELECT id as _id, * FROM [MyDBName].[dbo].[MyTableName] WHERE ({fn 
>> TIMESTAMPDIFF(SQL_TSI_SECOND,@P0,"createddate")} >= 0)  
>>
>> Which when i populate the @P0 with a timestamp it seems to be working 
>> fine.
>>
>> On a restart I'm guessing it doesn't know when to start.
>>
>> Any way that I can check values in elasticsearch within the column 
>> strategy?  Such as using Max(CreatedDate) so that it can start there?
>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to elasticsearc...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elasticsearch/06e9ce54-8b71-4337-971b-440a5b56f00d%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/elasticsearch/06e9ce54-8b71-4337-971b-440a5b56f00d%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/8ee4db61-d7af-459f-9152-8c808d8f3f9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to