update flags
This commit is contained in:
parent
9d664898ff
commit
b1fe08fcf6
1 changed files with 2 additions and 1 deletions
|
|
@ -120,7 +120,8 @@
|
||||||
select id, fid, phone
|
select id, fid, phone
|
||||||
from signals_phones_map
|
from signals_phones_map
|
||||||
where fid is not null
|
where fid is not null
|
||||||
and (calculated_at is not null and calculated_at < searched_at)
|
and calculated_at is not null
|
||||||
|
and calculated_at < (current_date - make_interval(days => #{interval}))
|
||||||
and id > #{lastId}
|
and id > #{lastId}
|
||||||
order by id
|
order by id
|
||||||
limit #{batchSize}
|
limit #{batchSize}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue