Changes between Version 1 and Version 2 of jmdBulkLoad


Ignore:
Timestamp:
02/19/15 11:16:42 (10 years ago)
Author:
joe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jmdBulkLoad

    v1 v2  
    4848 
    4949{{{ 
    50 INSERT INTO sunum_queue (  
    51 SELECT NEXTVAL('sunum_queue_key'::regclass), lev1.sunum,  'aia.lev1' AS series_name, NOW() AS TIMESTAMP, lev1.recnum 
    52 FROM aia.lev1 LEFT OUTER JOIN sunum_queue ON lev1.sunum = sunum_queue.sunum 
     50SELECT nextval('sunum_queue_key'::regclass), lev1.sunum,  'aia.lev1 bulk' AS series_name, now() as timestamp, lev1.recnum   
     51FROM vso.aia__lev1 LEFT OUTER JOIN sunum_queue ON lev1.sunum = sunum_queue.sunum  
    5352WHERE sunum_queue.sunum IS NULL and WAVELNTH=304 and T_REC_INDEX IN ( 
    54531135814444,1135836044,1135857644,1135879244,1135900844,1135922444,1135944044 
     
    5756}}} 
    5857 
    59 Note that this should only be used after the other options.  Due to the way that the JMD pulls records out of the queue table, more recent observations will take precidence. 
     58Note that this query does not have 'prime key logic', and if used for times from 2010 could cause multiple images to be retrieved for each observation.  If you have the VSO shadow tables built, you can do: 
     59 
     60{{{ 
     61INSERT INTO sunum_queue (  
     62SELECT nextval('sunum_queue_key'::regclass), aia__lev1.sunum,  'aia.lev1 bulk' AS series_name, now() as timestamp, aia__lev1.recnum   
     63FROM vso.aia__lev1 LEFT OUTER JOIN sunum_queue ON aia__lev1.sunum = sunum_queue.sunum  
     64WHERE sunum_queue.sunum IS NULL and wave=304 and T_REC_INDEX IN ( 
     651135814444,1135836044,1135857644,1135879244,1135900844,1135922444,1135944044 
     66... 
     67)); 
     68}}} 
     69 
     70 
     71Note that this technique should only be used after the other options.  Due to the way that the JMD pulls records out of the queue table, more recent observations will take precidence. 
     72