循环请求。提出要求超过15小时

时间:2019-04-25 07:30:36

标签: postgresql

有一个循环。即使限制为100也不会产生结果(等待15分钟以上)

限制10〜5分钟 exploring.depesz.com/s/PpO6我听不懂。你能帮忙吗?

SELECT all_correct,
       real_cadastre_number,
       spec_note_factal_absent,
       ao_1_formalname,
       ao_1_node_id,
       type_property,
       exam_card,
       linked_exam_card_numbers,
       type_of_law,
       subject_of_law,
       spec_note_invalid_exam_card,
       spec_note_additional_notes
FROM analytics.import_property_objects ipo
  LEFT JOIN protected.cadastral_properties cp ON ipo.linked_exam_card_numbers = cp.id::text
WHERE ipo.all_correct ilike '%ыявленный%'
  AND ipo.cadastre_number IS NULL
  AND ipo.duplicate_exam_card_number IS NULL
  AND ipo.exam_card NOT IN (SELECT cp.id::text
                            FROM protected.cadastral_properties)
  AND (ipo.spec_note_factal_absent IS NULL 
       OR ipo.spec_note_factal_absent ilike 'НЕТ' 
       OR ipo.spec_note_factal_absent ilike 'нет')

0 个答案:

没有答案