mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
Add more test data, and fix log ordering
This commit is contained in:
parent
97baf0d11a
commit
2b5f4f1dbe
4 changed files with 62 additions and 4 deletions
|
|
@ -154,10 +154,10 @@ public class Job extends Thread {
|
|||
if(rowNum % nRowsToLog == 0) {
|
||||
rowsInserted += arraySum(insertStatement.executeBatch());
|
||||
dConn.commit();
|
||||
log.info(String.format("%s - Inserted %s of %s notified rows into %s so far",
|
||||
log.info(String.format("%s - Inserted %s of %s notified rows into %s",
|
||||
jobName,
|
||||
rowNum,
|
||||
rowsInserted,
|
||||
rowNum,
|
||||
name));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,5 +49,21 @@
|
|||
OR dest.test_ts = EXCLUDED.test_ts
|
||||
</insert>
|
||||
</job>
|
||||
<job>
|
||||
<name>denormalise</name>
|
||||
<key>select -1 as key</key>
|
||||
<select>select person_id,fname,lname from normalised_personalia p join normalised_first_names f using(fid) join normalised_last_names l using(lid);</select>
|
||||
<insert>
|
||||
INSERT INTO denormalised_personalia(person_id,fname,lname)
|
||||
values(?::integer,?::text,?::text)
|
||||
ON CONFLICT (person_id) DO UPDATE
|
||||
SET
|
||||
fname = EXCLUDED.fname,
|
||||
lname = EXCLUDED.lname
|
||||
WHERE
|
||||
denormalised_personalia.fname is distinct from EXCLUDED.fname
|
||||
OR denormalised_personalia.lname is distinct from EXCLUDED.lname
|
||||
</insert>
|
||||
</job>
|
||||
</jobs>
|
||||
</CopyingApp>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue