-
Global information
- Generated on Mon Jul 26 01:59:26 2021
- Log file: /home/postgres/pg_data/data/pg_log/postgresql-2021-07-26_030000.log
- Parsed 208,305 log entries in 24s
- Log start from 2021-07-26 03:00:00 to 2021-07-26 03:59:01
-
Overview
Global Stats
- 3,253 Number of unique normalized queries
- 54,102 Number of queries
- 1d14h42m32s Total query duration
- 2021-07-26 03:00:00 First query
- 2021-07-26 03:59:01 Last query
- 67 queries/s at 2021-07-26 03:30:45 Query peak
- 1d14h42m32s Total query duration
- 7s492ms Prepare/parse total duration
- 51s160ms Bind total duration
- 1d14h41m33s Execute total duration
- 7,209 Number of events
- 12 Number of unique normalized events
- 6,781 Max number of times the same event was reported
- 0 Number of cancellation
- 0 Total number of automatic vacuums
- 0 Total number of automatic analyzes
- 140 Number temporary file
- 37.58 MiB Max size of temporary file
- 6.21 MiB Average size of temporary file
- 0 Total number of sessions
- 0 sessions at Session peak
- 0ms Total duration of sessions
- 0ms Average duration of sessions
- 54,102 Average queries per session
- 1d14h42m32s Average queries duration per session
- n/a Average idle time per session
- 0 Total number of connections
- 1 Total number of databases
SQL Traffic
Key values
- 67 queries/s Query Peak
- 2021-07-26 03:30:45 Date
SELECT Traffic
Key values
- 29 queries/s Query Peak
- 2021-07-26 03:33:05 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 58 queries/s Query Peak
- 2021-07-26 03:16:50 Date
Queries duration
Key values
- 1d14h42m32s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 26 03 54,102 50ms 1h4m43s 2s574ms 1h23m38s 1h56m41s 3h15m11s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 26 03 18,823 26 5s399ms 42m28s 1h18m6s 3h1m28s Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 26 03 29,173 5,167 13 49 592ms 1m38s 13m6s 19m36s Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 26 03 60 15,284 254.73 0.11% Day Hour Count Average / Second Jul 26 03 0 0.00/s Day Hour Count Average Duration Average idle time Jul 26 03 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 26 03 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 26 03 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 26 03 0 0s Day Hour Mean distance Mean estimate Jul 26 03 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 69.61 MiB Temp Files size Peak
- 2021-07-26 03:36:08 Date
Number of temporary files
Key values
- 3 per second Temp Files Peak
- 2021-07-26 03:36:17 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 26 03 140 869.20 MiB 6.21 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 42 193.53 MiB 3.90 MiB 5.38 MiB 4.61 MiB select resultuid from relevance_keylevels_results order by resultuid desc limit ?), results as ( select distinct on (s.symbolid) kr.resultuid as resultuid, kr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, p.patternname as pattern_name, kr.breakout as breakout, kr.atbaridentified as identified, dtt.timezone as timezone, kr.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when rar.age is not null then rar.age when kr.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when kr.resultuid <= rm.resultuid then ? else ? end as relevant from keylevels_results kr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = kr.symbolid inner join symbols s on kr.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on kr.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join hrspatterns p on kr.patternid = p.patternid inner join downloadersymbolsettings dss on kr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_keylevels_results rar on rar.resultuid = kr.resultuid left join lateral calc_kl_signal_filter (kr.resultuid) newlevels on true where kr.gmttimefound > now() - interval ? and (kr.simulation = ? or kr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or p.patternname in (...)) and (? = ? or kr.patternclassid in (...)) and (? = ? or kr.patternlengthbars <= ?) order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;-
SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = $1 AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ($2 = 0 OR s.timegranularity in ($3)) AND ($4 = 0 OR s.exchange in ($5)) AND ($6 = 0 OR s.symbol in ($7)) AND ($8 = 0 OR p.patternname in ($9)) AND ($10 = 0 OR kr.patternclassid in ($11)) AND ($12 = 0 OR kr.patternlengthbars <= $13) ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = $14 OR relevant = 1) AND ($15 = 0 OR age <= $16) ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:33:49 Duration: 0ms Database: acaweb_fx User: postgres
2 8 47.45 MiB 4.25 MiB 7.90 MiB 5.93 MiB )) and patternclassid = ? and patternlengthbars >= ? and a.patternid & ? > ? and dftt.dayofweek = ? and a.resultuid > ? and c.nonliquid = ? and c.deleted = ? and dss.enabled = ? order by relevant desc, age asc, patternendtime desc, qtp desc limit ?;-
)) AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.resultuid > $5 AND c.nonliquid = $6 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:33:39 Duration: 0ms Database: acaweb_fx User: postgres
3 4 17.50 MiB 3.71 MiB 5.03 MiB 4.38 MiB select resultuid from relevance_fibonacci_results order by resultuid desc limit ?), results as ( select distinct on (s.symbolid) fr.resultuid as resultuid, fr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, fr.pattern as pattern_name, fr.timed as timed, fr.patternendtime as identified, dtt.timezone as timezone, fr.patternlengthbars as length, g.basegroupname, case when rar.age is not null then rar.age when fr.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when fr.resultuid <= rm.resultuid then ? else ? end as relevant from fibonacci_results fr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = fr.symbolid inner join symbols s on fr.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on fr.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join downloadersymbolsettings dss on fr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_fibonacci_results rar on rar.resultuid = fr.resultuid where fr.gmttimefound > now() - interval ? and (fr.simulation = ? or fr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or fr.pattern in (...)) and (? = ? or fr.patternlengthbars <= ?) and (? = ? or (? = ? and fr.timed > cast(? as timestamp)) or (? = ? and fr.timed < cast(? as timestamp))) order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;-
SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1), results AS ( SELECT DISTINCT ON (s.symbolid) fr.resultuid AS resultuid, fr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, fr.pattern AS pattern_name, fr.timed AS timed, fr.patternendtime AS identified, dtt.timezone AS timezone, fr.patternlengthbars AS length, g.basegroupname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN fr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN fr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM fibonacci_results fr INNER JOIN brokersymbollist bsl ON bsl.brokerid = $1 AND bsl.symbolid = fr.symbolid INNER JOIN symbols s ON fr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on fr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON fr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = fr.resultuid WHERE fr.gmttimefound > now() - INTERVAL '7 DAYS' AND (fr.simulation = 0 OR fr.simulation IS NULL) AND ($2 = 0 OR s.timegranularity in ($3)) AND ($4 = 0 OR s.exchange in ($5)) AND ($6 = 0 OR s.symbol in ($7)) AND ($8 = 0 OR fr.pattern in ($9)) AND ($10 = 0 OR fr.patternlengthbars <= $11) AND ($12 = 0 OR ($13 = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ($14 = 2 AND fr.timed < cast('1970-01-01' as timestamp))) ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = $15 OR relevant = 1) AND ($16 = 0 OR age <= $17) ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:36:12 Duration: 0ms Database: acaweb_fx User: postgres
4 4 21.56 MiB 5.34 MiB 5.44 MiB 5.39 MiB )) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;-
)) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517072104 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:36:17 Duration: 0ms Database: acaweb_fx User: postgres
5 4 22.73 MiB 4.26 MiB 7.73 MiB 5.68 MiB )) and patternlengthbars >= ? and averagequality >= ?.? and (timequality >= ?.? or timequality = ?) and errormargin >= ?.? and ? - noise >= ?.? and s.nonliquid = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and patternendprice = ? and a.resultuid > ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;-
)) AND patternlengthbars >= 20 AND averagequality >= 0.0 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice = - 1 AND a.resultuid > 61319926 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:51:40 Duration: 0ms Database: acaweb_fx User: postgres
6 3 16.86 MiB 4.27 MiB 7.70 MiB 5.62 MiB )) and breakout = ? and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;-
)) AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517278793 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:29:54 Duration: 0ms Database: acaweb_fx User: postgres
7 2 11.96 MiB 4.26 MiB 7.70 MiB 5.98 MiB )) and patternlengthbars >= ? and averagequality >= ?.? and (timequality >= ?.? or timequality = ?) and errormargin >= ?.? and ? - noise >= ?.? and s.nonliquid = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and patternendprice > ? and a.resultuid > ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;-
)) AND patternlengthbars >= 20 AND averagequality >= 0.0 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61251409 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:37:59 Duration: 0ms Database: acaweb_fx User: postgres
8 2 10.74 MiB 5.34 MiB 5.41 MiB 5.37 MiB when ? then ? when ? then ? when ? then ? when ? then ? when ? then ? end)) order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;-
when 1440 then 1 when 240 then 3 when 60 then 4 when 30 then 5 when 15 then 5 end)) ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:11:46 Duration: 0ms Database: acaweb_fx User: postgres
9 2 10.78 MiB 5.34 MiB 5.44 MiB 5.39 MiB when ? then ? when ? then ? when ? then ? when ? then ? when ? then ? end)) order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;-
when 1440 then 1 when 240 then 3 when 60 then 4 when 30 then 5 when 15 then 5 end)) ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:28:17 Duration: 0ms Database: acaweb_fx User: postgres
10 2 3.67 MiB 1.82 MiB 1.86 MiB 1.84 MiB with max_ra as ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) update solr_relevance_old set newrelevant = sub.relevant, newage = sub.age from ( select so.uuid, case when ra.relevant is not null then ra.relevant when so.result_uid < max_ra.resultuid then ? else ? end as relevant, case when ra.age is not null then ra.age when so.result_uid < max_ra.resultuid then ? else ? end as age, so.result_uid from max_ra, solr_relevance_old so inner join keylevels_results k on so.result_uid = k.resultuid and so.uuid ilike ? inner join downloadersymbolsettings dss on k.symbolid = dss.symbolid left outer join relevance_keylevels_results ra on so.result_uid = ra.resultuid and so.uuid ilike ?) sub where solr_relevance_old.result_uid = sub.result_uid and solr_relevance_old.uuid ilike ?; update solr_relevance_old set newrelevant = ? where result_uid in ( select result_uid from solr_relevance_old s left outer join keylevels_results a on a.resultuid = s.result_uid where s.uuid ilike ? and a.resultuid is null); update solr_relevance_old set new_hod_correct = sub.hod_correct, new_hod_percent = sub.hod_percent, new_hod_total = sub.hod_total, new_pattern_correct = sub.pattern_correct, new_pattern_percent = sub.pattern_percent, new_pattern_total = sub.pattern_total, new_percent = sub.percent, new_symbol_correct = sub.symbol_correct, new_symbol_percent = sub.symbol_percent, new_symbol_total = sub.symbol_total from ( select distinct resultuid, hod_correct, hod_percent, hod_total, hod, pattern_correct, pattern_percent, pattern_total, percent, symbol_correct, symbol_percent, symbol_total from whatshot_probability where type in (...)) sub where result_uid = sub.resultuid;-
with max_ra as ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1) update solr_relevance_old set newrelevant = sub.relevant, newage = sub.age from ( select so.uuid, case when ra.relevant is not null then ra.relevant when so.result_uid < max_ra.resultuid then 0 else 1 end as relevant, case when ra.age is not null then ra.age when so.result_uid < max_ra.resultuid then 11 else 0 end as age, so.result_uid from max_ra, solr_relevance_old so inner join keylevels_results k on so.result_uid = k.resultuid and so.uuid ilike 'kl_%' inner join downloadersymbolsettings dss on k.symbolid = dss.symbolid left outer join relevance_keylevels_results ra on so.result_uid = ra.resultuid and so.uuid ilike 'kl_%') sub where solr_relevance_old.result_uid = sub.result_uid and solr_relevance_old.uuid ilike 'kl_%'; update solr_relevance_old set newrelevant = 0 where result_uid in ( select result_uid from solr_relevance_old s left outer join keylevels_results a on a.resultuid = s.result_uid where s.uuid ilike 'kl_%' and a.resultuid is null); UPDATE solr_relevance_old SET new_hod_correct = sub.hod_correct, new_hod_percent = sub.hod_percent, new_hod_total = sub.hod_total, new_pattern_correct = sub.pattern_correct, new_pattern_percent = sub.pattern_percent, new_pattern_total = sub.pattern_total, new_percent = sub.percent, new_symbol_correct = sub.symbol_correct, new_symbol_percent = sub.symbol_percent, new_symbol_total = sub.symbol_total FROM ( select distinct resultuid, hod_correct, hod_percent, hod_total, hod, pattern_correct, pattern_percent, pattern_total, percent, symbol_correct, symbol_percent, symbol_total FROM whatshot_probability WHERE type in ('kl', 'ekl')) sub WHERE result_uid = sub.resultuid;
Date: 2021-07-26 03:53:32 Duration: 1m30s Database: acaweb_fx User: postgres
-
with max_ra as ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1) update solr_relevance_old set newrelevant = sub.relevant, newage = sub.age from ( select so.uuid, case when ra.relevant is not null then ra.relevant when so.result_uid < max_ra.resultuid then 0 else 1 end as relevant, case when ra.age is not null then ra.age when so.result_uid < max_ra.resultuid then 11 else 0 end as age, so.result_uid from max_ra, solr_relevance_old so inner join keylevels_results k on so.result_uid = k.resultuid and so.uuid ilike 'kl_%' inner join downloadersymbolsettings dss on k.symbolid = dss.symbolid left outer join relevance_keylevels_results ra on so.result_uid = ra.resultuid and so.uuid ilike 'kl_%') sub where solr_relevance_old.result_uid = sub.result_uid and solr_relevance_old.uuid ilike 'kl_%'; update solr_relevance_old set newrelevant = 0 where result_uid in ( select result_uid from solr_relevance_old s left outer join keylevels_results a on a.resultuid = s.result_uid where s.uuid ilike 'kl_%' and a.resultuid is null); UPDATE solr_relevance_old SET new_hod_correct = sub.hod_correct, new_hod_percent = sub.hod_percent, new_hod_total = sub.hod_total, new_pattern_correct = sub.pattern_correct, new_pattern_percent = sub.pattern_percent, new_pattern_total = sub.pattern_total, new_percent = sub.percent, new_symbol_correct = sub.symbol_correct, new_symbol_percent = sub.symbol_percent, new_symbol_total = sub.symbol_total FROM ( select distinct resultuid, hod_correct, hod_percent, hod_total, hod, pattern_correct, pattern_percent, pattern_total, percent, symbol_correct, symbol_percent, symbol_total FROM whatshot_probability WHERE type in ('kl', 'ekl')) sub WHERE result_uid = sub.resultuid;
Date: 2021-07-26 03:20:17 Duration: 1m29s Database: acaweb_fx User: postgres
-
with max_ra as ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1) update solr_relevance_old set newrelevant = sub.relevant, newage = sub.age from ( select so.uuid, case when ra.relevant is not null then ra.relevant when so.result_uid < max_ra.resultuid then 0 else 1 end as relevant, case when ra.age is not null then ra.age when so.result_uid < max_ra.resultuid then 11 else 0 end as age, so.result_uid from max_ra, solr_relevance_old so inner join keylevels_results k on so.result_uid = k.resultuid and so.uuid ilike 'kl_%' inner join downloadersymbolsettings dss on k.symbolid = dss.symbolid left outer join relevance_keylevels_results ra on so.result_uid = ra.resultuid and so.uuid ilike 'kl_%') sub where solr_relevance_old.result_uid = sub.result_uid and solr_relevance_old.uuid ilike 'kl_%'; update solr_relevance_old set newrelevant = 0 where result_uid in ( select result_uid from solr_relevance_old s left outer join keylevels_results a on a.resultuid = s.result_uid where s.uuid ilike 'kl_%' and a.resultuid is null); UPDATE solr_relevance_old SET new_hod_correct = sub.hod_correct, new_hod_percent = sub.hod_percent, new_hod_total = sub.hod_total, new_pattern_correct = sub.pattern_correct, new_pattern_percent = sub.pattern_percent, new_pattern_total = sub.pattern_total, new_percent = sub.percent, new_symbol_correct = sub.symbol_correct, new_symbol_percent = sub.symbol_percent, new_symbol_total = sub.symbol_total FROM ( select distinct resultuid, hod_correct, hod_percent, hod_total, hod, pattern_correct, pattern_percent, pattern_total, percent, symbol_correct, symbol_percent, symbol_total FROM whatshot_probability WHERE type in ('kl', 'ekl')) sub WHERE result_uid = sub.resultuid;
Date: 2021-07-26 03:30:39 Duration: 1m7s Database: acaweb_fx User: postgres
11 1 4.34 MiB 4.34 MiB 4.34 MiB 4.34 MiB (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?)));-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $1 union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $2 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $3 union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $4 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $5 union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $6 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:07:28 Duration: 0ms Database: acaweb_fx User: postgres
12 1 6.05 MiB 6.05 MiB 6.05 MiB 6.05 MiB select qtytp, replace(symbol, ?, ?) as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ? group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ?;-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:43:15 Duration: 1h4m43s Database: acaweb_fx User: postgres
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:44:33 Duration: 1h2m4s Database: acaweb_fx User: postgres
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:43:32 Duration: 1h2m3s Database: acaweb_fx User: postgres
13 1 5.05 MiB 5.05 MiB 5.05 MiB 5.05 MiB ) or ((c.symbol ilike ? and timegranularity = ?)) or ((c.symbol ilike ? and timegranularity = ?)) or ((c.symbol ilike ? and timegranularity = ?)) or ((c.symbol ilike ? and timegranularity = ?)) or ((c.symbol ilike ? and timegranularity = ?))) and patternclassid = ? and patternlengthbars >= ? and a.patternid & ? > ? and dftt.dayofweek = ? and a.resultuid > ? and c.nonliquid = ? and c.deleted = ? and dss.enabled = ? order by relevant desc, age asc, patternendtime desc, qtp desc limit ?;-
) OR ((c.symbol ilike '% xauusd%' AND timegranularity = 15)) OR ((c.symbol ilike '% xauusd%' AND timegranularity = 30)) OR ((c.symbol ilike '% xauusd%' AND timegranularity = 60)) OR ((c.symbol ilike '% xauusd%' AND timegranularity = 240)) OR ((c.symbol ilike '% xauusd%' AND timegranularity = 1440))) AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.resultuid > $5 AND c.nonliquid = $6 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:50:06 Duration: 0ms Database: acaweb_fx User: postgres
14 1 4.89 MiB 4.89 MiB 4.89 MiB 4.89 MiB ) or ((s.symbol ilike ? and timegranularity <= ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;-
) OR ((s.symbol ilike '%ustec%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517068653 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:11:28 Duration: 0ms Database: acaweb_fx User: postgres
15 1 7.66 MiB 7.66 MiB 7.66 MiB 7.66 MiB ) or ((s.symbol ilike ? and timegranularity = ?)) or ((s.symbol ilike ? and timegranularity = ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;-
) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:03:13 Duration: 0ms Database: acaweb_fx User: postgres
16 1 37.58 MiB 37.58 MiB 37.58 MiB 37.58 MiB select cleanupkeylevelsresults (?, ?, ?);-
select cleanupkeylevelsresults (60, 10, 60);
Date: 2021-07-26 03:00:43 Duration: 0ms Database: acaweb_fx User: postgres
17 1 5.37 MiB 5.37 MiB 5.37 MiB 5.37 MiB ) or ((s.symbol ilike ? and timegranularity = ?)) or ((s.symbol ilike ? and timegranularity = ?))) and breakout = ? and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;-
) OR ((s.symbol ilike '%gbpusd%' AND timegranularity = 60)) OR ((s.symbol ilike '%forex%' AND timegranularity = 60))) AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517278166 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:44:18 Duration: 0ms Database: acaweb_fx User: postgres
Queries generating the largest temporary files
Rank Size Query 1 37.58 MiB select cleanupkeylevelsresults (60, 10, 60);[ Date: 2021-07-26 03:00:43 - Database: acaweb_fx - User: postgres ]
2 7.90 MiB )) AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.resultuid > $5 AND c.nonliquid = $6 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;[ Date: 2021-07-26 03:25:38 - Database: acaweb_fx - User: postgres ]
3 7.73 MiB )) AND patternlengthbars >= 20 AND averagequality >= 0.0 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice = - 1 AND a.resultuid > 61319926 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 03:51:40 - Database: acaweb_fx - User: postgres ]
4 7.72 MiB )) AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.resultuid > $5 AND c.nonliquid = $6 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;[ Date: 2021-07-26 03:33:39 - Database: acaweb_fx - User: postgres ]
5 7.70 MiB )) AND patternlengthbars >= 20 AND averagequality >= 0.0 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61299146 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 03:25:38 - Database: acaweb_fx - User: postgres ]
6 7.70 MiB )) AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517219496 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:16:23 - Database: acaweb_fx - User: postgres ]
7 7.69 MiB )) AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.resultuid > $5 AND c.nonliquid = $6 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;[ Date: 2021-07-26 03:07:14 - Database: acaweb_fx - User: postgres ]
8 7.66 MiB ) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:03:13 - Database: acaweb_fx - User: postgres ]
9 6.05 MiB select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4761 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4761 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:51:44 - Database: acaweb_fx - User: postgres ]
10 5.45 MiB )) AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.resultuid > $5 AND c.nonliquid = $6 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;[ Date: 2021-07-26 03:52:31 - Database: acaweb_fx - User: postgres ]
11 5.44 MiB )) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517072104 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:36:17 - Database: acaweb_fx - User: postgres ]
12 5.44 MiB when 1440 then 1 when 240 then 3 when 60 then 4 when 30 then 5 when 15 then 5 end)) ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:44:18 - Database: acaweb_fx - User: postgres ]
13 5.41 MiB )) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517118934 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:20:10 - Database: acaweb_fx - User: postgres ]
14 5.41 MiB when 1440 then 1 when 240 then 3 when 60 then 4 when 30 then 5 when 15 then 5 end)) ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 03:11:46 - Database: acaweb_fx - User: postgres ]
15 5.38 MiB )) AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice = - 1 AND a.resultuid > 61310526 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 03:03:46 - Database: acaweb_fx - User: postgres ]
16 5.38 MiB SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = $1 AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ($2 = 0 OR s.timegranularity in ($3, $4, $5, $6, $7, $8, $9)) AND ($10 = 0 OR s.exchange in ($11)) AND ($12 = 0 OR s.symbol in ($13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223, $224, $225, $226, $227, $228, $229, $230, $231, $232, $233, $234, $235, $236)) AND ($237 = 0 OR p.patternname in ($238)) AND ($239 = 0 OR kr.patternclassid in ($240, $241)) AND ($242 = 0 OR kr.patternlengthbars <= $243) ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = $244 OR relevant = 1) AND ($245 = 0 OR age <= $246) ORDER BY identified DESC, length DESC;[ Date: 2021-07-26 03:13:27 - Database: acaweb_fx - User: postgres ]
17 5.37 MiB )) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 513177737 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:36:17 - Database: acaweb_fx - User: postgres ]
18 5.37 MiB ) OR ((s.symbol ilike '%gbpusd%' AND timegranularity = 60)) OR ((s.symbol ilike '%forex%' AND timegranularity = 60))) AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517278166 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:44:18 - Database: acaweb_fx - User: postgres ]
19 5.37 MiB )) AND patternlengthbars >= 20 AND averagequality >= 0.0 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice = - 1 AND a.resultuid > 61322232 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 03:52:31 - Database: acaweb_fx - User: postgres ]
20 5.34 MiB )) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 513177737 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 03:20:10 - Database: acaweb_fx - User: postgres ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 26 03 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- AccessExclusiveLock Main Lock Type
- 6,823 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1,974 57m13s 1s1ms 8s567ms 1s739ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021039, '2021-07-26 04:15:00'::timestamp without time zone, 76.858, 76.942, 76.847, 76.935, 1275, 0, '2021-07-26 03:30:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1021039 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:30:14 Database: acaweb_fx User: postgres
2 1,191 34m57s 1s 8s635ms 1s760ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 976981, '2021-07-26 04:00:00'::timestamp without time zone, 7001.72, 7003.72, 6989.97, 6998.47, 448, 0, '2021-07-26 03:30:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 976981 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:30:14 Database: acaweb_fx User: postgres
3 5 33m40s 4m19s 14m3s 6m44s update patternresultsrelevance set relevant = ?, saxo_relevant = ?, notrelevantpricedatetime = ?, reason = ? where uniqueindex = ? and relevant = ?;-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 00:30:00', reason = 'Pattern formed a Breakout pattern.' WHERE uniqueIndex = '|960521|0.73549|2|2021-07-23 17:45:00|1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:45:00', reason = 'Pattern formed a Breakout pattern (see |974475|87.861|2|2021-07-26 03:45:00|-1|1).' WHERE uniqueIndex = '|974475|87.861|2|2021-07-23 21:15:00|1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:30:00', reason = 'Pattern formed a Breakout pattern (see |1032237|0.60653|1|2021-07-26 03:30:00|1|1).' WHERE uniqueIndex = '|1032237|0.60653|1|2021-07-25 12:00:00|-1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Database: acaweb_fx User: postgres
4 709 22m39s 1s307ms 8s634ms 1s917ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982417, '2021-07-26 03:00:00'::timestamp without time zone, 27058.1, 27062.4, 27007.1, 27024.2, 7213, 0, '2021-07-26 03:32:54'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982417 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:55 Database: acaweb_fx User: postgres
5 510 17m35s 1s381ms 8s642ms 2s68ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021222, '2021-07-23 08:00:00'::timestamp without time zone, 27422.3, 27436.8, 27199.3, 27300.6, 54717, 0, '2021-07-26 03:33:01'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1021222 AND pricedatetime = '2021-07-23 08:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:33:02 Database: acaweb_fx User: postgres
6 232 6m29s 1s9ms 5s746ms 1s678ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968690, '2021-07-26 04:00:00'::timestamp without time zone, 0.73537, 0.73551, 0.7347, 0.73496, 466, 0, '2021-07-26 03:31:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968690 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968690, '2021-07-26 04:15:00'::timestamp without time zone, 0.73497, 0.73574, 0.73497, 0.7356, 698, 0, '2021-07-26 03:31:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968690 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:08 Database: acaweb_fx User: postgres
7 8 6m14s 44s407ms 1m13s 46s760ms select datetimeupdate from latest_candle_datetime_per_receng where recognitionengine ilike ?;-
SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';
Date: 2021-07-26 03:33:37 Database: acaweb_fx User: postgres
-
SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';
Date: 2021-07-26 03:33:37 Database: acaweb_fx User: postgres
-
SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';
Date: 2021-07-26 03:33:37 Database: acaweb_fx User: postgres
8 51 1m35s 1s6ms 8s595ms 1s873ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimewritten) values (?, ?, ?.?, ?.?, ?.?, ?.?, ?, ?, ?);-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960522, '2021-07-26 00:45', 0.73141, 0.73141, 0.73122, 0.73122, 0, 0, '2021-07-26 03:02');
Date: 2021-07-26 03:02:35 Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960539, '2021-07-26 00:45', 1.9727, 1.97363, 1.97256, 1.97302, 0, 0, '2021-07-26 03:04');
Date: 2021-07-26 03:04:15 Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960542, '2021-07-26 00:45', 0.87624, 0.87634, 0.87604, 0.87629, 0, 0, '2021-07-26 03:04');
Date: 2021-07-26 03:04:34 Database: acaweb_fx User: postgres
9 50 1m34s 1s41ms 6s163ms 1s885ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimewritten) values (?, ?, ?.?, ?.?, ?.?, ?.?, ?, ?, ?);-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960587, '2021-07-26 00:30', 0.91996, 0.92019, 0.91993, 0.91993, 0, 0, '2021-07-26 03:05');
Date: 2021-07-26 03:05:18 Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960573, '2021-07-26 00:30', 1.86854, 1.86975, 1.86803, 1.86914, 0, 0, '2021-07-26 03:03');
Date: 2021-07-26 03:03:44 Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960579, '2021-07-26 00:30', 1.37478, 1.37489, 1.37404, 1.37475, 0, 0, '2021-07-26 03:04');
Date: 2021-07-26 03:04:27 Database: acaweb_fx User: postgres
10 37 1m6s 1s113ms 3s396ms 1s789ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1019814, '2021-07-26 03:15:00'::timestamp without time zone, 34796, 34829, 34791, 34828, 304, 0, '2021-07-26 03:31:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1019814 AND pricedatetime = '2021-07-26 03:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:19 Database: acaweb_fx User: postgres
11 30 1m3s 1s382ms 3s538ms 2s128ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimewritten) values (?, ?, ?.?, ?.?, ?.?, ?.?, ?, ?, ?);-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960614, '2021-07-26 00:00', 152.071, 152.084, 151.814, 151.841, 0, 0, '2021-07-26 03:04');
Date: 2021-07-26 03:04:10 Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960626, '2021-07-26 00:00', 110.542, 110.579, 110.448, 110.448, 0, 0, '2021-07-26 03:05');
Date: 2021-07-26 03:05:30 Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960628, '2021-07-26 00:00', 25.1699, 25.1905, 25.1515, 25.1615, 0, 0, '2021-07-26 03:05');
Date: 2021-07-26 03:05:38 Database: acaweb_fx User: postgres
12 3 59s356ms 9s148ms 25s552ms 19s785ms select extract(epoch from datetimeupdate) from latest_candle_datetime_per_receng where recognitionengine ilike ?;-
SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 1';
Date: 2021-07-26 03:47:53 Database: acaweb_fx User: postgres
-
SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'ATFX - 1';
Date: 2021-07-26 03:17:53 Database: acaweb_fx User: postgres
-
SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 2';
Date: 2021-07-26 03:33:37 Database: acaweb_fx User: postgres
13 25 46s56ms 1s26ms 4s743ms 1s842ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1003102, '2021-07-26 04:00:00'::timestamp without time zone, 27940, 27950, 27823, 27853, 571, 0, '2021-07-26 03:30:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1003102 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:30:35 Database: acaweb_fx User: postgres
14 22 41s540ms 1s54ms 3s817ms 1s888ms insert into t1440 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t1440 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T1440 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023058, '2021-07-23 00:00:00'::timestamp without time zone, 27708.1, 27709.1, 27261.5, 27266.5, 59811, 0, '2021-07-26 03:32:40'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T1440 WHERE symbolid = 1023058 AND pricedatetime = '2021-07-23 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:42 Database: acaweb_fx User: postgres
15 17 28s892ms 1s236ms 2s407ms 1s699ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1024669, '2021-07-26 04:15:00'::timestamp without time zone, 37970, 38186.65, 37565.16, 37971.9, 5025, 0, '2021-07-26 03:31:29'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1024669 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:31 Database: acaweb_fx User: postgres
16 13 26s654ms 2s176ms 4s605ms 2s50ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920415, '2021-07-25 20:00:00'::timestamp without time zone, 2674, 2674, 2674, 2674, 3, 0, '2021-07-26 03:46:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 920415 AND pricedatetime = '2021-07-25 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:28 Database: acaweb_fx User: postgres
17 12 18s107ms 1s112ms 2s629ms 1s508ms insert into keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errormargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestprice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) select distinct ?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?.?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?.?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?.?, ?.?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from keylevels_results where uniquepointsvalue = ?) limit ? on conflict do nothing; ;-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 3.000000000000000000000000000000, - 1, 1, '2021-07-26 01:28:56'::timestamp without time zone, '', 0.500000000000000000000000000000, 3, 54, 4.519999999999999574000000000000, '2021-07-23 11:45:00', '2021-07-21 04:15:00', '2021-07-21 04:00:00', '', '', '', '', '', '', '', 108, 4.525749999999999496000000000000, '2021-07-26 04:00:00'::timestamp without time zone, '2021-07-26 04:00:00', 0.000000000000000000000000000000, 0.005750000000000011178000000000, - 1, 1027576, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1027576|4.52|1|2021-07-26 04:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-21 04:00:00', 4.589999999999999858000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1027576|4.52|1|2021-07-26 04:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;
Date: 2021-07-26 03:29:25 Database: acaweb_fx User: postgres
18 8 15s924ms 1s278ms 3s898ms 1s990ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002016, '2021-07-25 21:00:00'::timestamp without time zone, 34965, 34966, 34911, 34926, 747, 0, '2021-07-26 03:32:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002016 AND pricedatetime = '2021-07-25 21:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002016, '2021-07-25 21:15:00'::timestamp without time zone, 34925, 34948, 34924, 34939, 856, 0, '2021-07-26 03:32:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002016 AND pricedatetime = '2021-07-25 21:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:15 Database: acaweb_fx User: postgres
19 9 15s595ms 1s211ms 3s75ms 1s732ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023064, '2021-07-26 04:15:00'::timestamp without time zone, 27862.5, 27912.5, 27855, 27885, 517, 0, '2021-07-26 03:32:42'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1023064 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:43 Database: acaweb_fx User: postgres
20 8 13s672ms 1s70ms 2s250ms 1s709ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026427, '2021-07-23 20:00:00'::timestamp without time zone, 0.85519, 0.85624, 0.85513, 0.85595, 4639, 0, '2021-07-26 03:46:04'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1026427 AND pricedatetime = '2021-07-23 20:00:00'::timestamp without time zone); INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026427, '2021-07-26 00:00:00'::timestamp without time zone, 0.8549, 0.85604, 0.85438, 0.85574, 4975, 0, '2021-07-26 03:46:04'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1026427 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:06 Database: acaweb_fx User: postgres
21 8 13s570ms 1s69ms 2s667ms 1s696ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026426, '2021-07-23 23:00:00'::timestamp without time zone, 0.85601, 0.85624, 0.8558, 0.85595, 1499, 0, '2021-07-26 03:46:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026426 AND pricedatetime = '2021-07-23 23:00:00'::timestamp without time zone); INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026426, '2021-07-26 00:00:00'::timestamp without time zone, 0.8549, 0.85553, 0.85438, 0.85516, 1097, 0, '2021-07-26 03:46:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026426 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026426, '2021-07-26 01:00:00'::timestamp without time zone, 0.85518, 0.85566, 0.85503, 0.85553, 1112, 0, '2021-07-26 03:46:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026426 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026426, '2021-07-26 02:00:00'::timestamp without time zone, 0.85553, 0.85568, 0.8554, 0.85562, 773, 0, '2021-07-26 03:46:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026426 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026426, '2021-07-26 03:00:00'::timestamp without time zone, 0.85561, 0.85604, 0.85558, 0.85574, 1993, 0, '2021-07-26 03:46:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026426 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:04 Database: acaweb_fx User: postgres
22 9 12s313ms 1s102ms 2s361ms 1s368ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021144, '2021-07-26 04:15:00'::timestamp without time zone, 1800.4, 1805, 1800.3, 1804.8, 1027, 0, '2021-07-26 03:32:52'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1021144 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:54 Database: acaweb_fx User: postgres
23 7 12s74ms 1s564ms 2s37ms 1s724ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 999580, '2021-07-26 03:30:00'::timestamp without time zone, 37931.2, 38752.7, 37842, 38586.8, 16794, 0, '2021-07-26 03:46:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 999580 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:08 Database: acaweb_fx User: postgres
24 7 11s732ms 1s49ms 2s339ms 1s676ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-23 23:45:00'::timestamp without time zone, 130.102, 130.112, 130.085, 130.093, 301, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-23 23:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 00:00:00'::timestamp without time zone, 130.055, 130.092, 129.991, 130.036, 139, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 00:15:00'::timestamp without time zone, 130.02, 130.087, 130.02, 130.082, 172, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 00:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 00:30:00'::timestamp without time zone, 130.076, 130.09, 130.044, 130.045, 81, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 00:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 00:45:00'::timestamp without time zone, 130.045, 130.077, 130.031, 130.064, 176, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 00:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 01:00:00'::timestamp without time zone, 130.084, 130.135, 130.058, 130.128, 639, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 01:15:00'::timestamp without time zone, 130.128, 130.153, 130.116, 130.134, 250, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 01:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 01:30:00'::timestamp without time zone, 130.136, 130.151, 130.116, 130.151, 272, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 01:45:00'::timestamp without time zone, 130.152, 130.158, 130.136, 130.14, 176, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 02:00:00'::timestamp without time zone, 130.139, 130.146, 130.125, 130.141, 234, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 02:15:00'::timestamp without time zone, 130.141, 130.15, 130.115, 130.116, 377, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 02:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 02:30:00'::timestamp without time zone, 130.117, 130.122, 130.092, 130.105, 672, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 02:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 02:45:00'::timestamp without time zone, 130.102, 130.155, 130.095, 130.132, 1148, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 02:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 03:00:00'::timestamp without time zone, 130.132, 130.137, 130.073, 130.134, 1400, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 03:15:00'::timestamp without time zone, 130.133, 130.137, 130.07, 130.071, 931, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 03:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 03:30:00'::timestamp without time zone, 130.074, 130.089, 130.031, 130.043, 691, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 03:45:00'::timestamp without time zone, 130.042, 130.045, 129.939, 129.948, 1162, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 04:00:00'::timestamp without time zone, 129.947, 129.95, 129.881, 129.883, 986, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 04:15:00'::timestamp without time zone, 129.884, 129.933, 129.861, 129.913, 1269, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026429, '2021-07-26 04:30:00'::timestamp without time zone, 129.912, 129.953, 129.9, 129.939, 1101, 0, '2021-07-26 03:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026429 AND pricedatetime = '2021-07-26 04:30:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:23 Database: acaweb_fx User: postgres
25 7 11s665ms 1s268ms 2s445ms 1s666ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-23 23:30:00'::timestamp without time zone, 359.985, 360.156, 359.418, 360.066, 496, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-23 23:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 00:00:00'::timestamp without time zone, 359.776, 359.777, 359.156, 359.276, 119, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 00:30:00'::timestamp without time zone, 359.202, 359.388, 359.072, 359.121, 66, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 00:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 01:00:00'::timestamp without time zone, 359.26, 359.769, 359.26, 359.409, 468, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 01:30:00'::timestamp without time zone, 359.559, 359.865, 359.375, 359.702, 159, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 02:00:00'::timestamp without time zone, 359.643, 359.761, 359.37, 359.75, 710, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 02:30:00'::timestamp without time zone, 359.816, 359.949, 359.363, 359.864, 101, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 02:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 03:00:00'::timestamp without time zone, 359.862, 360.059, 359.51, 360.019, 727, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 03:30:00'::timestamp without time zone, 360.023, 360.09, 359.699, 360.03, 427, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026485, '2021-07-26 04:00:00'::timestamp without time zone, 360.045, 360.076, 360.02, 360.031, 739, 0, '2021-07-26 03:46:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026485 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:13 Database: acaweb_fx User: postgres
26 5 11s580ms 1s174ms 6s150ms 2s316ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975948, '2021-07-26 00:00:00'::timestamp without time zone, 15666.85, 15673.5, 15610, 15624, 3973, 0, '2021-07-26 03:02:45'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 975948 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:47 Database: acaweb_fx User: postgres
27 7 11s332ms 1s50ms 2s672ms 1s618ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982422, '2021-07-26 03:00:00'::timestamp without time zone, 7024.3, 7025.5, 7004, 7011, 1026, 0, '2021-07-26 03:02:03'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982422 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:04 Database: acaweb_fx User: postgres
28 7 9s868ms 1s32ms 2s93ms 1s409ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989726, '2021-07-26 03:00:00'::timestamp without time zone, 679.5, 679.5, 677, 677.5, 188, 0, '2021-07-26 03:31:04'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 989726 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:05 Database: acaweb_fx User: postgres
29 6 8s886ms 1s 2s462ms 1s481ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989725, '2021-07-26 03:15:00'::timestamp without time zone, 677.5, 678, 677, 677.5, 70, 0, '2021-07-26 03:31:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 989725 AND pricedatetime = '2021-07-26 03:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:04 Database: acaweb_fx User: postgres
30 5 7s860ms 1s584ms 1s856ms 1s572ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023056, '2021-07-23 10:00:00'::timestamp without time zone, 27379, 27381.5, 27261.5, 27266.5, 44685, 0, '2021-07-26 03:32:36'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1023056 AND pricedatetime = '2021-07-23 10:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:38 Database: acaweb_fx User: postgres
31 4 7s598ms 1s33ms 3s320ms 1s899ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977008, '2021-07-23 20:00:00'::timestamp without time zone, 27030, 27070, 27028, 27056, 22453, 0, '2021-07-26 03:32:28'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 977008 AND pricedatetime = '2021-07-23 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:30 Database: acaweb_fx User: postgres
32 5 7s572ms 1s333ms 2s79ms 1s514ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1024670, '2021-07-26 04:00:00'::timestamp without time zone, 36788.36, 39727, 36730.6, 37971.9, 9031, 0, '2021-07-26 03:31:31'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1024670 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:33 Database: acaweb_fx User: postgres
33 5 7s286ms 1s35ms 1s778ms 1s457ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986840, '2021-07-26 04:15:00'::timestamp without time zone, 15599.5, 15620.5, 15597.5, 15618, 219, 0, '2021-07-26 03:31:44'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986840 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:45 Database: acaweb_fx User: postgres
34 4 7s36ms 1s494ms 2s147ms 1s759ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023057, '2021-07-23 08:00:00'::timestamp without time zone, 27424, 27434.5, 27261.5, 27266.5, 51643, 0, '2021-07-26 03:32:38'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1023057 AND pricedatetime = '2021-07-23 08:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:40 Database: acaweb_fx User: postgres
35 4 6s679ms 1s241ms 2s223ms 1s669ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002037, '2021-07-25 20:30:00'::timestamp without time zone, 4091.2, 4095.5, 4089, 4094, 41480, 0, '2021-07-26 03:02:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1002037 AND pricedatetime = '2021-07-25 20:30:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:11 Database: acaweb_fx User: postgres
36 4 6s43ms 1s219ms 1s879ms 1s510ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989715, '2021-07-26 03:15:00'::timestamp without time zone, 545, 545, 543.75, 544.25, 45, 0, '2021-07-26 03:32:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 989715 AND pricedatetime = '2021-07-26 03:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:04 Database: acaweb_fx User: postgres
37 3 6s13ms 1s660ms 2s409ms 2s4ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989717, '2021-07-26 02:00:00'::timestamp without time zone, 549.25, 550.75, 543, 546.25, 646, 0, '2021-07-26 03:02:22'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 989717 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:24 Database: acaweb_fx User: postgres
38 3 5s877ms 1s547ms 2s211ms 1s959ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975937, '2021-07-26 03:00:00'::timestamp without time zone, 7022.9, 7024, 7003.85, 7011.1, 1018, 0, '2021-07-26 03:01:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 975937 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:01:15 Database: acaweb_fx User: postgres
39 3 5s584ms 1s542ms 2s361ms 1s861ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920601, '2021-07-25 21:15:00'::timestamp without time zone, 2662.5, 2665, 2662.5, 2664, 4, 0, '2021-07-26 03:46:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920601 AND pricedatetime = '2021-07-25 21:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:23 Database: acaweb_fx User: postgres
40 3 5s456ms 1s254ms 2s445ms 1s818ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977011, '2021-07-26 04:00:00'::timestamp without time zone, 27961, 27975, 27847.5, 27877.5, 987, 0, '2021-07-26 03:32:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977011 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:34 Database: acaweb_fx User: postgres
41 3 5s403ms 1s460ms 2s41ms 1s801ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 983821, '2021-07-26 04:00:00'::timestamp without time zone, 34950, 34958, 34902, 34938.5, 1540, 0, '2021-07-26 03:33:00'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 983821 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:33:01 Database: acaweb_fx User: postgres
42 3 5s397ms 1s11ms 2s589ms 1s799ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023066, '2021-07-26 03:00:00'::timestamp without time zone, 28122.5, 28160, 27915, 27967.5, 3219, 0, '2021-07-26 03:05:01'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1023066 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:05:03 Database: acaweb_fx User: postgres
43 3 5s200ms 1s227ms 2s271ms 1s733ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023065, '2021-07-26 04:00:00'::timestamp without time zone, 27970, 27982.5, 27855, 27885, 950, 0, '2021-07-26 03:32:44'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1023065 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:45 Database: acaweb_fx User: postgres
44 2 5s52ms 1s427ms 3s625ms 2s526ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977006, '2021-07-23 21:30:00'::timestamp without time zone, 27041, 27057, 27028, 27056, 217, 0, '2021-07-26 03:32:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977006 AND pricedatetime = '2021-07-23 21:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977006, '2021-07-26 04:00:00'::timestamp without time zone, 26888, 26898, 26760, 26766, 1178, 0, '2021-07-26 03:32:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977006 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:28 Database: acaweb_fx User: postgres
45 3 4s950ms 1s449ms 1s927ms 1s650ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982736, '2021-07-26 04:00:00'::timestamp without time zone, 4096, 4096.5, 4088.5, 4095.2, 304, 0, '2021-07-26 03:32:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 982736 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:19 Database: acaweb_fx User: postgres
46 3 4s684ms 1s81ms 1s848ms 1s561ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982763, '2021-07-26 00:00:00'::timestamp without time zone, 2206.2, 2208, 2192.5, 2195.4, 3763, 0, '2021-07-26 03:02:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 982763 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:14 Database: acaweb_fx User: postgres
47 3 4s617ms 1s116ms 2s59ms 1s539ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986856, '2021-07-23 19:30:00'::timestamp without time zone, 27023.7, 27031.3, 27016.2, 27030.2, 956, 0, '2021-07-26 03:32:59'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 986856 AND pricedatetime = '2021-07-23 19:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986856, '2021-07-26 04:00:00'::timestamp without time zone, 26802.1, 26868.9, 26760.8, 26766.2, 2636, 0, '2021-07-26 03:32:59'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 986856 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:33:01 Database: acaweb_fx User: postgres
48 3 4s435ms 1s57ms 2s282ms 1s478ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 983820, '2021-07-26 04:15:00'::timestamp without time zone, 34906, 34940, 34902, 34938.5, 903, 0, '2021-07-26 03:32:59'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 983820 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:33:00 Database: acaweb_fx User: postgres
49 2 4s424ms 1s973ms 2s450ms 2s212ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 976985, '2021-07-26 03:45:00'::timestamp without time zone, 4094, 4096.7, 4090.7, 4095, 92, 0, '2021-07-26 03:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 976985 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone); ;
Date: 2021-07-26 03:03:22 Database: acaweb_fx User: postgres
50 2 4s336ms 1s846ms 2s489ms 2s168ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023067, '2021-07-26 00:00:00'::timestamp without time zone, 28207.5, 28207.5, 27915, 27967.5, 3703, 0, '2021-07-26 03:05:03'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1023067 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:05:06 Database: acaweb_fx User: postgres
51 2 4s1ms 1s815ms 2s186ms 2s insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975925, '2021-07-26 04:15:00'::timestamp without time zone, 34907.5, 34940, 34902, 34937, 955, 0, '2021-07-26 03:32:51'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 975925 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:53 Database: acaweb_fx User: postgres
52 2 3s750ms 1s514ms 2s235ms 1s875ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982432, '2021-07-26 03:00:00'::timestamp without time zone, 4410, 4411, 4398.8, 4400.8, 1693, 0, '2021-07-26 03:02:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982432 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:36 Database: acaweb_fx User: postgres
53 2 3s492ms 1s191ms 2s301ms 1s746ms insert into t1440 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t1440 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T1440 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977009, '2021-07-23 00:00:00'::timestamp without time zone, 27702, 27705, 26999, 27056, 52380, 0, '2021-07-26 03:32:30'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T1440 WHERE symbolid = 977009 AND pricedatetime = '2021-07-23 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:31 Database: acaweb_fx User: postgres
54 1 3s366ms 3s366ms 3s366ms 3s366ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 918962, '2021-07-25 16:00:00'::timestamp without time zone, 2675, 2680, 2663.5, 2674, 35, 0, '2021-07-26 03:16:29'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 918962 AND pricedatetime = '2021-07-25 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:16:33 Database: acaweb_fx User: postgres
55 2 2s941ms 1s118ms 1s823ms 1s470ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023130, '2021-07-26 04:00:00'::timestamp without time zone, 4401, 4401.7, 4395.2, 4400, 883, 0, '2021-07-26 03:33:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1023130 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:33:03 Database: acaweb_fx User: postgres
56 1 2s800ms 2s800ms 2s800ms 2s800ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920415, '2021-07-25 19:00:00'::timestamp without time zone, 2673.5, 2674, 2673.5, 2674, 2, 0, '2021-07-26 03:16:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 920415 AND pricedatetime = '2021-07-25 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:16:28 Database: acaweb_fx User: postgres
57 2 2s785ms 1s305ms 1s479ms 1s392ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021219, '2021-07-23 11:00:00'::timestamp without time zone, 27287.6, 27325.1, 27278.1, 27300.6, 813, 0, '2021-07-26 03:32:55'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1021219 AND pricedatetime = '2021-07-23 11:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021219, '2021-07-26 04:15:00'::timestamp without time zone, 26890.5, 26900.5, 26762.5, 26769, 1178, 0, '2021-07-26 03:32:55'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1021219 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:57 Database: acaweb_fx User: postgres
58 2 2s636ms 1s235ms 1s401ms 1s318ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021220, '2021-07-23 11:00:00'::timestamp without time zone, 27287.6, 27325.1, 27278.1, 27300.6, 43902, 0, '2021-07-26 03:32:57'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1021220 AND pricedatetime = '2021-07-23 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021220, '2021-07-26 04:00:00'::timestamp without time zone, 26890.5, 26900.5, 26762.5, 26769, 1178, 0, '2021-07-26 03:32:57'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1021220 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:59 Database: acaweb_fx User: postgres
59 2 2s582ms 1s24ms 1s558ms 1s291ms select fixcandlegaps (?, false);-
select fixcandlegaps ('XM', false);
Date: 2021-07-26 03:07:36 Database: acaweb_fx User: postgres
-
select fixcandlegaps ('LEGACYFXMT5', false);
Date: 2021-07-26 03:06:48 Database: acaweb_fx User: postgres
-
select fixcandlegaps ('GKINVESTMT5', false);
Date: 2021-07-26 03:06:22 Database: acaweb_fx User: postgres
60 1 2s339ms 2s339ms 2s339ms 2s339ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002036, '2021-07-25 20:30:00'::timestamp without time zone, 4091.2, 4093, 4089, 4091.1, 428, 0, '2021-07-26 03:02:07'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002036 AND pricedatetime = '2021-07-25 20:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002036, '2021-07-25 20:45:00'::timestamp without time zone, 4091.1, 4095.5, 4089, 4094, 392, 0, '2021-07-26 03:02:07'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002036 AND pricedatetime = '2021-07-25 20:45:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:10 Database: acaweb_fx User: postgres
61 2 2s189ms 1s10ms 1s179ms 1s94ms insert into fibonacci_results (bandwidth, pattern, gmttimefound, direction, patternstarttime, patternendtime, patternstartprice, patternendprice, qtytp, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, patternlengthbars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) select distinct ?.?, ?, ?::timestamp without time zone, ?, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?, ?.?, ?, ?, ?, ?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from fibonacci_results where pattern ilike ? and direction = ? and patternstarttime = ?::timestamp without time zone and patternstartprice = ?.? and qtytp = ? and patternlengthbars = ? and ratiosfound = ? and temporarypattern = ? and symbolid = ? and timex = ?::timestamp without time zone and timea = ?::timestamp without time zone and timeb = ?::timestamp without time zone and timec = ?::timestamp without time zone and timed = ?::timestamp without time zone) limit ? on conflict do nothing; ;-
INSERT INTO Fibonacci_Results (Bandwidth, Pattern, GMTTimeFound, Direction, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, QtyTP, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, PatternLengthBars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, '3 Point Extension', '2021-07-26 01:29:43'::timestamp without time zone, 1, '2021-07-23 14:45:00'::timestamp without time zone, '2021-07-25 21:15:00'::timestamp without time zone, 0.794950000000000045400000000000, 0.795250000000000012400000000000, 3, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.794950000000000045400000000000, '2021-07-23 14:45:00'::timestamp without time zone, 0.796250000000000013300000000000, '2021-07-23 16:15:00'::timestamp without time zone, 0.794549999999999978500000000000, '2021-07-25 21:00:00'::timestamp without time zone, 0.532205799747428098800000000000, - 1.000000000000000000000000000000, 0.560882187730179393400000000000, 21, 0.796250000000000013300000000000, 0.795600657780790032600000000000, 0.797300657780790067400000000000, 0.795886457342260045200000000000, 0.796712433404149988900000000000, 0.795399999999999995900000000000, 0.795199342219209959200000000000, 919318, 0.496470588235323306800000000000, 'CD=1.272*BC (1.308) ', 0, '3 Point Extension|1|2021-07-23 14:45:00|0.79495|0.79525|3|21|CD=1.272*BC (1.308)|0|919318|1899-12-29 00:00:00|1899-12-29 00:00:00|2021-07-23 14:45:00|2021-07-23 16:15:00|2021-07-25 21:00:00', 1, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Fibonacci_Results WHERE pattern ilike '3 Point Extension' AND direction = 1 AND patternstarttime = '2021-07-23 14:45:00'::timestamp without time zone AND patternstartprice = 0.794950000000000045400000000000 AND qtytp = 3 AND patternlengthbars = 21 AND ratiosfound = 'CD=1.272*BC (1.308) ' AND temporarypattern = 0 AND symbolid = 919318 AND timex = '1899-12-29 00:00:00'::timestamp without time zone AND timea = '1899-12-29 00:00:00'::timestamp without time zone AND timeb = '2021-07-23 14:45:00'::timestamp without time zone AND timec = '2021-07-23 16:15:00'::timestamp without time zone AND timed = '2021-07-25 21:00:00'::timestamp without time zone) LIMIT 1 ON CONFLICT DO NOTHING; ;
Date: 2021-07-26 03:30:12 Database: acaweb_fx User: postgres
62 1 2s160ms 2s160ms 2s160ms 2s160ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 976987, '2021-07-26 03:00:00'::timestamp without time zone, 4099.5, 4099.7, 4090.2, 4095, 421, 0, '2021-07-26 03:03:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 976987 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:03:27 Database: acaweb_fx User: postgres
63 1 2s102ms 2s102ms 2s102ms 2s102ms (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?)));-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $1 union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $2 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $3 union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $4 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $5 union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $6 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:07:28 Database: acaweb_fx User: postgres
64 1 1s974ms 1s974ms 1s974ms 1s974ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986875, '2021-07-26 04:30:00'::timestamp without time zone, 7008, 7013.2, 7003, 7012.7, 679, 0, '2021-07-26 03:47:03'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986875 AND pricedatetime = '2021-07-26 04:30:00'::timestamp without time zone); ;
Date: 2021-07-26 03:47:06 Database: acaweb_fx User: postgres
65 1 1s901ms 1s901ms 1s901ms 1s901ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920162, '2021-07-25 21:00:00'::timestamp without time zone, 2662.5, 2665, 2662.5, 2664, 4, 0, '2021-07-26 03:46:23'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 920162 AND pricedatetime = '2021-07-25 21:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:25 Database: acaweb_fx User: postgres
66 1 1s834ms 1s834ms 1s834ms 1s834ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002036, '2021-07-25 21:15:00'::timestamp without time zone, 4089.2, 4093.6, 4089.2, 4091.2, 426, 0, '2021-07-26 03:47:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002036 AND pricedatetime = '2021-07-25 21:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002036, '2021-07-25 21:30:00'::timestamp without time zone, 4091.5, 4095.5, 4090, 4094.8, 529, 0, '2021-07-26 03:47:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002036 AND pricedatetime = '2021-07-25 21:30:00'::timestamp without time zone); ;
Date: 2021-07-26 03:47:08 Database: acaweb_fx User: postgres
67 1 1s784ms 1s784ms 1s784ms 1s784ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982416, '2021-07-26 03:30:00'::timestamp without time zone, 27012, 27028.1, 27009, 27024.2, 5908, 0, '2021-07-26 03:32:52'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 982416 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982416, '2021-07-26 04:00:00'::timestamp without time zone, 26907.6, 26908.1, 26758.7, 26765.7, 2298, 0, '2021-07-26 03:32:52'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 982416 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:54 Database: acaweb_fx User: postgres
68 1 1s746ms 1s746ms 1s746ms 1s746ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-23 23:45:00'::timestamp without time zone, 359.789, 360.104, 359.418, 360.066, 104, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-23 23:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 00:00:00'::timestamp without time zone, 359.776, 359.777, 359.156, 359.38, 68, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 00:15:00'::timestamp without time zone, 359.386, 359.386, 359.164, 359.276, 51, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 00:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 00:30:00'::timestamp without time zone, 359.202, 359.388, 359.072, 359.144, 36, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 00:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 00:45:00'::timestamp without time zone, 359.138, 359.246, 359.079, 359.121, 30, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 00:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 01:00:00'::timestamp without time zone, 359.26, 359.769, 359.26, 359.409, 468, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 01:30:00'::timestamp without time zone, 359.559, 359.865, 359.375, 359.375, 94, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 01:45:00'::timestamp without time zone, 359.543, 359.725, 359.543, 359.702, 65, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 02:00:00'::timestamp without time zone, 359.643, 359.733, 359.37, 359.494, 358, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 02:15:00'::timestamp without time zone, 359.615, 359.761, 359.426, 359.75, 352, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 02:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 02:30:00'::timestamp without time zone, 359.816, 359.949, 359.363, 359.949, 32, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 02:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 02:45:00'::timestamp without time zone, 359.949, 359.949, 359.383, 359.864, 69, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 02:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 03:00:00'::timestamp without time zone, 359.862, 360.051, 359.51, 360.051, 590, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 03:15:00'::timestamp without time zone, 360.055, 360.059, 359.563, 360.019, 137, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 03:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 03:30:00'::timestamp without time zone, 360.023, 360.063, 359.987, 360.03, 211, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 03:45:00'::timestamp without time zone, 360.034, 360.09, 359.699, 360.03, 216, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 04:00:00'::timestamp without time zone, 360.045, 360.076, 360.03, 360.057, 215, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026484, '2021-07-26 04:15:00'::timestamp without time zone, 360.065, 360.075, 360.02, 360.031, 524, 0, '2021-07-26 03:46:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026484 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:10 Database: acaweb_fx User: postgres
69 1 1s740ms 1s740ms 1s740ms 1s740ms select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((longname ilike ? and timegranularity <= ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 49 AND (((longname ilike '%euro vs us dollar%' AND timegranularity <= 1440))) AND breakout >= 0.3 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 40 AND patternquality >= 0.3 AND initialtrend >= 0.1 AND symmetry >= 0.4 AND noise <= 0.8 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:56:32 Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 49 AND (((longname ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:48:44 Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 49 AND (((longname ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:32:44 Database: acaweb_fx User: postgres Bind query: yes
70 1 1s732ms 1s732ms 1s732ms 1s732ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 976988, '2021-07-26 00:00:00'::timestamp without time zone, 4099.5, 4099.7, 4090.2, 4095, 421, 0, '2021-07-26 03:03:27'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 976988 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:03:29 Database: acaweb_fx User: postgres
71 1 1s712ms 1s712ms 1s712ms 1s712ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975945, '2021-07-26 03:45:00'::timestamp without time zone, 15621, 15630, 15611.5, 15624, 190, 0, '2021-07-26 03:02:39'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 975945 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:40 Database: acaweb_fx User: postgres
72 1 1s707ms 1s707ms 1s707ms 1s707ms insert into consecutivecandles_results (symbolid, direction, statisticalqtycandles, qtyconsecutivecandles, percentile, resultuniqueindex, gmttimefound, patternstarttime, patternendtime, simulation, writtendatetime, fromprice, toprice, patternlengthbars) select distinct ?, ?, ?, ?, ?.?, ?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?, current_timestamp::timestamp without time zone, ?.?, ?.?, ? where not exists ( select ? from consecutivecandles_results where resultuniqueindex = ?) limit ? on conflict do nothing; ;-
INSERT INTO consecutivecandles_results (symbolid, direction, statisticalqtycandles, qtyconsecutivecandles, percentile, resultuniqueindex, gmttimefound, patternstarttime, patternendtime, simulation, writtendatetime, fromprice, toprice, patternlengthbars) SELECT DISTINCT 1031758, - 1, 5, 5, 0.949999999999999955600000000000, '1031758|-1|5|2021-07-26 03:00:00', '2021-07-26 01:07:00'::timestamp without time zone, '2021-07-25 23:00:00'::timestamp without time zone, '2021-07-26 03:00:00'::timestamp without time zone, 0, CURRENT_TIMESTAMP::timestamp without time zone, 29147.409999999999860000000000000000, 31190.360000000000580000000000000000, 5 WHERE NOT EXISTS ( SELECT 1 FROM consecutivecandles_results WHERE resultuniqueindex = '1031758|-1|5|2021-07-26 03:00:00') LIMIT 1 ON CONFLICT DO NOTHING; ;
Date: 2021-07-26 03:07:28 Database: acaweb_fx User: postgres
73 1 1s540ms 1s540ms 1s540ms 1s540ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 987911, '2021-07-26 02:30:00'::timestamp without time zone, 12090, 12102.3, 12089, 12098.3, 682, 0, '2021-07-26 03:06:35'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 987911 AND pricedatetime = '2021-07-26 02:30:00'::timestamp without time zone); ;
Date: 2021-07-26 03:06:37 Database: acaweb_fx User: postgres
74 1 1s537ms 1s537ms 1s537ms 1s537ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021259, '2021-07-26 03:30:00'::timestamp without time zone, 7008.3, 7009.5, 7003, 7007.7, 593, 0, '2021-07-26 03:07:00'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1021259 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021259, '2021-07-26 03:45:00'::timestamp without time zone, 7007.8, 7012.7, 7006.5, 7007, 431, 0, '2021-07-26 03:07:00'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1021259 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone); ;
Date: 2021-07-26 03:07:02 Database: acaweb_fx User: postgres
75 1 1s457ms 1s457ms 1s457ms 1s457ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982415, '2021-07-26 03:30:00'::timestamp without time zone, 27012, 27028.1, 27009, 27024.2, 422, 0, '2021-07-26 03:32:50'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 982415 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982415, '2021-07-26 04:15:00'::timestamp without time zone, 26907.6, 26908.1, 26758.7, 26765.7, 2298, 0, '2021-07-26 03:32:50'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 982415 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:51 Database: acaweb_fx User: postgres
76 1 1s445ms 1s445ms 1s445ms 1s445ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975945, '2021-07-26 04:30:00'::timestamp without time zone, 15619, 15624.5, 15604, 15621, 465, 0, '2021-07-26 03:46:30'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 975945 AND pricedatetime = '2021-07-26 04:30:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:32 Database: acaweb_fx User: postgres
77 1 1s419ms 1s419ms 1s419ms 1s419ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982423, '2021-07-26 00:00:00'::timestamp without time zone, 7025, 7027.9, 7004, 7011, 2251, 0, '2021-07-26 03:02:04'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 982423 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:06 Database: acaweb_fx User: postgres
78 1 1s386ms 1s386ms 1s386ms 1s386ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023055, '2021-07-23 10:00:00'::timestamp without time zone, 27379, 27381.5, 27261.5, 27266.5, 44685, 0, '2021-07-26 03:32:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1023055 AND pricedatetime = '2021-07-23 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023055, '2021-07-26 04:00:00'::timestamp without time zone, 26890.7, 26902.7, 26760.2, 26766.7, 1178, 0, '2021-07-26 03:32:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1023055 AND pricedatetime = '2021-07-26 04:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:36 Database: acaweb_fx User: postgres
79 1 1s380ms 1s380ms 1s380ms 1s380ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975943, '2021-07-26 00:00:00'::timestamp without time zone, 4100, 4102.45, 4089, 4093.7, 1501, 0, '2021-07-26 03:02:52'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 975943 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:54 Database: acaweb_fx User: postgres
80 1 1s366ms 1s366ms 1s366ms 1s366ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002038, '2021-07-25 20:00:00'::timestamp without time zone, 4097, 4099.5, 4089, 4094, 96680, 0, '2021-07-26 03:02:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1002038 AND pricedatetime = '2021-07-25 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:02:13 Database: acaweb_fx User: postgres
81 1 1s287ms 1s287ms 1s287ms 1s287ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 999581, '2021-07-26 03:00:00'::timestamp without time zone, 36759.1, 39649, 36740, 37931.2, 26721, 0, '2021-07-26 03:31:43'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 999581 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:31:44 Database: acaweb_fx User: postgres
82 1 1s249ms 1s249ms 1s249ms 1s249ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989526, '2021-07-26 03:00:00'::timestamp without time zone, 73.98, 74.04, 73.73, 74, 1005, 0, '2021-07-26 03:32:54'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 989526 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:55 Database: acaweb_fx User: postgres
83 1 1s125ms 1s125ms 1s125ms 1s125ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023054, '2021-07-23 10:00:00'::timestamp without time zone, 27379, 27381.5, 27261.5, 27266.5, 993, 0, '2021-07-26 03:32:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1023054 AND pricedatetime = '2021-07-23 10:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023054, '2021-07-26 04:15:00'::timestamp without time zone, 26890.7, 26902.7, 26760.2, 26766.7, 1178, 0, '2021-07-26 03:32:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1023054 AND pricedatetime = '2021-07-26 04:15:00'::timestamp without time zone); ;
Date: 2021-07-26 03:32:34 Database: acaweb_fx User: postgres
84 1 1s121ms 1s121ms 1s121ms 1s121ms insert into autochartist_results (resultid, symbolid, bandwidth, pattern, qtytp, gmttimefound, direction, initialtrend, breakout, volumeincrease, noise, symmetry, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimeto, patternstarttime, patternendtime, patternstartprice, patternendprice, resx0, resx1, supportx0, supportx1, resy0, resy1, supporty0, supporty1, supportgradient, resgradient, riskreward, patternquality, trendchange, maxmovementafterbreakout, latestbaratbreakouttime, latestbaratbreakoutprice, patternlengthbars, temporarypattern, relevancestartdistance, simulation, writtendatetime) select distinct ?, ?, ?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?, ?.?, ?::timestamp without time zone, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from autochartist_results where (breakout = ?.? and resx0 = ?::timestamp without time zone and resx1 = ?::timestamp without time zone and supportx0 = ?::timestamp without time zone and supportx1 = ?::timestamp without time zone and resy0 = ?.? and resy1 = ?.? and supporty0 = ?.? and supporty1 = ?.? and symbolid = ?) or resultid = ?) limit ? on conflict do nothing; ;-
INSERT INTO Autochartist_Results (ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient, RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '9701211|44400.6458|44403.1042|44400.7292|44403.1458|25.293|25.197|24.999|25.115', 970121, 2.000000000000000000000000000000, 'Triangle', 4, '2021-07-26 01:34:47'::timestamp without time zone, 1, 0.265205601536358526200000000000, 1.000000000000000000000000000000, 0.000000000000000000000000000000, 0.890748292114598494400000000000, 0.117096481590566153800000000000, 25.350814601819703140000000000000, 25.427555044367288420000000000000, '2021-07-26 04:00:00'::timestamp without time zone, '2021-07-27 10:15:00'::timestamp without time zone, '2021-07-23 15:30:00'::timestamp without time zone, '2021-07-26 04:00:00'::timestamp without time zone, 25.039000000000001480000000000000, 25.182600000000000760000000000000, '2021-07-23 15:30:00'::timestamp without time zone, '2021-07-26 02:30:00'::timestamp without time zone, '2021-07-23 17:30:00'::timestamp without time zone, '2021-07-26 03:30:00'::timestamp without time zone, 25.292999999999999260000000000000, 25.196999999999999180000000000000, 24.998999999999998780000000000000, 25.114999999999998440000000000000, 0.006444444444444425400000000000, - 0.004800000000000003916000000000, 1.594612627397845594000000000000, 0.372888447753081553300000000000, 'Continuation', 0.113399999999998613000000000000, '2021-07-26 04:00:00'::timestamp without time zone, 25.295999999999999380000000000000, 23, 0, 0.188000000000000611100000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = 1.000000000000000000000000000000 and resx0 = '2021-07-23 15:30:00'::timestamp without time zone and resx1 = '2021-07-26 02:30:00'::timestamp without time zone and supportx0 = '2021-07-23 17:30:00'::timestamp without time zone and supportx1 = '2021-07-26 03:30:00'::timestamp without time zone and resy0 = 25.292999999999999260000000000000 and resy1 = 25.196999999999999180000000000000 and supporty0 = 24.998999999999998780000000000000 and supporty1 = 25.114999999999998440000000000000 and symbolid = 970121) or resultid = '9701211|44400.6458|44403.1042|44400.7292|44403.1458|25.293|25.197|24.999|25.115') LIMIT 1 ON CONFLICT DO NOTHING; ;
Date: 2021-07-26 03:35:16 Database: acaweb_fx User: postgres
85 1 1s47ms 1s47ms 1s47ms 1s47ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 919880, '2021-07-25 21:00:00'::timestamp without time zone, 6943, 6945, 6931.5, 6940, 198, 0, '2021-07-26 03:46:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 919880 AND pricedatetime = '2021-07-25 21:00:00'::timestamp without time zone); ;
Date: 2021-07-26 03:46:03 Database: acaweb_fx User: postgres
Queries that waited the most
Rank Wait time Query 1 14m3s UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 00:30:00', reason = 'Pattern formed a Breakout pattern.' WHERE uniqueIndex = '|960521|0.73549|2|2021-07-23 17:45:00|1|-1' and relevant = 1;[ Date: 2021-07-26 03:06:25 - Database: acaweb_fx - User: postgres ]
2 5m47s UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:45:00', reason = 'Pattern formed a Breakout pattern (see |974475|87.861|2|2021-07-26 03:45:00|-1|1).' WHERE uniqueIndex = '|974475|87.861|2|2021-07-23 21:15:00|1|-1' and relevant = 1;[ Date: 2021-07-26 03:06:25 - Database: acaweb_fx - User: postgres ]
3 4m45s UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:30:00', reason = 'Pattern formed a Breakout pattern (see |1032237|0.60653|1|2021-07-26 03:30:00|1|1).' WHERE uniqueIndex = '|1032237|0.60653|1|2021-07-25 12:00:00|-1|-1' and relevant = 1;[ Date: 2021-07-26 03:06:25 - Database: acaweb_fx - User: postgres ]
4 4m45s UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:30:00', reason = 'Pattern formed a Breakout pattern (see |1032237|0.60653|1|2021-07-26 03:30:00|1|1).' WHERE uniqueIndex = '|1032237|0.60653|1|2021-07-25 12:30:00|-1|-1' and relevant = 1;[ Date: 2021-07-26 03:06:25 - Database: acaweb_fx - User: postgres ]
5 4m19s UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:45:00', reason = 'Pattern formed a Breakout pattern (see |974395|81.3105|2|2021-07-26 03:45:00|-1|1).' WHERE uniqueIndex = '|974395|81.3105|2|2021-07-23 21:15:00|1|-1' and relevant = 1;[ Date: 2021-07-26 03:06:25 - Database: acaweb_fx - User: postgres ]
6 1m13s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';[ Date: 2021-07-26 03:33:37 - Database: acaweb_fx - User: postgres ]
7 1m13s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';[ Date: 2021-07-26 03:33:37 - Database: acaweb_fx - User: postgres ]
8 1m13s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';[ Date: 2021-07-26 03:33:37 - Database: acaweb_fx - User: postgres ]
9 44s409ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';[ Date: 2021-07-26 03:47:53 - Database: acaweb_fx - User: postgres ]
10 44s407ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';[ Date: 2021-07-26 03:47:53 - Database: acaweb_fx - User: postgres ]
11 25s552ms SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 1';[ Date: 2021-07-26 03:47:53 - Database: acaweb_fx - User: postgres ]
12 24s655ms SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'ATFX - 1';[ Date: 2021-07-26 03:17:53 - Database: acaweb_fx - User: postgres ]
13 22s596ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';[ Date: 2021-07-26 03:17:53 - Database: acaweb_fx - User: postgres ]
14 21s897ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';[ Date: 2021-07-26 03:17:53 - Database: acaweb_fx - User: postgres ]
15 21s584ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';[ Date: 2021-07-26 03:17:53 - Database: acaweb_fx - User: postgres ]
16 9s148ms SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 2';[ Date: 2021-07-26 03:33:37 - Database: acaweb_fx - User: postgres ]
17 8s642ms INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1020947, '2021-07-26 00:00:00'::timestamp without time zone, 120.034, 120.217, 120.034, 120.041, 7431, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1020947 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 03:02:34 - Database: acaweb_fx - User: postgres ]
18 8s635ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969031, '2021-07-26 03:30:00'::timestamp without time zone, 1.47999, 1.48031, 1.4799, 1.48017, 10384, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 969031 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 03:02:33 - Database: acaweb_fx - User: postgres ]
19 8s634ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 962028, '2021-07-26 02:00:00'::timestamp without time zone, 1.8704, 1.8708, 1.8697, 1.8704, 690, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 962028 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 03:02:34 - Database: acaweb_fx - User: postgres ]
20 8s600ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920814, '2021-07-25 20:30:00'::timestamp without time zone, 4.007, 4.009, 4.002, 4.004, 188, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 920814 AND pricedatetime = '2021-07-25 20:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 03:02:33 - Database: acaweb_fx - User: postgres ]
-
Queries
Queries by type
Key values
- 18,823 Total read queries
- 35,271 Total write queries
Queries by database
Key values
- acaweb_fx Main database
- 54,102 Requests
- 1d14h41m33s (acaweb_fx)
- Main time consuming database
Queries by user
Key values
- postgres Main user
- 54,102 Requests
User Request type Count Duration postgres Total 54,102 1d14h41m33s copy from 49 30s622ms copy to 26 1m32s cte 833 4h27m43s ddl 10 1m37s delete 13 1s704ms insert 29,173 4h41m6s others 8 16m19s select 18,823 1d4h14m39s update 5,167 58m2s Duration by user
Key values
- 1d14h41m33s (postgres) Main time consuming user
User Request type Count Duration postgres Total 54,102 1d14h41m33s copy from 49 30s622ms copy to 26 1m32s cte 833 4h27m43s ddl 10 1m37s delete 13 1s704ms insert 29,173 4h41m6s others 8 16m19s select 18,823 1d4h14m39s update 5,167 58m2s Queries by host
Key values
- unknown Main host
- 54,102 Requests
- 1d14h41m33s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 54,102 Requests
- 1d14h41m33s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 1 per second Cancelled query Peak
- 2021-07-26 03:33:28 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 24,026 100-500ms duration
Slowest individual queries
Rank Duration Query 1 1h4m43s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:43:15 - Database: acaweb_fx - User: postgres ]
2 1h2m4s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:44:33 - Database: acaweb_fx - User: postgres ]
3 1h2m3s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:43:32 - Database: acaweb_fx - User: postgres ]
4 58m50s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4446 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4446 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:43:32 - Database: acaweb_fx - User: postgres ]
5 46m42s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4871 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4871 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:16:56 - Database: acaweb_fx - User: postgres ]
6 34m34s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4130 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4130 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:13:05 - Database: acaweb_fx - User: postgres ]
7 33m18s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4439 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4439 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:15:45 - Database: acaweb_fx - User: postgres ]
8 33m18s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4440 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4440 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:15:45 - Database: acaweb_fx - User: postgres ]
9 32m37s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:11:08 - Database: acaweb_fx - User: postgres ]
10 30m48s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:09:16 - Database: acaweb_fx - User: postgres ]
11 30m48s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:09:16 - Database: acaweb_fx - User: postgres ]
12 30m44s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4133 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4133 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:09:16 - Database: acaweb_fx - User: postgres ]
13 30m44s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4134 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4134 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:09:16 - Database: acaweb_fx - User: postgres ]
14 30m40s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4432 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4432 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:13:05 - Database: acaweb_fx - User: postgres ]
15 28m42s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4436 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4436 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:11:08 - Database: acaweb_fx - User: postgres ]
16 28m35s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4390 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4390 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:09:12 - Database: acaweb_fx - User: postgres ]
17 27m40s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4400 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4400 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:09:42 - Database: acaweb_fx - User: postgres ]
18 26m select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4459 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4459 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:38:16 - Database: acaweb_fx - User: postgres ]
19 25m8s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:51:44 - Database: acaweb_fx - User: postgres ]
20 24m45s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4761 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4761 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 03:51:44 - Database: acaweb_fx - User: postgres ]
Time consuming queries
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 17h39m58s 171 127ms 1h4m43s 6m11s select qtytp, replace(symbol, ?, ?) as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ? group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 26 03 171 17h39m58s 6m11s [ User: postgres - Total duration: 17h39m58s - Times executed: 171 ]
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:43:15 Duration: 1h4m43s Database: acaweb_fx User: postgres
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:44:33 Duration: 1h2m4s Database: acaweb_fx User: postgres
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:43:32 Duration: 1h2m3s Database: acaweb_fx User: postgres
2 2h18m14s 69 992ms 20m44s 2m (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?)));Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 26 03 69 2h18m14s 2m [ User: postgres - Total duration: 2h18m14s - Times executed: 69 ]
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:36:08 Duration: 20m44s Database: acaweb_fx User: postgres Bind query: yes
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:36:08 Duration: 13m10s Database: acaweb_fx User: postgres Bind query: yes
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:29:54 Duration: 8m26s Database: acaweb_fx User: postgres Bind query: yes
3 1h47m15s 131 203ms 11m15s 49s125ms with rar_max as ( select resultuid from relevance_autochartist_results order by resultuid desc limit ? ), results as ( select distinct on (s.symbolid) ar.resultuid as resultuid, ar.direction as direction, ar.predictiontimeto as predictiontimeto, ar.predictionpricefrom as predictionpricefrom, ar.predictionpriceto as predictionpriceto, cp.pip as pip, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, ar.pattern as pattern_name, ar.breakout as breakout, ar.patternendtime as identified, dtt.timezone as timezone, ar.patternlengthbars as length, g.basegroupname, newlevels.profit, newlevels.stop, newlevels.filtered, case when rar.age is not null then rar.age when ar.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when ar.resultuid <= rm.resultuid then ? else ? end as relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = ar.symbolid inner join symbols s on ar.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on ar.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join downloadersymbolsettings dss on ar.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_autochartist_results rar on rar.resultuid = ar.resultuid left outer join currencypips cp on s.symbol = cp.symbol left join lateral calc_cp_signal (ar.resultuid) newlevels on true where ar.gmttimefound > now() - interval ? and (ar.simulation = ? or ar.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or ar.pattern in (...)) and (? = ? or (? = ? and ar.breakout >= ?) or (? = ? and ar.breakout < ?)) and (? = ? or ar.patternlengthbars <= ?) and newlevels.filtered = false order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 26 03 131 1h47m15s 49s125ms [ User: postgres - Total duration: 1h47m15s - Times executed: 131 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:33:34 Duration: 11m15s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('31' = 0 OR s.symbol in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNZD', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'JPN225', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGUSD', 'XAUUSD')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:52:18 Duration: 6m48s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '666' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:21:22 Duration: 6m31s Database: acaweb_fx User: postgres Bind query: yes
4 1h34m48s 137 97ms 22m20s 41s522ms with rar_max as ( select resultuid from relevance_keylevels_results order by resultuid desc limit ? ), results as ( select distinct on (s.symbolid) kr.resultuid as resultuid, kr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, p.patternname as pattern_name, kr.breakout as breakout, kr.atbaridentified as identified, dtt.timezone as timezone, kr.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when rar.age is not null then rar.age when kr.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when kr.resultuid <= rm.resultuid then ? else ? end as relevant from keylevels_results kr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = kr.symbolid inner join symbols s on kr.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on kr.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join hrspatterns p on kr.patternid = p.patternid inner join downloadersymbolsettings dss on kr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_keylevels_results rar on rar.resultuid = kr.resultuid left join lateral calc_kl_signal_filter (kr.resultuid) newlevels on true where kr.gmttimefound > now() - interval ? and (kr.simulation = ? or kr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or p.patternname in (...)) and (? = ? or kr.patternclassid in (...)) and (? = ? or kr.patternlengthbars <= ?) order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 26 03 137 1h34m48s 41s522ms [ User: postgres - Total duration: 1h34m48s - Times executed: 137 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR p.patternname in ('')) AND ('2' = 0 OR kr.patternclassid in ('1', '2')) AND ('400' = 0 OR kr.patternlengthbars <= '400') ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:36:10 Duration: 22m20s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '572' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('99' = 0 OR s.symbol in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNOK', 'EURNZD', 'EURSEK', 'EURTRY', 'EURUSD', 'GAGEUR', 'GAGUSD', 'GAUEUR', 'GAUTRY', 'GAUUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPTRY', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDTRY', 'USDZAR', 'XAGEUR', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'BITCOINCASH', 'ETHEREUM', 'LITECOIN', 'RIPPLE', 'ADIDAS', 'APPLE', 'BMW', 'BOFA', 'BP', 'DAIMLER', 'DEUTSCHBANK', 'DISNEY', 'EEM', 'EXS1', 'EXW1', 'EXXONMOBIL', 'FACEBOOK', 'GDX', 'GLD', 'GOOGLE', 'LVMH', 'MICROSOFT', 'QQQ', 'SPY', 'TLT', 'USO', 'WAL-MART', 'BUND10YR', 'COCOA', 'COFFEE', 'COPPER', 'CORN', 'COTTON', 'DOW30', 'ESP35', 'EU50', 'FRA40', 'GER30', 'GILT10YR', 'ITA40', 'JPN225', 'NAS100', 'NATGAS', 'SOYBEAN', 'SPX500', 'SUGAR', 'UK100', 'UKOIL', 'US10YR', 'USOIL', 'WHEAT')) AND ('0' = 0 OR p.patternname in ('')) AND ('2' = 0 OR kr.patternclassid in ('1', '2')) AND ('400' = 0 OR kr.patternlengthbars <= '400') ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:52:58 Duration: 10m5s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '763' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ('0' = 0 OR s.timegranularity in ('0')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR p.patternname in ('')) AND ('0' = 0 OR kr.patternclassid in ('0')) AND ('0' = 0 OR kr.patternlengthbars <= '0') ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:52:41 Duration: 9m35s Database: acaweb_fx User: postgres Bind query: yes
5 1h25m13s 3,773 50ms 8s735ms 1s355ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 26 03 3,773 1h25m13s 1s355ms [ User: postgres - Total duration: 1h25m13s - Times executed: 3773 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022889, '2021-07-26 03:45:00'::timestamp without time zone, 1.59949, 1.60033, 1.59942, 1.59978, 1003, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1022889 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s735ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989745, '2021-07-23 20:15:00'::timestamp without time zone, 89.66, 89.75, 89.6, 89.6, 58, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 989745 AND pricedatetime = '2021-07-23 20:15:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s658ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1011001, '2021-07-26 03:45:00'::timestamp without time zone, 1.00112, 1.00124, 1.00055, 1.00087, 688, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1011001 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s611ms Database: acaweb_fx User: postgres
6 1h2m34s 244 50ms 8m27s 15s388ms select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((s.symbol ilike ? and timegranularity <= ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 26 03 244 1h2m34s 15s388ms [ User: postgres - Total duration: 1h2m34s - Times executed: 244 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:15 Duration: 8m27s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:15 Duration: 8m24s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:23:02 Duration: 6m46s Database: acaweb_fx User: postgres Bind query: yes
7 48m22s 2,043 50ms 8s778ms 1s420ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 26 03 2,043 48m22s 1s420ms [ User: postgres - Total duration: 48m22s - Times executed: 2043 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969031, '2021-07-26 03:30:00'::timestamp without time zone, 1.47999, 1.48031, 1.4799, 1.48017, 10384, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 969031 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s778ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920814, '2021-07-25 20:30:00'::timestamp without time zone, 4.007, 4.009, 4.002, 4.004, 188, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 920814 AND pricedatetime = '2021-07-25 20:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s738ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982431, '2021-07-26 03:30:00'::timestamp without time zone, 4401.8, 4403.5, 4398.8, 4400.8, 623, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 982431 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s729ms Database: acaweb_fx User: postgres
8 47m26s 1,700 50ms 57s163ms 1s674ms select distinct a.resultuid as ruid, c.symbolid as sid, c.symbol as sym, c.longname as longname, c.shortname, c.exchange as e, c.timegranularity as tg, p.patternid as pid, a.direction as d, cast(atbaridentified as timestamp) as pet, cast(patternstarttime as timestamp) as pst, patternprice as patp, breakoutprice as pe, breakoutbars as be, errormargin as erm, patternlengthbars as l, bandwidth as bw, qtytp as qtp, p.patternname as patternname, cast(x0 as timestamp) as x0, cast(x1 as timestamp) as x1, cast(x2 as timestamp) as x2, cast(( case when x3 = ? then ? else x3 end) as timestamp) as x3, cast(( case when x4 = ? then ? else x4 end) as timestamp) as x4, cast(( case when x5 = ? then ? else x5 end) as timestamp) as x5, cast(( case when x6 = ? then ? else x6 end) as timestamp) as x6, cast(( case when x7 = ? then ? else x7 end) as timestamp) as x7, cast(( case when x8 = ? then ? else x8 end) as timestamp) as x8, cast(( case when x9 = ? then ? else x9 end) as timestamp) as x9, cast(atbaridentified as timestamp) as patternendtime, cast(atbaridentified as timestamp) as atbar, cast(( case when approachingtimestamp = ? then ? else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzos, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as relevant, cast(?.? as double precision) as premium, cast(? as bigint) as instrumentid, ? as derivativeid, ? as underlyingid, ? as isunderlying from symbols c inner join brokersymbollist b on c.symbolid = b.symbolid inner join symbolgroup sg on c.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = c.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join keylevels_results a on a.symbolid = c.symbolid inner join hrspatterns p on a.patternid = p.patternid left outer join relevance_keylevels_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and groupid = ? and patternclassid = ? and patternlengthbars >= ? and a.patternid & ? > ? and dftt.dayofweek = ? and a.qtytp >= ? and a.resultuid > ? and c.nonliquid = ? and c.deleted = ? and dss.enabled = ? order by relevant desc, age asc, patternendtime desc, qtp desc limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 26 03 1,700 47m26s 1s674ms [ User: postgres - Total duration: 47m26s - Times executed: 1700 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 637 AND groupid = 4580 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:42:59 Duration: 57s163ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 619 AND groupid = 4274 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:48:11 Duration: 39s157ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 489 AND groupid = 3133 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:52:38 Duration: 38s946ms Database: acaweb_fx User: postgres Bind query: yes
9 46m29s 4,408 50ms 14m3s 632ms update patternresultsrelevance set relevant = ?, saxo_relevant = ?, notrelevantpricedatetime = ?, reason = ? where uniqueindex = ? and relevant = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 26 03 4,408 46m29s 632ms [ User: postgres - Total duration: 46m29s - Times executed: 4408 ]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 00:30:00', reason = 'Pattern formed a Breakout pattern.' WHERE uniqueIndex = '|960521|0.73549|2|2021-07-23 17:45:00|1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Duration: 14m3s Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:45:00', reason = 'Pattern formed a Breakout pattern (see |974475|87.861|2|2021-07-26 03:45:00|-1|1).' WHERE uniqueIndex = '|974475|87.861|2|2021-07-23 21:15:00|1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Duration: 5m47s Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:30:00', reason = 'Pattern formed a Breakout pattern (see |1032237|0.60653|1|2021-07-26 03:30:00|1|1).' WHERE uniqueIndex = '|1032237|0.60653|1|2021-07-25 12:00:00|-1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Duration: 4m45s Database: acaweb_fx User: postgres
10 27m37s 1,022 53ms 8s764ms 1s621ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 26 03 1,022 27m37s 1s621ms [ User: postgres - Total duration: 27m37s - Times executed: 1022 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 962028, '2021-07-26 02:00:00'::timestamp without time zone, 1.8704, 1.8708, 1.8697, 1.8704, 690, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 962028 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s764ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989407, '2021-07-26 02:00:00'::timestamp without time zone, 1.97004, 1.97367, 1.96984, 1.97295, 5730, 0, '2021-07-26 03:05:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 989407 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 03:05:20 Duration: 6s460ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986402, '2021-07-26 03:00:00'::timestamp without time zone, 20.37628, 20.42063, 20.37368, 20.40652, 1223, 0, '2021-07-26 03:05:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 986402 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone);
Date: 2021-07-26 03:05:17 Duration: 6s179ms Database: acaweb_fx User: postgres
11 26m55s 147 60ms 46s612ms 10s988ms select * from ( select pricedatetime, open, high, low, close, volume, bsf from t15 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 26 03 147 26m55s 10s988ms [ User: postgres - Total duration: 26m55s - Times executed: 147 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '982515' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:47:34 Duration: 46s612ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '987990' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:28:41 Duration: 39s587ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '986760' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:30:29 Duration: 35s917ms Database: acaweb_fx User: postgres Bind query: yes
12 25m58s 9 4s 8m27s 2m53s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((s.symbol ilike ? and timegranularity <= ?)) or ((s.symbol ilike ? and timegranularity = ?)) or ((s.symbol ilike ? and timegranularity = ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 26 03 9 25m58s 2m53s [ User: postgres - Total duration: 25m58s - Times executed: 9 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:15 Duration: 8m27s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:23:02 Duration: 6m47s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:53:02 Duration: 3m9s Database: acaweb_fx User: postgres Bind query: yes
13 24m50s 856 50ms 52s422ms 1s740ms select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and breakout = ? and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 26 03 856 24m50s 1s740ms [ User: postgres - Total duration: 24m50s - Times executed: 856 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:42:41 Duration: 52s422ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:23:49 Duration: 49s817ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:25:15 Duration: 47s778ms Database: acaweb_fx User: postgres Bind query: yes
14 24m8s 164 95ms 48s472ms 8s834ms select * from ( select pricedatetime, open, high, low, close, volume, bsf from t60 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 26 03 164 24m8s 8s834ms [ User: postgres - Total duration: 24m8s - Times executed: 164 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1026611' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:46:38 Duration: 48s472ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '988177' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:53:08 Duration: 46s279ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '988177' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:53:08 Duration: 45s971ms Database: acaweb_fx User: postgres Bind query: yes
15 23m6s 55 715ms 18m47s 25s203ms with rar_max as ( select resultuid from relevance_autochartist_results order by resultuid desc limit ? ), results as ( select distinct on (s.symbolid) ar.resultuid as resultuid, ar.direction as direction, ar.predictiontimeto as predictiontimeto, ar.predictionpricefrom as predictionpricefrom, ar.predictionpriceto as predictionpriceto, cp.pip as pip, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, ar.pattern as pattern_name, ar.breakout as breakout, ar.patternendtime as identified, dtt.timezone as timezone, ar.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when rar.age is not null then rar.age when ar.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when ar.resultuid <= rm.resultuid then ? else ? end as relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = ar.symbolid inner join symbols s on ar.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on ar.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join downloadersymbolsettings dss on ar.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_autochartist_results rar on rar.resultuid = ar.resultuid left outer join currencypips cp on s.symbol = cp.symbol left join lateral calc_cp_signal (ar.resultuid) newlevels on true where ar.gmttimefound > now() - interval ? and (ar.simulation = ? or ar.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or ar.pattern in (...)) and (? = ? or (? = ? and ar.breakout >= ?) or (? = ? and ar.breakout < ?)) and (? = ? or ar.patternlengthbars <= ?) and newlevels.filtered = false order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 26 03 55 23m6s 25s203ms [ User: postgres - Total duration: 23m6s - Times executed: 55 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:55:57 Duration: 18m47s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:58:00 Duration: 26s656ms Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:13:49 Duration: 9s697ms Database: acaweb_fx User: postgres Bind query: yes
16 22m29s 4,606 50ms 3s484ms 292ms insert into autochartist_results (resultid, symbolid, bandwidth, pattern, qtytp, gmttimefound, direction, initialtrend, breakout, volumeincrease, noise, symmetry, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimeto, patternstarttime, patternendtime, patternstartprice, patternendprice, resx0, resx1, supportx0, supportx1, resy0, resy1, supporty0, supporty1, supportgradient, resgradient, riskreward, patternquality, trendchange, maxmovementafterbreakout, latestbaratbreakouttime, latestbaratbreakoutprice, patternlengthbars, temporarypattern, relevancestartdistance, simulation, writtendatetime) select distinct ?, ?, ?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?, ?.?, ?::timestamp without time zone, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from autochartist_results where (breakout = ?.? and resx0 = ?::timestamp without time zone and resx1 = ?::timestamp without time zone and supportx0 = ?::timestamp without time zone and supportx1 = ?::timestamp without time zone and resy0 = ?.? and resy1 = ?.? and supporty0 = ?.? and supporty1 = ?.? and symbolid = ?) or resultid = ?) limit ? on conflict do nothing;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 26 03 4,606 22m29s 292ms [ User: postgres - Total duration: 22m29s - Times executed: 4606 ]
-
INSERT INTO Autochartist_Results (ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient, RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '954111-1|44400.7292|44403.1562|44400.6667|44403.0104|0.9216|0.9202|0.9196|0.919', 954111, 3.000000000000000000000000000000, 'Falling Wedge', 4, '2021-07-26 01:29:42'::timestamp without time zone, - 1, 0.489116622947861679000000000000, - 1.000000000000000000000000000000, 0.127263603438495465100000000000, 0.124224892974093920100000000000, 0.071854946975290961980000000000, 0.918542325538810877600000000000, 0.919182635641171197400000000000, '2021-07-26 04:15:00'::timestamp without time zone, '2021-07-27 10:22:30'::timestamp without time zone, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 04:15:00'::timestamp without time zone, 0.922189999999999954200000000000, 0.919529999999999958500000000000, '2021-07-23 17:30:00'::timestamp without time zone, '2021-07-26 03:45:00'::timestamp without time zone, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 00:15:00'::timestamp without time zone, 0.921560000000000045800000000000, 0.920239999999999946900000000000, 0.919649999999999967500000000000, 0.918980000000000019100000000000, - 0.000020303030303028741270000000, - 0.000032195121951221926850000000, 1.919074762716650229000000000000, 0.478915558983019573600000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 04:15:00'::timestamp without time zone, 0.919640000000000013000000000000, 49, 0, 0.001585000000000003073000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 17:30:00'::timestamp without time zone and resx1 = '2021-07-26 03:45:00'::timestamp without time zone and supportx0 = '2021-07-23 16:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:15:00'::timestamp without time zone and resy0 = 0.921560000000000045800000000000 and resy1 = 0.920239999999999946900000000000 and supporty0 = 0.919649999999999967500000000000 and supporty1 = 0.918980000000000019100000000000 and symbolid = 954111) or resultid = '954111-1|44400.7292|44403.1562|44400.6667|44403.0104|0.9216|0.9202|0.9196|0.919') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:30:12 Duration: 3s484ms Database: acaweb_fx User: postgres
-
INSERT INTO Autochartist_Results (ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient, RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '954111-1|44400.6042|44403.1562|44400.6667|44403.0104|0.9222|0.9202|0.9196|0.919', 954111, 3.000000000000000000000000000000, 'Falling Wedge', 5, '2021-07-26 01:29:42'::timestamp without time zone, - 1, 0.930360495219786254300000000000, - 1.000000000000000000000000000000, 0.199641856834565451000000000000, 0.077739269528130150460000000000, 0.074443413224301938080000000000, 0.917682102326861426400000000000, 0.918824209302858907500000000000, '2021-07-26 04:15:00'::timestamp without time zone, '2021-07-27 11:07:30'::timestamp without time zone, '2021-07-23 14:30:00'::timestamp without time zone, '2021-07-26 04:15:00'::timestamp without time zone, 0.918760000000000021100000000000, 0.919529999999999958500000000000, '2021-07-23 14:30:00'::timestamp without time zone, '2021-07-26 03:45:00'::timestamp without time zone, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 00:15:00'::timestamp without time zone, 0.922189999999999954200000000000, 0.920239999999999946900000000000, 0.919649999999999967500000000000, 0.918980000000000019100000000000, - 0.000020303030303028741270000000, - 0.000036792452830188815380000000, 2.796067786384582643000000000000, 0.642354879638652676000000000000, 'Reversal', 0.000000000000000000000000000000, '2021-07-26 04:15:00'::timestamp without time zone, 0.919640000000000013000000000000, 55, 0, 0.001899999999999957279000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 14:30:00'::timestamp without time zone and resx1 = '2021-07-26 03:45:00'::timestamp without time zone and supportx0 = '2021-07-23 16:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:15:00'::timestamp without time zone and resy0 = 0.922189999999999954200000000000 and resy1 = 0.920239999999999946900000000000 and supporty0 = 0.919649999999999967500000000000 and supporty1 = 0.918980000000000019100000000000 and symbolid = 954111) or resultid = '954111-1|44400.6042|44403.1562|44400.6667|44403.0104|0.9222|0.9202|0.9196|0.919') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:30:11 Duration: 3s397ms Database: acaweb_fx User: postgres
-
INSERT INTO Autochartist_Results (ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient, RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '10267100.2904|44398.7083|44400.6875|44397.6875|44399.9375|173.53|179.48|161.88|170.31', 1026710, 2.000000000000000000000000000000, 'Channel Up', 4, '2021-07-26 01:43:47'::timestamp without time zone, - 1, 1.000000000000000000000000000000, 0.290386768886187529600000000000, 0.204629511332999225500000000000, 0.476435623968357757600000000000, 0.697321973161372010700000000000, 164.243100452313200300000000000000, 169.362958521797168000000000000000, '2021-07-23 22:30:00'::timestamp without time zone, '2021-07-25 13:30:00'::timestamp without time zone, '2021-07-20 16:30:00'::timestamp without time zone, '2021-07-23 22:30:00'::timestamp without time zone, 173.120000000000004600000000000000, 173.193947368421049800000000000000, '2021-07-21 17:00:00'::timestamp without time zone, '2021-07-23 16:30:00'::timestamp without time zone, '2021-07-20 16:30:00'::timestamp without time zone, '2021-07-22 22:30:00'::timestamp without time zone, 173.530000000000001100000000000000, 179.479999999999989800000000000000, 161.879999999999995400000000000000, 170.310000000000002300000000000000, 0.221842105263158062600000000000, 0.237999999999999545200000000000, 2.686859523110837422000000000000, 0.627818279519800404000000000000, 'Continuation', - 0.173947368421039527700000000000, '2021-07-23 22:30:00'::timestamp without time zone, 173.020000000000010200000000000000, 51, 0, 10.409999999999996589000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = 0.290386768886187529600000000000 and resx0 = '2021-07-21 17:00:00'::timestamp without time zone and resx1 = '2021-07-23 16:30:00'::timestamp without time zone and supportx0 = '2021-07-20 16:30:00'::timestamp without time zone and supportx1 = '2021-07-22 22:30:00'::timestamp without time zone and resy0 = 173.530000000000001100000000000000 and resy1 = 179.479999999999989800000000000000 and supporty0 = 161.879999999999995400000000000000 and supporty1 = 170.310000000000002300000000000000 and symbolid = 1026710) or resultid = '10267100.2904|44398.7083|44400.6875|44397.6875|44399.9375|173.53|179.48|161.88|170.31') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:44:16 Duration: 3s83ms Database: acaweb_fx User: postgres
17 21m11s 3,205 50ms 4s673ms 396ms insert into keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errormargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestprice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) select distinct ?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?.?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?.?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?.?, ?.?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from keylevels_results where uniquepointsvalue = ?) limit ? on conflict do nothing;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 26 03 3,205 21m11s 396ms [ User: postgres - Total duration: 21m11s - Times executed: 3205 ]
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 6.000000000000000000000000000000, - 1, 2, '2021-07-26 01:43:43'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 48, 303.550000000000011400000000000000, '2021-07-20 16:30:00', '2021-07-20 12:45:00', '2021-07-19 13:15:00', '2021-07-19 13:00:00', '', '', '', '', '', '', 120, 303.189999999999997700000000000000, '2021-07-23 18:15:00'::timestamp without time zone, '2021-07-23 18:15:00', 0.000000000000000000000000000000, 0.362500000000000044400000000000, 1, 1026969, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1026969|303.55|2|2021-07-23 18:15:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-19 13:00:00', 301.199999999999988600000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1026969|303.55|2|2021-07-23 18:15:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:44:14 Duration: 4s673ms Database: acaweb_fx User: postgres
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, - 1, 1, '2021-07-26 01:28:56'::timestamp without time zone, '', 0.500000000000000000000000000000, 3, 54, 4.519999999999999574000000000000, '2021-07-23 11:45:00', '2021-07-21 04:15:00', '2021-07-21 04:00:00', '', '', '', '', '', '', '', 108, 4.525749999999999496000000000000, '2021-07-26 04:00:00'::timestamp without time zone, '2021-07-26 04:00:00', 0.000000000000000000000000000000, 0.005750000000000011178000000000, - 1, 1027576, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1027576|4.52|1|2021-07-26 04:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-21 04:00:00', 4.589999999999999858000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1027576|4.52|1|2021-07-26 04:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:29:25 Duration: 3s404ms Database: acaweb_fx User: postgres
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 9.000000000000000000000000000000, - 1, 1, '2021-07-26 01:02:03'::timestamp without time zone, '', 0.500000000000000000000000000000, 5, 156, 1.268000000000000016000000000000, '2021-07-23 14:00:00', '2021-07-23 07:00:00', '2021-07-22 20:00:00', '2021-07-15 08:00:00', '2021-07-14 23:00:00', '', '', '', '', '', 468, 1.269128500000000104000000000000, '2021-07-26 02:00:00'::timestamp without time zone, '2021-07-26 02:00:00', 0.000000000000000000000000000000, 0.001153999999999999427000000000, - 1, 1016278, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1016278|1.268|1|2021-07-26 02:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-14 23:00:00', 1.274240000000000039000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1016278|1.268|1|2021-07-26 02:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:02:32 Duration: 3s175ms Database: acaweb_fx User: postgres
18 21m5s 695 57ms 8s705ms 1s820ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 03 695 21m5s 1s820ms [ User: postgres - Total duration: 21m5s - Times executed: 695 ]
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1020947, '2021-07-26 00:00:00'::timestamp without time zone, 120.034, 120.217, 120.034, 120.041, 7431, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1020947 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s705ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977103, '2021-07-26 00:00:00'::timestamp without time zone, 1.59693, 1.60033, 1.59628, 1.59982, 8405, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 977103 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s693ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1003029, '2021-07-26 00:00:00'::timestamp without time zone, 14.78686, 14.85201, 14.78686, 14.84228, 3307, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1003029 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s652ms Database: acaweb_fx User: postgres
19 19m36s 463 50ms 3m 2s541ms select distinct a.resultuid as ruid, c.symbolid as sid, c.symbol as sym, c.longname as longname, c.shortname, c.exchange as e, c.timegranularity as tg, p.patternid as pid, a.direction as d, cast(atbaridentified as timestamp) as pet, cast(patternstarttime as timestamp) as pst, patternprice as patp, breakoutprice as pe, breakoutbars as be, errormargin as erm, patternlengthbars as l, bandwidth as bw, qtytp as qtp, p.patternname as patternname, cast(x0 as timestamp) as x0, cast(x1 as timestamp) as x1, cast(x2 as timestamp) as x2, cast(( case when x3 = ? then ? else x3 end) as timestamp) as x3, cast(( case when x4 = ? then ? else x4 end) as timestamp) as x4, cast(( case when x5 = ? then ? else x5 end) as timestamp) as x5, cast(( case when x6 = ? then ? else x6 end) as timestamp) as x6, cast(( case when x7 = ? then ? else x7 end) as timestamp) as x7, cast(( case when x8 = ? then ? else x8 end) as timestamp) as x8, cast(( case when x9 = ? then ? else x9 end) as timestamp) as x9, cast(atbaridentified as timestamp) as patternendtime, cast(atbaridentified as timestamp) as atbar, cast(( case when approachingtimestamp = ? then ? else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzos, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as relevant, cast(?.? as double precision) as premium, cast(? as bigint) as instrumentid, ? as derivativeid, ? as underlyingid, ? as isunderlying from symbols c inner join brokersymbollist b on c.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = c.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join keylevels_results a on a.symbolid = c.symbolid inner join hrspatterns p on a.patternid = p.patternid left outer join relevance_keylevels_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((c.symbol ilike ? and timegranularity <= ?))) and patternclassid = ? and patternlengthbars >= ? and a.patternid & ? > ? and dftt.dayofweek = ? and a.resultuid > ? and c.nonliquid = ? and c.deleted = ? and dss.enabled = ? order by relevant desc, age asc, patternendtime desc, qtp desc limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 26 03 463 19m36s 2s541ms [ User: postgres - Total duration: 19m36s - Times executed: 463 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((c.symbol ilike '%usdx%' AND timegranularity <= 1440))) AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:46:58 Duration: 3m Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((c.symbol ilike '%usdx%' AND timegranularity <= 1440))) AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:52:19 Duration: 2m25s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((c.symbol ilike '%chi50%' AND timegranularity <= 1440))) AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:48:59 Duration: 2m23s Database: acaweb_fx User: postgres Bind query: yes
20 18m26s 62 1s231ms 51s349ms 17s852ms select * from ( select pricedatetime, open, high, low, close, volume, bsf from t30 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 26 03 62 18m26s 17s852ms [ User: postgres - Total duration: 18m26s - Times executed: 62 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '1002767' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:48:14 Duration: 51s349ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '986746' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:52:03 Duration: 43s94ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '1002847' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:33:19 Duration: 39s355ms Database: acaweb_fx User: postgres Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 7,602 13m40s 50ms 2s134ms 107ms insert into sa_hist_bigmove (symbolid, datetime, image, return, percentile, direction, height, z0, z1, timez0, timez1) select ?, ?, ?, ?.?, ?.?, ?, ?.?, ?.?, ?.?, ?, ? where not exists ( select ? from sa_hist_bigmove where symbolid = ? and datetime = ? and cast(percentile * ? as integer) = ? and direction = ?) returning id;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 26 03 7,602 13m40s 107ms [ User: postgres - Total duration: 13m40s - Times executed: 7602 ]
-
insert into sa_hist_bigmove (symbolid, datetime, image, return, percentile, direction, height, z0, z1, timez0, timez1) select 919707, '2021-07-25 20:00:00', '', - 0.610590217640184, 0.03, - 1, 0.00207999999999999, 1.69287, 1.70327, '2021-07-21 17:00:00', '2021-07-21 02:00:00' WHERE NOT EXISTS ( SELECT 1 FROM sa_hist_bigmove WHERE symbolid = 919707 AND datetime = '2021-07-25 20:00:00' AND CAST(percentile * 100 AS integer) = 3 AND direction = - 1) RETURNING id;
Date: 2021-07-26 03:02:28 Duration: 2s134ms Database: acaweb_fx User: postgres
-
insert into sa_hist_bigmove (symbolid, datetime, image, return, percentile, direction, height, z0, z1, timez0, timez1) select 962263, '2021-07-26 02:00:00', '', 0.208798857100978, 0.99, 1, 0.000569999999999959, 1.3678, 1.36495, '2021-07-21 14:00:00', '2021-07-20 22:00:00' WHERE NOT EXISTS ( SELECT 1 FROM sa_hist_bigmove WHERE symbolid = 962263 AND datetime = '2021-07-26 02:00:00' AND CAST(percentile * 100 AS integer) = 99 AND direction = 1) RETURNING id;
Date: 2021-07-26 03:16:17 Duration: 1s832ms Database: acaweb_fx User: postgres
-
insert into sa_hist_bigmove (symbolid, datetime, image, return, percentile, direction, height, z0, z1, timez0, timez1) select 1015013, '2021-07-26 03:00:00', '', 0.406818854023825, 0.98, 1, 0.00151300000000001, 1.867115, 1.85955, '2021-07-19 14:00:00', '2021-07-16 20:00:00' WHERE NOT EXISTS ( SELECT 1 FROM sa_hist_bigmove WHERE symbolid = 1015013 AND datetime = '2021-07-26 03:00:00' AND CAST(percentile * 100 AS integer) = 98 AND direction = 1) RETURNING id;
Date: 2021-07-26 03:05:17 Duration: 1s807ms Database: acaweb_fx User: postgres
2 4,606 22m29s 50ms 3s484ms 292ms insert into autochartist_results (resultid, symbolid, bandwidth, pattern, qtytp, gmttimefound, direction, initialtrend, breakout, volumeincrease, noise, symmetry, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimeto, patternstarttime, patternendtime, patternstartprice, patternendprice, resx0, resx1, supportx0, supportx1, resy0, resy1, supporty0, supporty1, supportgradient, resgradient, riskreward, patternquality, trendchange, maxmovementafterbreakout, latestbaratbreakouttime, latestbaratbreakoutprice, patternlengthbars, temporarypattern, relevancestartdistance, simulation, writtendatetime) select distinct ?, ?, ?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?, ?.?, ?::timestamp without time zone, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from autochartist_results where (breakout = ?.? and resx0 = ?::timestamp without time zone and resx1 = ?::timestamp without time zone and supportx0 = ?::timestamp without time zone and supportx1 = ?::timestamp without time zone and resy0 = ?.? and resy1 = ?.? and supporty0 = ?.? and supporty1 = ?.? and symbolid = ?) or resultid = ?) limit ? on conflict do nothing;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 26 03 4,606 22m29s 292ms [ User: postgres - Total duration: 22m29s - Times executed: 4606 ]
-
INSERT INTO Autochartist_Results (ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient, RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '954111-1|44400.7292|44403.1562|44400.6667|44403.0104|0.9216|0.9202|0.9196|0.919', 954111, 3.000000000000000000000000000000, 'Falling Wedge', 4, '2021-07-26 01:29:42'::timestamp without time zone, - 1, 0.489116622947861679000000000000, - 1.000000000000000000000000000000, 0.127263603438495465100000000000, 0.124224892974093920100000000000, 0.071854946975290961980000000000, 0.918542325538810877600000000000, 0.919182635641171197400000000000, '2021-07-26 04:15:00'::timestamp without time zone, '2021-07-27 10:22:30'::timestamp without time zone, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 04:15:00'::timestamp without time zone, 0.922189999999999954200000000000, 0.919529999999999958500000000000, '2021-07-23 17:30:00'::timestamp without time zone, '2021-07-26 03:45:00'::timestamp without time zone, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 00:15:00'::timestamp without time zone, 0.921560000000000045800000000000, 0.920239999999999946900000000000, 0.919649999999999967500000000000, 0.918980000000000019100000000000, - 0.000020303030303028741270000000, - 0.000032195121951221926850000000, 1.919074762716650229000000000000, 0.478915558983019573600000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 04:15:00'::timestamp without time zone, 0.919640000000000013000000000000, 49, 0, 0.001585000000000003073000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 17:30:00'::timestamp without time zone and resx1 = '2021-07-26 03:45:00'::timestamp without time zone and supportx0 = '2021-07-23 16:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:15:00'::timestamp without time zone and resy0 = 0.921560000000000045800000000000 and resy1 = 0.920239999999999946900000000000 and supporty0 = 0.919649999999999967500000000000 and supporty1 = 0.918980000000000019100000000000 and symbolid = 954111) or resultid = '954111-1|44400.7292|44403.1562|44400.6667|44403.0104|0.9216|0.9202|0.9196|0.919') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:30:12 Duration: 3s484ms Database: acaweb_fx User: postgres
-
INSERT INTO Autochartist_Results (ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient, RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '954111-1|44400.6042|44403.1562|44400.6667|44403.0104|0.9222|0.9202|0.9196|0.919', 954111, 3.000000000000000000000000000000, 'Falling Wedge', 5, '2021-07-26 01:29:42'::timestamp without time zone, - 1, 0.930360495219786254300000000000, - 1.000000000000000000000000000000, 0.199641856834565451000000000000, 0.077739269528130150460000000000, 0.074443413224301938080000000000, 0.917682102326861426400000000000, 0.918824209302858907500000000000, '2021-07-26 04:15:00'::timestamp without time zone, '2021-07-27 11:07:30'::timestamp without time zone, '2021-07-23 14:30:00'::timestamp without time zone, '2021-07-26 04:15:00'::timestamp without time zone, 0.918760000000000021100000000000, 0.919529999999999958500000000000, '2021-07-23 14:30:00'::timestamp without time zone, '2021-07-26 03:45:00'::timestamp without time zone, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 00:15:00'::timestamp without time zone, 0.922189999999999954200000000000, 0.920239999999999946900000000000, 0.919649999999999967500000000000, 0.918980000000000019100000000000, - 0.000020303030303028741270000000, - 0.000036792452830188815380000000, 2.796067786384582643000000000000, 0.642354879638652676000000000000, 'Reversal', 0.000000000000000000000000000000, '2021-07-26 04:15:00'::timestamp without time zone, 0.919640000000000013000000000000, 55, 0, 0.001899999999999957279000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 14:30:00'::timestamp without time zone and resx1 = '2021-07-26 03:45:00'::timestamp without time zone and supportx0 = '2021-07-23 16:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:15:00'::timestamp without time zone and resy0 = 0.922189999999999954200000000000 and resy1 = 0.920239999999999946900000000000 and supporty0 = 0.919649999999999967500000000000 and supporty1 = 0.918980000000000019100000000000 and symbolid = 954111) or resultid = '954111-1|44400.6042|44403.1562|44400.6667|44403.0104|0.9222|0.9202|0.9196|0.919') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:30:11 Duration: 3s397ms Database: acaweb_fx User: postgres
-
INSERT INTO Autochartist_Results (ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient, RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '10267100.2904|44398.7083|44400.6875|44397.6875|44399.9375|173.53|179.48|161.88|170.31', 1026710, 2.000000000000000000000000000000, 'Channel Up', 4, '2021-07-26 01:43:47'::timestamp without time zone, - 1, 1.000000000000000000000000000000, 0.290386768886187529600000000000, 0.204629511332999225500000000000, 0.476435623968357757600000000000, 0.697321973161372010700000000000, 164.243100452313200300000000000000, 169.362958521797168000000000000000, '2021-07-23 22:30:00'::timestamp without time zone, '2021-07-25 13:30:00'::timestamp without time zone, '2021-07-20 16:30:00'::timestamp without time zone, '2021-07-23 22:30:00'::timestamp without time zone, 173.120000000000004600000000000000, 173.193947368421049800000000000000, '2021-07-21 17:00:00'::timestamp without time zone, '2021-07-23 16:30:00'::timestamp without time zone, '2021-07-20 16:30:00'::timestamp without time zone, '2021-07-22 22:30:00'::timestamp without time zone, 173.530000000000001100000000000000, 179.479999999999989800000000000000, 161.879999999999995400000000000000, 170.310000000000002300000000000000, 0.221842105263158062600000000000, 0.237999999999999545200000000000, 2.686859523110837422000000000000, 0.627818279519800404000000000000, 'Continuation', - 0.173947368421039527700000000000, '2021-07-23 22:30:00'::timestamp without time zone, 173.020000000000010200000000000000, 51, 0, 10.409999999999996589000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = 0.290386768886187529600000000000 and resx0 = '2021-07-21 17:00:00'::timestamp without time zone and resx1 = '2021-07-23 16:30:00'::timestamp without time zone and supportx0 = '2021-07-20 16:30:00'::timestamp without time zone and supportx1 = '2021-07-22 22:30:00'::timestamp without time zone and resy0 = 173.530000000000001100000000000000 and resy1 = 179.479999999999989800000000000000 and supporty0 = 161.879999999999995400000000000000 and supporty1 = 170.310000000000002300000000000000 and symbolid = 1026710) or resultid = '10267100.2904|44398.7083|44400.6875|44397.6875|44399.9375|173.53|179.48|161.88|170.31') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:44:16 Duration: 3s83ms Database: acaweb_fx User: postgres
3 4,408 46m29s 50ms 14m3s 632ms update patternresultsrelevance set relevant = ?, saxo_relevant = ?, notrelevantpricedatetime = ?, reason = ? where uniqueindex = ? and relevant = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 26 03 4,408 46m29s 632ms [ User: postgres - Total duration: 46m29s - Times executed: 4408 ]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 00:30:00', reason = 'Pattern formed a Breakout pattern.' WHERE uniqueIndex = '|960521|0.73549|2|2021-07-23 17:45:00|1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Duration: 14m3s Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:45:00', reason = 'Pattern formed a Breakout pattern (see |974475|87.861|2|2021-07-26 03:45:00|-1|1).' WHERE uniqueIndex = '|974475|87.861|2|2021-07-23 21:15:00|1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Duration: 5m47s Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 03:30:00', reason = 'Pattern formed a Breakout pattern (see |1032237|0.60653|1|2021-07-26 03:30:00|1|1).' WHERE uniqueIndex = '|1032237|0.60653|1|2021-07-25 12:00:00|-1|-1' and relevant = 1;
Date: 2021-07-26 03:06:25 Duration: 4m45s Database: acaweb_fx User: postgres
4 3,773 1h25m13s 50ms 8s735ms 1s355ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 26 03 3,773 1h25m13s 1s355ms [ User: postgres - Total duration: 1h25m13s - Times executed: 3773 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022889, '2021-07-26 03:45:00'::timestamp without time zone, 1.59949, 1.60033, 1.59942, 1.59978, 1003, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1022889 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s735ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989745, '2021-07-23 20:15:00'::timestamp without time zone, 89.66, 89.75, 89.6, 89.6, 58, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 989745 AND pricedatetime = '2021-07-23 20:15:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s658ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1011001, '2021-07-26 03:45:00'::timestamp without time zone, 1.00112, 1.00124, 1.00055, 1.00087, 688, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1011001 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s611ms Database: acaweb_fx User: postgres
5 3,205 21m11s 50ms 4s673ms 396ms insert into keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errormargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestprice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) select distinct ?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?.?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?.?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?.?, ?.?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from keylevels_results where uniquepointsvalue = ?) limit ? on conflict do nothing;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 26 03 3,205 21m11s 396ms [ User: postgres - Total duration: 21m11s - Times executed: 3205 ]
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 6.000000000000000000000000000000, - 1, 2, '2021-07-26 01:43:43'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 48, 303.550000000000011400000000000000, '2021-07-20 16:30:00', '2021-07-20 12:45:00', '2021-07-19 13:15:00', '2021-07-19 13:00:00', '', '', '', '', '', '', 120, 303.189999999999997700000000000000, '2021-07-23 18:15:00'::timestamp without time zone, '2021-07-23 18:15:00', 0.000000000000000000000000000000, 0.362500000000000044400000000000, 1, 1026969, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1026969|303.55|2|2021-07-23 18:15:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-19 13:00:00', 301.199999999999988600000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1026969|303.55|2|2021-07-23 18:15:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:44:14 Duration: 4s673ms Database: acaweb_fx User: postgres
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, - 1, 1, '2021-07-26 01:28:56'::timestamp without time zone, '', 0.500000000000000000000000000000, 3, 54, 4.519999999999999574000000000000, '2021-07-23 11:45:00', '2021-07-21 04:15:00', '2021-07-21 04:00:00', '', '', '', '', '', '', '', 108, 4.525749999999999496000000000000, '2021-07-26 04:00:00'::timestamp without time zone, '2021-07-26 04:00:00', 0.000000000000000000000000000000, 0.005750000000000011178000000000, - 1, 1027576, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1027576|4.52|1|2021-07-26 04:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-21 04:00:00', 4.589999999999999858000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1027576|4.52|1|2021-07-26 04:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:29:25 Duration: 3s404ms Database: acaweb_fx User: postgres
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 9.000000000000000000000000000000, - 1, 1, '2021-07-26 01:02:03'::timestamp without time zone, '', 0.500000000000000000000000000000, 5, 156, 1.268000000000000016000000000000, '2021-07-23 14:00:00', '2021-07-23 07:00:00', '2021-07-22 20:00:00', '2021-07-15 08:00:00', '2021-07-14 23:00:00', '', '', '', '', '', 468, 1.269128500000000104000000000000, '2021-07-26 02:00:00'::timestamp without time zone, '2021-07-26 02:00:00', 0.000000000000000000000000000000, 0.001153999999999999427000000000, - 1, 1016278, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1016278|1.268|1|2021-07-26 02:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-14 23:00:00', 1.274240000000000039000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1016278|1.268|1|2021-07-26 02:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:02:32 Duration: 3s175ms Database: acaweb_fx User: postgres
6 2,845 18m17s 50ms 6s39ms 385ms select * from ( select pricedatetime, open, high, low, close "..." t60 where symbolid = ? order by pricedatetime desc limit ?) as tmp order by pricedatetime asc;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 26 03 2,845 18m17s 385ms [ User: postgres - Total duration: 18m17s - Times executed: 2845 ]
-
select * from ( select pricedatetime, open, high, low, close from T60 where symbolid = 1033118 order by pricedatetime desc limit 150) as tmp order by pricedatetime asc;
Date: 2021-07-26 03:32:21 Duration: 6s39ms Database: acaweb_fx User: postgres
-
select * from ( select pricedatetime, open, high, low, close from T60 where symbolid = 983827 order by pricedatetime desc limit 150) as tmp order by pricedatetime asc;
Date: 2021-07-26 03:00:16 Duration: 4s63ms Database: acaweb_fx User: postgres
-
select * from ( select pricedatetime, open, high, low, close from T60 where symbolid = 1029198 order by pricedatetime desc limit 150) as tmp order by pricedatetime asc;
Date: 2021-07-26 03:00:20 Duration: 3s959ms Database: acaweb_fx User: postgres
7 2,043 48m22s 50ms 8s778ms 1s420ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 26 03 2,043 48m22s 1s420ms [ User: postgres - Total duration: 48m22s - Times executed: 2043 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969031, '2021-07-26 03:30:00'::timestamp without time zone, 1.47999, 1.48031, 1.4799, 1.48017, 10384, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 969031 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s778ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920814, '2021-07-25 20:30:00'::timestamp without time zone, 4.007, 4.009, 4.002, 4.004, 188, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 920814 AND pricedatetime = '2021-07-25 20:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s738ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982431, '2021-07-26 03:30:00'::timestamp without time zone, 4401.8, 4403.5, 4398.8, 4400.8, 623, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 982431 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s729ms Database: acaweb_fx User: postgres
8 1,875 5m32s 50ms 1s776ms 177ms select upsert_t15 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 26 03 1,875 5m32s 177ms [ User: postgres - Total duration: 5m32s - Times executed: 1875 ]
-
SELECT upsert_t15 ('2021-07-26 04:05:00', '7400.53', '7403.53', '7395.53', '7397.53', '119', '1032156', '0', '2021-07-26 03:25:20.014', '2021-07-26 03:25:20.001');
Date: 2021-07-26 03:25:21 Duration: 1s776ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t15 ('2021-07-26 03:50:00', '7398.53', '7407.53', '7397.53', '7400.53', '131', '1032156', '0', '2021-07-26 03:10:20.943', '2021-07-26 03:10:20.929');
Date: 2021-07-26 03:10:22 Duration: 1s596ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t15 ('2021-07-26 04:00:00', '1.973055', '1.97392', '1.972905', '1.973425', '593', '974860', '0', '2021-07-26 03:15:02.747', '2021-07-26 03:15:02.427');
Date: 2021-07-26 03:15:03 Duration: 1s181ms Database: acaweb_fx User: postgres Bind query: yes
9 1,700 47m26s 50ms 57s163ms 1s674ms select distinct a.resultuid as ruid, c.symbolid as sid, c.symbol as sym, c.longname as longname, c.shortname, c.exchange as e, c.timegranularity as tg, p.patternid as pid, a.direction as d, cast(atbaridentified as timestamp) as pet, cast(patternstarttime as timestamp) as pst, patternprice as patp, breakoutprice as pe, breakoutbars as be, errormargin as erm, patternlengthbars as l, bandwidth as bw, qtytp as qtp, p.patternname as patternname, cast(x0 as timestamp) as x0, cast(x1 as timestamp) as x1, cast(x2 as timestamp) as x2, cast(( case when x3 = ? then ? else x3 end) as timestamp) as x3, cast(( case when x4 = ? then ? else x4 end) as timestamp) as x4, cast(( case when x5 = ? then ? else x5 end) as timestamp) as x5, cast(( case when x6 = ? then ? else x6 end) as timestamp) as x6, cast(( case when x7 = ? then ? else x7 end) as timestamp) as x7, cast(( case when x8 = ? then ? else x8 end) as timestamp) as x8, cast(( case when x9 = ? then ? else x9 end) as timestamp) as x9, cast(atbaridentified as timestamp) as patternendtime, cast(atbaridentified as timestamp) as atbar, cast(( case when approachingtimestamp = ? then ? else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzos, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as relevant, cast(?.? as double precision) as premium, cast(? as bigint) as instrumentid, ? as derivativeid, ? as underlyingid, ? as isunderlying from symbols c inner join brokersymbollist b on c.symbolid = b.symbolid inner join symbolgroup sg on c.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = c.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join keylevels_results a on a.symbolid = c.symbolid inner join hrspatterns p on a.patternid = p.patternid left outer join relevance_keylevels_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and groupid = ? and patternclassid = ? and patternlengthbars >= ? and a.patternid & ? > ? and dftt.dayofweek = ? and a.qtytp >= ? and a.resultuid > ? and c.nonliquid = ? and c.deleted = ? and dss.enabled = ? order by relevant desc, age asc, patternendtime desc, qtp desc limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 26 03 1,700 47m26s 1s674ms [ User: postgres - Total duration: 47m26s - Times executed: 1700 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 637 AND groupid = 4580 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:42:59 Duration: 57s163ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 619 AND groupid = 4274 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:48:11 Duration: 39s157ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 489 AND groupid = 3133 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:52:38 Duration: 38s946ms Database: acaweb_fx User: postgres Bind query: yes
10 1,329 5m41s 50ms 2s121ms 257ms select * from powerstatslatestprfprice (?, ?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 26 03 1,329 5m41s 257ms [ User: postgres - Total duration: 5m41s - Times executed: 1329 ]
-
select * from PowerStatsLatestPRFPrice ('1016211', '15');
Date: 2021-07-26 03:47:36 Duration: 2s121ms Database: acaweb_fx User: postgres Bind query: yes
-
select * from PowerStatsLatestPRFPrice ('983400', '15');
Date: 2021-07-26 03:47:05 Duration: 2s17ms Database: acaweb_fx User: postgres Bind query: yes
-
select * from PowerStatsLatestPRFPrice ('1016211', '15');
Date: 2021-07-26 03:47:36 Duration: 1s758ms Database: acaweb_fx User: postgres Bind query: yes
11 1,240 1m53s 50ms 704ms 91ms select updatedatafeedslatestrun (?);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 26 03 1,240 1m53s 91ms [ User: postgres - Total duration: 1m53s - Times executed: 1240 ]
-
select updateDatafeedsLatestRun ('HOTFOREX');
Date: 2021-07-26 03:44:15 Duration: 704ms Database: acaweb_fx User: postgres
-
select updateDatafeedsLatestRun ('HOTFOREX');
Date: 2021-07-26 03:29:02 Duration: 582ms Database: acaweb_fx User: postgres
-
select updateDatafeedsLatestRun ('SECONDBMFN');
Date: 2021-07-26 03:44:15 Duration: 469ms Database: acaweb_fx User: postgres
12 1,022 27m37s 53ms 8s764ms 1s621ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 26 03 1,022 27m37s 1s621ms [ User: postgres - Total duration: 27m37s - Times executed: 1022 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 962028, '2021-07-26 02:00:00'::timestamp without time zone, 1.8704, 1.8708, 1.8697, 1.8704, 690, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 962028 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s764ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989407, '2021-07-26 02:00:00'::timestamp without time zone, 1.97004, 1.97367, 1.96984, 1.97295, 5730, 0, '2021-07-26 03:05:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 989407 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 03:05:20 Duration: 6s460ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986402, '2021-07-26 03:00:00'::timestamp without time zone, 20.37628, 20.42063, 20.37368, 20.40652, 1223, 0, '2021-07-26 03:05:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 986402 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone);
Date: 2021-07-26 03:05:17 Duration: 6s179ms Database: acaweb_fx User: postgres
13 990 2m1s 50ms 2s270ms 122ms select upsert_t30 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 26 03 990 2m1s 122ms [ User: postgres - Total duration: 2m1s - Times executed: 990 ]
-
SELECT upsert_t30 ('2021-07-23 17:30:00', '27032', '27038.5', '27002', '27007.5', '613', '1028472', '0', '2021-07-26 03:30:09.294', '2021-07-26 03:30:09.273');
Date: 2021-07-26 03:30:11 Duration: 2s270ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t30 ('2021-07-23 19:45:00', '27026', '27034', '27018', '27032', '347', '1031897', '0', '2021-07-26 03:33:04.368', '2021-07-26 03:30:51.682');
Date: 2021-07-26 03:33:05 Duration: 1s333ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t30 ('2021-07-26 03:30:00', '0.876795', '0.877015', '0.876145', '0.876405', '539', '1019175', '0', '2021-07-26 03:15:02.617', '2021-07-26 03:06:19.265');
Date: 2021-07-26 03:15:03 Duration: 1s303ms Database: acaweb_fx User: postgres Bind query: yes
14 856 24m50s 50ms 52s422ms 1s740ms select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and breakout = ? and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 26 03 856 24m50s 1s740ms [ User: postgres - Total duration: 24m50s - Times executed: 856 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:42:41 Duration: 52s422ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:23:49 Duration: 49s817ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:25:15 Duration: 47s778ms Database: acaweb_fx User: postgres Bind query: yes
15 778 18m21s 51ms 41s730ms 1s415ms select distinct a.resultuid as ruid, s.symbolid as sid, symbol as sym, longname, shortname, exchange as e, timegranularity as tg, p.patternid as pid, direction as d, patternstarttime as pst, patternendtime as pet, patternstartprice as psp, patternendprice as pep, pricex as px, timex as tx, pricea as pa, timea as ta, priceb as pb, timeb as tb, pricec as pc, timec as tc, priced as pd, timed as td, averagequality as aq, timequality as tq, errormargin as rq, (? - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, patternlengthbars as l, temporarypattern as tp, bandwidth as bw, qtytp as qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join fibonacci_results a on a.symbolid = s.symbolid inner join fibonaccipatterns p on a.pattern = p.patternname left outer join relevance_fibonacci_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and patternlengthbars >= ? and averagequality >= ?.? and (timequality >= ?.? or timequality = ?) and errormargin >= ?.? and ? - noise >= ?.? and s.nonliquid = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 26 03 778 18m21s 1s415ms [ User: postgres - Total duration: 18m21s - Times executed: 778 ]
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:14:43 Duration: 41s730ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:14:43 Duration: 41s729ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:47:59 Duration: 36s24ms Database: acaweb_fx User: postgres Bind query: yes
16 695 21m5s 57ms 8s705ms 1s820ms insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 26 03 695 21m5s 1s820ms [ User: postgres - Total duration: 21m5s - Times executed: 695 ]
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1020947, '2021-07-26 00:00:00'::timestamp without time zone, 120.034, 120.217, 120.034, 120.041, 7431, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1020947 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s705ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977103, '2021-07-26 00:00:00'::timestamp without time zone, 1.59693, 1.60033, 1.59628, 1.59982, 8405, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 977103 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s693ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1003029, '2021-07-26 00:00:00'::timestamp without time zone, 14.78686, 14.85201, 14.78686, 14.84228, 3307, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1003029 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s652ms Database: acaweb_fx User: postgres
17 664 15m21s 50ms 58s279ms 1s387ms select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 26 03 664 15m21s 1s387ms [ User: postgres - Total duration: 15m21s - Times executed: 664 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3596 AND breakout >= 0.8 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.8 AND initialtrend >= 0.8 AND symmetry >= 0.8 AND noise <= 0.19999999999999996 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517021062 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:48:20 Duration: 58s279ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:42:41 Duration: 52s412ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 489 AND sg.groupid = 3127 AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:33 Duration: 51s741ms Database: acaweb_fx User: postgres Bind query: yes
18 637 1m8s 50ms 3s642ms 106ms update datafeeds_latestrun set latestdbwritetime = current_timestamp where feedname ilike ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 03 637 1m8s 106ms [ User: postgres - Total duration: 1m8s - Times executed: 637 ]
-
UPDATE DataFeeds_LatestRun SET LatestDBWriteTime = Current_TimeStamp WHERE FeedName ilike 'AXIORY';
Date: 2021-07-26 03:58:50 Duration: 3s642ms Database: acaweb_fx User: postgres
-
UPDATE DataFeeds_LatestRun SET LatestDBWriteTime = Current_TimeStamp WHERE FeedName ilike 'VALBURYCAPITAL';
Date: 2021-07-26 03:16:18 Duration: 2s32ms Database: acaweb_fx User: postgres
-
UPDATE DataFeeds_LatestRun SET LatestDBWriteTime = Current_TimeStamp WHERE FeedName ilike 'ALBForex';
Date: 2021-07-26 03:35:16 Duration: 1s296ms Database: acaweb_fx User: postgres
19 558 3m17s 50ms 5s149ms 354ms insert into fibonacci_results (bandwidth, pattern, gmttimefound, direction, patternstarttime, patternendtime, patternstartprice, patternendprice, qtytp, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, patternlengthbars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) select distinct ?.?, ?, ?::timestamp without time zone, ?, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?, ?.?, ?, ?, ?, ?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from fibonacci_results where pattern ilike ? and direction = ? and patternstarttime = ?::timestamp without time zone and patternstartprice = ?.? and qtytp = ? and patternlengthbars = ? and ratiosfound = ? and temporarypattern = ? and symbolid = ? and timex = ?::timestamp without time zone and timea = ?::timestamp without time zone and timeb = ?::timestamp without time zone and timec = ?::timestamp without time zone and timed = ?::timestamp without time zone) limit ? on conflict do nothing;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 26 03 558 3m17s 354ms [ User: postgres - Total duration: 3m17s - Times executed: 558 ]
-
INSERT INTO Fibonacci_Results (Bandwidth, Pattern, GMTTimeFound, Direction, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, QtyTP, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, PatternLengthBars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, 'ABCD', '2021-07-26 01:49:50'::timestamp without time zone, 1, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 04:00:00'::timestamp without time zone, 92.804000000000002050000000000000, - 1.000000000000000000000000000000, 4, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 92.990999999999999660000000000000, '2021-07-23 17:30:00'::timestamp without time zone, 92.847999999999998980000000000000, '2021-07-26 00:30:00'::timestamp without time zone, 92.933999999999997500000000000000, '2021-07-26 03:30:00'::timestamp without time zone, 92.790999999999996820000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.752375000000016669400000000000, - 1.000000000000000000000000000000, 4.746402182878992626000000000000, 34, 92.933999999999997500000000000000, 92.879378860384093740000000000000, 93.022378860384094420000000000000, 92.903419647025401670000000000000, 92.972898809878500970000000000000, 92.862499999999997160000000000000, 92.845621139615900570000000000000, 1026480, 0.495249999999966661400000000000, 'BC=0.618*AB (0.601) ', 0, 'ABCD|1|2021-07-23 16:00:00|92.804|-1|4|34|BC=0.618*AB (0.601)|0|1026480|1899-12-29 00:00:00|2021-07-23 17:30:00|2021-07-26 00:30:00|2021-07-26 03:30:00|1899-12-29 00:00:00', - 1, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Fibonacci_Results WHERE pattern ilike 'ABCD' AND direction = 1 AND patternstarttime = '2021-07-23 16:00:00'::timestamp without time zone AND patternstartprice = 92.804000000000002050000000000000 AND qtytp = 4 AND patternlengthbars = 34 AND ratiosfound = 'BC=0.618*AB (0.601) ' AND temporarypattern = 0 AND symbolid = 1026480 AND timex = '1899-12-29 00:00:00'::timestamp without time zone AND timea = '2021-07-23 17:30:00'::timestamp without time zone AND timeb = '2021-07-26 00:30:00'::timestamp without time zone AND timec = '2021-07-26 03:30:00'::timestamp without time zone AND timed = '1899-12-29 00:00:00'::timestamp without time zone) LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:50:59 Duration: 5s149ms Database: acaweb_fx User: postgres
-
INSERT INTO Fibonacci_Results (Bandwidth, Pattern, GMTTimeFound, Direction, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, QtyTP, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, PatternLengthBars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, 'ABCD', '2021-07-26 01:49:50'::timestamp without time zone, 1, '2021-07-23 16:00:00'::timestamp without time zone, '2021-07-26 04:00:00'::timestamp without time zone, 92.804000000000002050000000000000, - 1.000000000000000000000000000000, 4, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 92.990999999999999660000000000000, '2021-07-23 17:30:00'::timestamp without time zone, 92.847999999999998980000000000000, '2021-07-26 00:30:00'::timestamp without time zone, 92.933999999999997500000000000000, '2021-07-26 03:30:00'::timestamp without time zone, 92.790999999999996820000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.752375000000016669400000000000, - 1.000000000000000000000000000000, 4.746402182878992626000000000000, 34, 92.933999999999997500000000000000, 92.879378860384093740000000000000, 93.022378860384094420000000000000, 92.903419647025401670000000000000, 92.972898809878500970000000000000, 92.862499999999997160000000000000, 92.845621139615900570000000000000, 1026480, 0.495249999999966661400000000000, 'BC=0.618*AB (0.601) ', 0, 'ABCD|1|2021-07-23 16:00:00|92.804|-1|4|34|BC=0.618*AB (0.601)|0|1026480|1899-12-29 00:00:00|2021-07-23 17:30:00|2021-07-26 00:30:00|2021-07-26 03:30:00|1899-12-29 00:00:00', - 1, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Fibonacci_Results WHERE pattern ilike 'ABCD' AND direction = 1 AND patternstarttime = '2021-07-23 16:00:00'::timestamp without time zone AND patternstartprice = 92.804000000000002050000000000000 AND qtytp = 4 AND patternlengthbars = 34 AND ratiosfound = 'BC=0.618*AB (0.601) ' AND temporarypattern = 0 AND symbolid = 1026480 AND timex = '1899-12-29 00:00:00'::timestamp without time zone AND timea = '2021-07-23 17:30:00'::timestamp without time zone AND timeb = '2021-07-26 00:30:00'::timestamp without time zone AND timec = '2021-07-26 03:30:00'::timestamp without time zone AND timed = '1899-12-29 00:00:00'::timestamp without time zone) LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:50:59 Duration: 5s117ms Database: acaweb_fx User: postgres
-
INSERT INTO Fibonacci_Results (Bandwidth, Pattern, GMTTimeFound, Direction, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, QtyTP, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, PatternLengthBars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, '3 Point Extension', '2021-07-26 01:29:43'::timestamp without time zone, 1, '2021-07-23 14:45:00'::timestamp without time zone, '2021-07-25 21:15:00'::timestamp without time zone, 0.794950000000000045400000000000, 0.795250000000000012400000000000, 3, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.794950000000000045400000000000, '2021-07-23 14:45:00'::timestamp without time zone, 0.796250000000000013300000000000, '2021-07-23 16:15:00'::timestamp without time zone, 0.794549999999999978500000000000, '2021-07-25 21:00:00'::timestamp without time zone, 0.532205799747428098800000000000, - 1.000000000000000000000000000000, 0.560882187730179393400000000000, 21, 0.796250000000000013300000000000, 0.795600657780790032600000000000, 0.797300657780790067400000000000, 0.795886457342260045200000000000, 0.796712433404149988900000000000, 0.795399999999999995900000000000, 0.795199342219209959200000000000, 919318, 0.496470588235323306800000000000, 'CD=1.272*BC (1.308) ', 0, '3 Point Extension|1|2021-07-23 14:45:00|0.79495|0.79525|3|21|CD=1.272*BC (1.308)|0|919318|1899-12-29 00:00:00|1899-12-29 00:00:00|2021-07-23 14:45:00|2021-07-23 16:15:00|2021-07-25 21:00:00', 1, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Fibonacci_Results WHERE pattern ilike '3 Point Extension' AND direction = 1 AND patternstarttime = '2021-07-23 14:45:00'::timestamp without time zone AND patternstartprice = 0.794950000000000045400000000000 AND qtytp = 3 AND patternlengthbars = 21 AND ratiosfound = 'CD=1.272*BC (1.308) ' AND temporarypattern = 0 AND symbolid = 919318 AND timex = '1899-12-29 00:00:00'::timestamp without time zone AND timea = '1899-12-29 00:00:00'::timestamp without time zone AND timeb = '2021-07-23 14:45:00'::timestamp without time zone AND timec = '2021-07-23 16:15:00'::timestamp without time zone AND timed = '2021-07-25 21:00:00'::timestamp without time zone) LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 03:30:12 Duration: 3s108ms Database: acaweb_fx User: postgres
20 550 15m47s 50ms 42s726ms 1s723ms select distinct a.resultuid as ruid, s.symbolid as sid, symbol as sym, longname, shortname, exchange as e, timegranularity as tg, p.patternid as pid, direction as d, patternstarttime as pst, patternendtime as pet, patternstartprice as psp, patternendprice as pep, pricex as px, timex as tx, pricea as pa, timea as ta, priceb as pb, timeb as tb, pricec as pc, timec as tc, priced as pd, timed as td, averagequality as aq, timequality as tq, errormargin as rq, (? - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, patternlengthbars as l, temporarypattern as tp, bandwidth as bw, qtytp as qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join fibonacci_results a on a.symbolid = s.symbolid inner join fibonaccipatterns p on a.pattern = p.patternname left outer join relevance_fibonacci_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and patternlengthbars >= ? and averagequality >= ?.? and (timequality >= ?.? or timequality = ?) and errormargin >= ?.? and ? - noise >= ?.? and s.nonliquid = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and patternendprice > ? and a.resultuid > ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 26 03 550 15m47s 1s723ms [ User: postgres - Total duration: 15m47s - Times executed: 550 ]
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 660 AND sg.groupid = 4858 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61323476 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:52:04 Duration: 42s726ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND sg.groupid = 5147 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61315563 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:14:41 Duration: 41s412ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 660 AND sg.groupid = 4858 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61323476 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:27:21 Duration: 30s768ms Database: acaweb_fx User: postgres Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 127ms 1h4m43s 6m11s 171 17h39m58s select qtytp, replace(symbol, ?, ?) as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ? group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 26 03 171 17h39m58s 6m11s [ User: postgres - Total duration: 17h39m58s - Times executed: 171 ]
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4385 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:43:15 Duration: 1h4m43s Database: acaweb_fx User: postgres
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4442 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:44:33 Duration: 1h2m4s Database: acaweb_fx User: postgres
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4395 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 03:43:32 Duration: 1h2m3s Database: acaweb_fx User: postgres
2 4s 8m27s 2m53s 9 25m58s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((s.symbol ilike ? and timegranularity <= ?)) or ((s.symbol ilike ? and timegranularity = ?)) or ((s.symbol ilike ? and timegranularity = ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 26 03 9 25m58s 2m53s [ User: postgres - Total duration: 25m58s - Times executed: 9 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:15 Duration: 8m27s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:23:02 Duration: 6m47s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:53:02 Duration: 3m9s Database: acaweb_fx User: postgres Bind query: yes
3 992ms 20m44s 2m 69 2h18m14s (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?))) union all (( select distinct ? as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = ? union select distinct ? as patterntype, ar.resultuid as resultuid, ?, ? from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = ? inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?)));Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 26 03 69 2h18m14s 2m [ User: postgres - Total duration: 2h18m14s - Times executed: 69 ]
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:36:08 Duration: 20m44s Database: acaweb_fx User: postgres Bind query: yes
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '689' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '689' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:36:08 Duration: 13m10s Database: acaweb_fx User: postgres Bind query: yes
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:29:54 Duration: 8m26s Database: acaweb_fx User: postgres Bind query: yes
4 203ms 11m15s 49s125ms 131 1h47m15s with rar_max as ( select resultuid from relevance_autochartist_results order by resultuid desc limit ? ), results as ( select distinct on (s.symbolid) ar.resultuid as resultuid, ar.direction as direction, ar.predictiontimeto as predictiontimeto, ar.predictionpricefrom as predictionpricefrom, ar.predictionpriceto as predictionpriceto, cp.pip as pip, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, ar.pattern as pattern_name, ar.breakout as breakout, ar.patternendtime as identified, dtt.timezone as timezone, ar.patternlengthbars as length, g.basegroupname, newlevels.profit, newlevels.stop, newlevels.filtered, case when rar.age is not null then rar.age when ar.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when ar.resultuid <= rm.resultuid then ? else ? end as relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = ar.symbolid inner join symbols s on ar.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on ar.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join downloadersymbolsettings dss on ar.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_autochartist_results rar on rar.resultuid = ar.resultuid left outer join currencypips cp on s.symbol = cp.symbol left join lateral calc_cp_signal (ar.resultuid) newlevels on true where ar.gmttimefound > now() - interval ? and (ar.simulation = ? or ar.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or ar.pattern in (...)) and (? = ? or (? = ? and ar.breakout >= ?) or (? = ? and ar.breakout < ?)) and (? = ? or ar.patternlengthbars <= ?) and newlevels.filtered = false order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 26 03 131 1h47m15s 49s125ms [ User: postgres - Total duration: 1h47m15s - Times executed: 131 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:33:34 Duration: 11m15s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('31' = 0 OR s.symbol in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNZD', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'JPN225', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGUSD', 'XAUUSD')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:52:18 Duration: 6m48s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '666' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:21:22 Duration: 6m31s Database: acaweb_fx User: postgres Bind query: yes
5 97ms 22m20s 41s522ms 137 1h34m48s with rar_max as ( select resultuid from relevance_keylevels_results order by resultuid desc limit ? ), results as ( select distinct on (s.symbolid) kr.resultuid as resultuid, kr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, p.patternname as pattern_name, kr.breakout as breakout, kr.atbaridentified as identified, dtt.timezone as timezone, kr.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when rar.age is not null then rar.age when kr.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when kr.resultuid <= rm.resultuid then ? else ? end as relevant from keylevels_results kr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = kr.symbolid inner join symbols s on kr.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on kr.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join hrspatterns p on kr.patternid = p.patternid inner join downloadersymbolsettings dss on kr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_keylevels_results rar on rar.resultuid = kr.resultuid left join lateral calc_kl_signal_filter (kr.resultuid) newlevels on true where kr.gmttimefound > now() - interval ? and (kr.simulation = ? or kr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or p.patternname in (...)) and (? = ? or kr.patternclassid in (...)) and (? = ? or kr.patternlengthbars <= ?) order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 26 03 137 1h34m48s 41s522ms [ User: postgres - Total duration: 1h34m48s - Times executed: 137 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR p.patternname in ('')) AND ('2' = 0 OR kr.patternclassid in ('1', '2')) AND ('400' = 0 OR kr.patternlengthbars <= '400') ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:36:10 Duration: 22m20s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '572' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('99' = 0 OR s.symbol in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNOK', 'EURNZD', 'EURSEK', 'EURTRY', 'EURUSD', 'GAGEUR', 'GAGUSD', 'GAUEUR', 'GAUTRY', 'GAUUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPTRY', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDTRY', 'USDZAR', 'XAGEUR', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'BITCOINCASH', 'ETHEREUM', 'LITECOIN', 'RIPPLE', 'ADIDAS', 'APPLE', 'BMW', 'BOFA', 'BP', 'DAIMLER', 'DEUTSCHBANK', 'DISNEY', 'EEM', 'EXS1', 'EXW1', 'EXXONMOBIL', 'FACEBOOK', 'GDX', 'GLD', 'GOOGLE', 'LVMH', 'MICROSOFT', 'QQQ', 'SPY', 'TLT', 'USO', 'WAL-MART', 'BUND10YR', 'COCOA', 'COFFEE', 'COPPER', 'CORN', 'COTTON', 'DOW30', 'ESP35', 'EU50', 'FRA40', 'GER30', 'GILT10YR', 'ITA40', 'JPN225', 'NAS100', 'NATGAS', 'SOYBEAN', 'SPX500', 'SUGAR', 'UK100', 'UKOIL', 'US10YR', 'USOIL', 'WHEAT')) AND ('0' = 0 OR p.patternname in ('')) AND ('2' = 0 OR kr.patternclassid in ('1', '2')) AND ('400' = 0 OR kr.patternlengthbars <= '400') ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:52:58 Duration: 10m5s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, p.patternname AS pattern_name, kr.breakout AS breakout, kr.atbaridentified AS identified, dtt.timezone AS timezone, kr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM keylevels_results kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '763' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON kr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on kr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN hrspatterns p ON kr.patternid = p.patternid INNER JOIN downloadersymbolsettings dss ON kr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND (kr.simulation = 0 OR kr.simulation IS NULL) AND ('0' = 0 OR s.timegranularity in ('0')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR p.patternname in ('')) AND ('0' = 0 OR kr.patternclassid in ('0')) AND ('0' = 0 OR kr.patternlengthbars <= '0') ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:52:41 Duration: 9m35s Database: acaweb_fx User: postgres Bind query: yes
6 715ms 18m47s 25s203ms 55 23m6s with rar_max as ( select resultuid from relevance_autochartist_results order by resultuid desc limit ? ), results as ( select distinct on (s.symbolid) ar.resultuid as resultuid, ar.direction as direction, ar.predictiontimeto as predictiontimeto, ar.predictionpricefrom as predictionpricefrom, ar.predictionpriceto as predictionpriceto, cp.pip as pip, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, ar.pattern as pattern_name, ar.breakout as breakout, ar.patternendtime as identified, dtt.timezone as timezone, ar.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when rar.age is not null then rar.age when ar.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when ar.resultuid <= rm.resultuid then ? else ? end as relevant from autochartist_results ar inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = ar.symbolid inner join symbols s on ar.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on ar.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join downloadersymbolsettings dss on ar.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_autochartist_results rar on rar.resultuid = ar.resultuid left outer join currencypips cp on s.symbol = cp.symbol left join lateral calc_cp_signal (ar.resultuid) newlevels on true where ar.gmttimefound > now() - interval ? and (ar.simulation = ? or ar.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or ar.pattern in (...)) and (? = ? or (? = ? and ar.breakout >= ?) or (? = ? and ar.breakout < ?)) and (? = ? or ar.patternlengthbars <= ?) and newlevels.filtered = false order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 26 03 55 23m6s 25s203ms [ User: postgres - Total duration: 23m6s - Times executed: 55 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:55:57 Duration: 18m47s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:58:00 Duration: 26s656ms Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), results AS ( SELECT DISTINCT ON (s.symbolid) ar.resultuid AS resultuid, ar.direction AS direction, ar.predictiontimeto AS predictiontimeto, ar.predictionpricefrom AS predictionpricefrom, ar.predictionpriceto AS predictionpriceto, cp.pip AS pip, s.exchange AS exchange, s.symbolid AS symbolid, s.symbol AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ar.pattern AS pattern_name, ar.breakout AS breakout, ar.patternendtime AS identified, dtt.timezone AS timezone, ar.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM autochartist_results ar INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('329' = 0 OR s.symbol in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LIN', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#RWE', '#SAP', '#SHI', '#SIE', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#LIN', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURTRY', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDRUB', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#PTR', '#QCOM', '#RACE', '#SHI', '#SINA', '#SNP', '#T', '#TSLA', '#TWTR', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('400' = 0 OR ar.patternlengthbars <= '400') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 03:13:49 Duration: 9s697ms Database: acaweb_fx User: postgres Bind query: yes
7 1s231ms 51s349ms 17s852ms 62 18m26s select * from ( select pricedatetime, open, high, low, close, volume, bsf from t30 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 26 03 62 18m26s 17s852ms [ User: postgres - Total duration: 18m26s - Times executed: 62 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '1002767' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:48:14 Duration: 51s349ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '986746' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:52:03 Duration: 43s94ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '1002847' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:33:19 Duration: 39s355ms Database: acaweb_fx User: postgres Bind query: yes
8 50ms 8m27s 15s388ms 244 1h2m34s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((s.symbol ilike ? and timegranularity <= ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 26 03 244 1h2m34s 15s388ms [ User: postgres - Total duration: 1h2m34s - Times executed: 244 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:15 Duration: 8m27s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:15 Duration: 8m24s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:23:02 Duration: 6m46s Database: acaweb_fx User: postgres Bind query: yes
9 60ms 46s612ms 10s988ms 147 26m55s select * from ( select pricedatetime, open, high, low, close, volume, bsf from t15 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 26 03 147 26m55s 10s988ms [ User: postgres - Total duration: 26m55s - Times executed: 147 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '982515' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:47:34 Duration: 46s612ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '987990' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:28:41 Duration: 39s587ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '986760' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:30:29 Duration: 35s917ms Database: acaweb_fx User: postgres Bind query: yes
10 95ms 48s472ms 8s834ms 164 24m8s select * from ( select pricedatetime, open, high, low, close, volume, bsf from t60 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 26 03 164 24m8s 8s834ms [ User: postgres - Total duration: 24m8s - Times executed: 164 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1026611' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:46:38 Duration: 48s472ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '988177' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:53:08 Duration: 46s279ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '988177' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:53:08 Duration: 45s971ms Database: acaweb_fx User: postgres Bind query: yes
11 50ms 3m 2s541ms 463 19m36s select distinct a.resultuid as ruid, c.symbolid as sid, c.symbol as sym, c.longname as longname, c.shortname, c.exchange as e, c.timegranularity as tg, p.patternid as pid, a.direction as d, cast(atbaridentified as timestamp) as pet, cast(patternstarttime as timestamp) as pst, patternprice as patp, breakoutprice as pe, breakoutbars as be, errormargin as erm, patternlengthbars as l, bandwidth as bw, qtytp as qtp, p.patternname as patternname, cast(x0 as timestamp) as x0, cast(x1 as timestamp) as x1, cast(x2 as timestamp) as x2, cast(( case when x3 = ? then ? else x3 end) as timestamp) as x3, cast(( case when x4 = ? then ? else x4 end) as timestamp) as x4, cast(( case when x5 = ? then ? else x5 end) as timestamp) as x5, cast(( case when x6 = ? then ? else x6 end) as timestamp) as x6, cast(( case when x7 = ? then ? else x7 end) as timestamp) as x7, cast(( case when x8 = ? then ? else x8 end) as timestamp) as x8, cast(( case when x9 = ? then ? else x9 end) as timestamp) as x9, cast(atbaridentified as timestamp) as patternendtime, cast(atbaridentified as timestamp) as atbar, cast(( case when approachingtimestamp = ? then ? else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzos, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as relevant, cast(?.? as double precision) as premium, cast(? as bigint) as instrumentid, ? as derivativeid, ? as underlyingid, ? as isunderlying from symbols c inner join brokersymbollist b on c.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = c.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join keylevels_results a on a.symbolid = c.symbolid inner join hrspatterns p on a.patternid = p.patternid left outer join relevance_keylevels_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((c.symbol ilike ? and timegranularity <= ?))) and patternclassid = ? and patternlengthbars >= ? and a.patternid & ? > ? and dftt.dayofweek = ? and a.resultuid > ? and c.nonliquid = ? and c.deleted = ? and dss.enabled = ? order by relevant desc, age asc, patternendtime desc, qtp desc limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 26 03 463 19m36s 2s541ms [ User: postgres - Total duration: 19m36s - Times executed: 463 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((c.symbol ilike '%usdx%' AND timegranularity <= 1440))) AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:46:58 Duration: 3m Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((c.symbol ilike '%usdx%' AND timegranularity <= 1440))) AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:52:19 Duration: 2m25s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((c.symbol ilike '%chi50%' AND timegranularity <= 1440))) AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:48:59 Duration: 2m23s Database: acaweb_fx User: postgres Bind query: yes
12 57ms 8s705ms 1s820ms 695 21m5s insert into t240 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t240 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 26 03 695 21m5s 1s820ms [ User: postgres - Total duration: 21m5s - Times executed: 695 ]
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1020947, '2021-07-26 00:00:00'::timestamp without time zone, 120.034, 120.217, 120.034, 120.041, 7431, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1020947 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s705ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977103, '2021-07-26 00:00:00'::timestamp without time zone, 1.59693, 1.60033, 1.59628, 1.59982, 8405, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 977103 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s693ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1003029, '2021-07-26 00:00:00'::timestamp without time zone, 14.78686, 14.85201, 14.78686, 14.84228, 3307, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1003029 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s652ms Database: acaweb_fx User: postgres
13 50ms 52s422ms 1s740ms 856 24m50s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and breakout = ? and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 26 03 856 24m50s 1s740ms [ User: postgres - Total duration: 24m50s - Times executed: 856 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:42:41 Duration: 52s422ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:23:49 Duration: 49s817ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:25:15 Duration: 47s778ms Database: acaweb_fx User: postgres Bind query: yes
14 50ms 42s726ms 1s723ms 550 15m47s select distinct a.resultuid as ruid, s.symbolid as sid, symbol as sym, longname, shortname, exchange as e, timegranularity as tg, p.patternid as pid, direction as d, patternstarttime as pst, patternendtime as pet, patternstartprice as psp, patternendprice as pep, pricex as px, timex as tx, pricea as pa, timea as ta, priceb as pb, timeb as tb, pricec as pc, timec as tc, priced as pd, timed as td, averagequality as aq, timequality as tq, errormargin as rq, (? - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, patternlengthbars as l, temporarypattern as tp, bandwidth as bw, qtytp as qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join fibonacci_results a on a.symbolid = s.symbolid inner join fibonaccipatterns p on a.pattern = p.patternname left outer join relevance_fibonacci_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and patternlengthbars >= ? and averagequality >= ?.? and (timequality >= ?.? or timequality = ?) and errormargin >= ?.? and ? - noise >= ?.? and s.nonliquid = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and patternendprice > ? and a.resultuid > ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 26 03 550 15m47s 1s723ms [ User: postgres - Total duration: 15m47s - Times executed: 550 ]
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 660 AND sg.groupid = 4858 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61323476 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:52:04 Duration: 42s726ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND sg.groupid = 5147 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61315563 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:14:41 Duration: 41s412ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 660 AND sg.groupid = 4858 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61323476 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:27:21 Duration: 30s768ms Database: acaweb_fx User: postgres Bind query: yes
15 50ms 57s163ms 1s674ms 1,700 47m26s select distinct a.resultuid as ruid, c.symbolid as sid, c.symbol as sym, c.longname as longname, c.shortname, c.exchange as e, c.timegranularity as tg, p.patternid as pid, a.direction as d, cast(atbaridentified as timestamp) as pet, cast(patternstarttime as timestamp) as pst, patternprice as patp, breakoutprice as pe, breakoutbars as be, errormargin as erm, patternlengthbars as l, bandwidth as bw, qtytp as qtp, p.patternname as patternname, cast(x0 as timestamp) as x0, cast(x1 as timestamp) as x1, cast(x2 as timestamp) as x2, cast(( case when x3 = ? then ? else x3 end) as timestamp) as x3, cast(( case when x4 = ? then ? else x4 end) as timestamp) as x4, cast(( case when x5 = ? then ? else x5 end) as timestamp) as x5, cast(( case when x6 = ? then ? else x6 end) as timestamp) as x6, cast(( case when x7 = ? then ? else x7 end) as timestamp) as x7, cast(( case when x8 = ? then ? else x8 end) as timestamp) as x8, cast(( case when x9 = ? then ? else x9 end) as timestamp) as x9, cast(atbaridentified as timestamp) as patternendtime, cast(atbaridentified as timestamp) as atbar, cast(( case when approachingtimestamp = ? then ? else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzos, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_keylevels_results order by resultuid desc limit ?) then ? else ? end as relevant, cast(?.? as double precision) as premium, cast(? as bigint) as instrumentid, ? as derivativeid, ? as underlyingid, ? as isunderlying from symbols c inner join brokersymbollist b on c.symbolid = b.symbolid inner join symbolgroup sg on c.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = c.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join keylevels_results a on a.symbolid = c.symbolid inner join hrspatterns p on a.patternid = p.patternid left outer join relevance_keylevels_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and groupid = ? and patternclassid = ? and patternlengthbars >= ? and a.patternid & ? > ? and dftt.dayofweek = ? and a.qtytp >= ? and a.resultuid > ? and c.nonliquid = ? and c.deleted = ? and dss.enabled = ? order by relevant desc, age asc, patternendtime desc, qtp desc limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 26 03 1,700 47m26s 1s674ms [ User: postgres - Total duration: 47m26s - Times executed: 1700 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 637 AND groupid = 4580 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:42:59 Duration: 57s163ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 619 AND groupid = 4274 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:48:11 Duration: 39s157ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 489 AND groupid = 3133 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '0' AND c.nonliquid = '0' AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 03:52:38 Duration: 38s946ms Database: acaweb_fx User: postgres Bind query: yes
16 53ms 8s764ms 1s621ms 1,022 27m37s insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 26 03 1,022 27m37s 1s621ms [ User: postgres - Total duration: 27m37s - Times executed: 1022 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 962028, '2021-07-26 02:00:00'::timestamp without time zone, 1.8704, 1.8708, 1.8697, 1.8704, 690, 0, '2021-07-26 03:02:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 962028 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s764ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989407, '2021-07-26 02:00:00'::timestamp without time zone, 1.97004, 1.97367, 1.96984, 1.97295, 5730, 0, '2021-07-26 03:05:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 989407 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 03:05:20 Duration: 6s460ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986402, '2021-07-26 03:00:00'::timestamp without time zone, 20.37628, 20.42063, 20.37368, 20.40652, 1223, 0, '2021-07-26 03:05:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 986402 AND pricedatetime = '2021-07-26 03:00:00'::timestamp without time zone);
Date: 2021-07-26 03:05:17 Duration: 6s179ms Database: acaweb_fx User: postgres
17 50ms 8s778ms 1s420ms 2,043 48m22s insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 26 03 2,043 48m22s 1s420ms [ User: postgres - Total duration: 48m22s - Times executed: 2043 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969031, '2021-07-26 03:30:00'::timestamp without time zone, 1.47999, 1.48031, 1.4799, 1.48017, 10384, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 969031 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s778ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920814, '2021-07-25 20:30:00'::timestamp without time zone, 4.007, 4.009, 4.002, 4.004, 188, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 920814 AND pricedatetime = '2021-07-25 20:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s738ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982431, '2021-07-26 03:30:00'::timestamp without time zone, 4401.8, 4403.5, 4398.8, 4400.8, 623, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 982431 AND pricedatetime = '2021-07-26 03:30:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s729ms Database: acaweb_fx User: postgres
18 51ms 41s730ms 1s415ms 778 18m21s select distinct a.resultuid as ruid, s.symbolid as sid, symbol as sym, longname, shortname, exchange as e, timegranularity as tg, p.patternid as pid, direction as d, patternstarttime as pst, patternendtime as pet, patternstartprice as psp, patternendprice as pep, pricex as px, timex as tx, pricea as pa, timea as ta, priceb as pb, timeb as tb, pricec as pc, timec as tc, priced as pd, timed as td, averagequality as aq, timequality as tq, errormargin as rq, (? - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, patternlengthbars as l, temporarypattern as tp, bandwidth as bw, qtytp as qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join fibonacci_results a on a.symbolid = s.symbolid inner join fibonaccipatterns p on a.pattern = p.patternname left outer join relevance_fibonacci_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and patternlengthbars >= ? and averagequality >= ?.? and (timequality >= ?.? or timequality = ?) and errormargin >= ?.? and ? - noise >= ?.? and s.nonliquid = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 03 778 18m21s 1s415ms [ User: postgres - Total duration: 18m21s - Times executed: 778 ]
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:14:43 Duration: 41s730ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:14:43 Duration: 41s729ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 03:47:59 Duration: 36s24ms Database: acaweb_fx User: postgres Bind query: yes
19 50ms 58s279ms 1s387ms 664 15m21s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 26 03 664 15m21s 1s387ms [ User: postgres - Total duration: 15m21s - Times executed: 664 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3596 AND breakout >= 0.8 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.8 AND initialtrend >= 0.8 AND symmetry >= 0.8 AND noise <= 0.19999999999999996 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517021062 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:48:20 Duration: 58s279ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:42:41 Duration: 52s412ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 489 AND sg.groupid = 3127 AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:52:33 Duration: 51s741ms Database: acaweb_fx User: postgres Bind query: yes
20 50ms 8s735ms 1s355ms 3,773 1h25m13s insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 26 03 3,773 1h25m13s 1s355ms [ User: postgres - Total duration: 1h25m13s - Times executed: 3773 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022889, '2021-07-26 03:45:00'::timestamp without time zone, 1.59949, 1.60033, 1.59942, 1.59978, 1003, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1022889 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s735ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989745, '2021-07-23 20:15:00'::timestamp without time zone, 89.66, 89.75, 89.6, 89.6, 58, 0, '2021-07-26 03:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 989745 AND pricedatetime = '2021-07-23 20:15:00'::timestamp without time zone);
Date: 2021-07-26 03:02:33 Duration: 8s658ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1011001, '2021-07-26 03:45:00'::timestamp without time zone, 1.00112, 1.00124, 1.00055, 1.00087, 688, 0, '2021-07-26 03:02:25'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1011001 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);
Date: 2021-07-26 03:02:34 Duration: 8s611ms Database: acaweb_fx User: postgres
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 1s847ms 12 63ms 274ms 153ms WITH rar_max as ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Jul 26 03 12 1s847ms 153ms [ User: postgres - Total duration: 1m9s - Times executed: 12 ]
-
WITH rar_max as ( ;
Date: 2021-07-26 03:29:18 Duration: 274ms Database: postgres User: acaweb_fx Remote: postgres
-
WITH rar_max as ( ;
Date: 2021-07-26 03:29:18 Duration: 260ms Database: postgres User: acaweb_fx Remote: postgres
-
WITH rar_max as ( ;
Date: 2021-07-26 03:29:18 Duration: 255ms Database: postgres User: acaweb_fx Remote: postgres
2 904ms 4 117ms 315ms 226ms WITH last_candle AS ( ;Times Reported Time consuming prepare #2
Day Hour Count Duration Avg duration 03 4 904ms 226ms [ User: postgres - Total duration: 19s359ms - Times executed: 4 ]
-
WITH last_candle AS ( ;
Date: 2021-07-26 03:24:32 Duration: 315ms Database: postgres User: acaweb_fx Remote: postgres
-
WITH last_candle AS ( ;
Date: 2021-07-26 03:48:58 Duration: 305ms Database: postgres User: acaweb_fx Remote: postgres
-
WITH last_candle AS ( ;
Date: 2021-07-26 03:16:06 Duration: 165ms Database: postgres User: acaweb_fx Remote: postgres
3 681ms 5 98ms 190ms 136ms with sym_info as ( ;Times Reported Time consuming prepare #3
Day Hour Count Duration Avg duration 03 5 681ms 136ms [ User: postgres - Total duration: 2s203ms - Times executed: 5 ]
-
with sym_info as ( ;
Date: 2021-07-26 03:35:52 Duration: 190ms Database: postgres User: acaweb_fx Remote: postgres
-
with sym_info as ( ;
Date: 2021-07-26 03:50:53 Duration: 137ms Database: postgres User: acaweb_fx Remote: postgres
-
with sym_info as ( ;
Date: 2021-07-26 03:05:52 Duration: 130ms Database: postgres User: acaweb_fx Remote: postgres
4 560ms 4 72ms 198ms 140ms with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;Times Reported Time consuming prepare #4
Day Hour Count Duration Avg duration 03 4 560ms 140ms [ User: postgres - Total duration: 25s830ms - Times executed: 4 ]
-
with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;
Date: 2021-07-26 03:00:03 Duration: 198ms Database: postgres User: acaweb_fx Remote: postgres
-
with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;
Date: 2021-07-26 03:30:02 Duration: 191ms Database: postgres User: acaweb_fx Remote: postgres
-
with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;
Date: 2021-07-26 03:50:02 Duration: 98ms Database: postgres User: acaweb_fx Remote: postgres
5 382ms 4 62ms 137ms 95ms SELECT (cast(substring(tz.gmoffset from 1 for 3) as float) * 60 + cast(substring(tz.gmoffset from 5 for 2) as float)) / 60 as offset FROM timezones tz WHERE tz.timezone = $1;Times Reported Time consuming prepare #5
Day Hour Count Duration Avg duration 03 4 382ms 95ms [ User: postgres - Total duration: 14s992ms - Times executed: 4 ]
-
SELECT (cast(substring(tz.gmoffset from 1 for 3) as float) * 60 + cast(substring(tz.gmoffset from 5 for 2) as float)) / 60 as offset FROM timezones tz WHERE tz.timezone = $1;
Date: 2021-07-26 03:46:00 Duration: 137ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT (cast(substring(tz.gmoffset from 1 for 3) as float) * 60 + cast(substring(tz.gmoffset from 5 for 2) as float)) / 60 as offset FROM timezones tz WHERE tz.timezone = $1;
Date: 2021-07-26 03:30:26 Duration: 101ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT (cast(substring(tz.gmoffset from 1 for 3) as float) * 60 + cast(substring(tz.gmoffset from 5 for 2) as float)) / 60 as offset FROM timezones tz WHERE tz.timezone = $1;
Date: 2021-07-26 03:42:13 Duration: 81ms Database: postgres User: acaweb_fx Remote: postgres
6 274ms 2 103ms 170ms 137ms select count(distinct classname) from ( select * from datafeed_update_view) as k where classname ilike 'XM' and datetimeupdate > current_timestamp - interval '30 minutes' group by classname;Times Reported Time consuming prepare #6
Day Hour Count Duration Avg duration 03 2 274ms 137ms [ User: postgres - Total duration: 12s308ms - Times executed: 2 ]
-
select count(distinct classname) from ( select * from datafeed_update_view) as k where classname ilike 'XM' and datetimeupdate > current_timestamp - interval '30 minutes' group by classname;
Date: 2021-07-26 03:40:00 Duration: 170ms Database: postgres User: acaweb_fx Remote: postgres
-
select count(distinct classname) from ( select * from datafeed_update_view) as k where classname ilike 'XM' and datetimeupdate > current_timestamp - interval '30 minutes' group by classname;
Date: 2021-07-26 03:10:00 Duration: 103ms Database: postgres User: acaweb_fx Remote: postgres
7 226ms 2 89ms 136ms 113ms with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;Times Reported Time consuming prepare #7
Day Hour Count Duration Avg duration 03 2 226ms 113ms [ User: postgres - Total duration: 4s15ms - Times executed: 2 ]
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 03:25:18 Duration: 136ms Database: postgres User: acaweb_fx Remote: postgres
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 03:15:31 Duration: 89ms Database: postgres User: acaweb_fx Remote: postgres
8 163ms 1 163ms 163ms 163ms SELECT ;Times Reported Time consuming prepare #8
Day Hour Count Duration Avg duration 03 1 163ms 163ms [ User: postgres - Total duration: 574ms - Times executed: 1 ]
-
SELECT ;
Date: 2021-07-26 03:45:06 Duration: 163ms Database: postgres User: acaweb_fx Remote: postgres
9 118ms 2 54ms 64ms 59ms SELECT upsert_t15 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);Times Reported Time consuming prepare #9
Day Hour Count Duration Avg duration 03 2 118ms 59ms [ User: postgres - Total duration: 2s724ms - Times executed: 2 ]
-
SELECT upsert_t15 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);
Date: 2021-07-26 03:25:20 Duration: 64ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT upsert_t15 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);
Date: 2021-07-26 03:55:20 Duration: 54ms Database: postgres User: acaweb_fx Remote: postgres
10 90ms 1 90ms 90ms 90ms select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(replace(sy.exchange, '(', ''), ')', ''), ',', '%%%') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || sy.exchange ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(basegroupname, '(', ''), ')', '') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || g.basegroupname ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid order by heading;Times Reported Time consuming prepare #10
Day Hour Count Duration Avg duration 03 1 90ms 90ms [ User: postgres - Total duration: 8s624ms - Times executed: 1 ]
-
select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(replace(sy.exchange, '(', ''), ')', ''), ',', '%%%') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || sy.exchange ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(basegroupname, '(', ''), ')', '') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || g.basegroupname ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid order by heading;
Date: 2021-07-26 03:51:29 Duration: 90ms Database: postgres User: acaweb_fx Remote: postgres
11 85ms 1 85ms 85ms 85ms select xmlforest(name2 as hourofday, coalesce("-1", - 1) as bear, coalesce("1", - 1) as bull) from ( SELECT * FROM crosstab ('select name2, cast(name1 as float) as name1, avg(cast(percentage as float)) from stats_hrsapproaches_summary_2d s where s.statsid = 4132 and lower(s.category1) = lower(''direction'') and lower(s.category2) = lower(''hourofday'') and lower(s.category1) <> ''overall'' and lower(s.category2) <> ''overall'' group by name2, cast(name1 as float) order by cast("name2" as float)', 'select distinct cast(1 as float) union all select distinct cast(-1 as float)') AS stats_hrsapproaches_summary_2d (name2 varchar(255), "-1" float, "1" float)) P;Times Reported Time consuming prepare #11
Day Hour Count Duration Avg duration 03 1 85ms 85ms [ User: postgres - Total duration: 111ms - Times executed: 1 ]
-
select xmlforest(name2 as hourofday, coalesce("-1", - 1) as bear, coalesce("1", - 1) as bull) from ( SELECT * FROM crosstab ('select name2, cast(name1 as float) as name1, avg(cast(percentage as float)) from stats_hrsapproaches_summary_2d s where s.statsid = 4132 and lower(s.category1) = lower(''direction'') and lower(s.category2) = lower(''hourofday'') and lower(s.category1) <> ''overall'' and lower(s.category2) <> ''overall'' group by name2, cast(name1 as float) order by cast("name2" as float)', 'select distinct cast(1 as float) union all select distinct cast(-1 as float)') AS stats_hrsapproaches_summary_2d (name2 varchar(255), "-1" float, "1" float)) P;
Date: 2021-07-26 03:51:45 Duration: 85ms Database: postgres User: acaweb_fx Remote: postgres
12 76ms 1 76ms 76ms 76ms SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;Times Reported Time consuming prepare #12
Day Hour Count Duration Avg duration 03 1 76ms 76ms [ User: postgres - Total duration: 246ms - Times executed: 1 ]
-
SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;
Date: 2021-07-26 03:19:17 Duration: 76ms Database: postgres User: acaweb_fx Remote: postgres
13 75ms 1 75ms 75ms 75ms UPDATE whatshot_pref SET whatshotlimit = $1, whatshotpercent = $2, groupname = $3 WHERE clientid = $4;Times Reported Time consuming prepare #13
Day Hour Count Duration Avg duration 03 1 75ms 75ms [ User: postgres - Total duration: 362ms - Times executed: 1 ]
-
UPDATE whatshot_pref SET whatshotlimit = $1, whatshotpercent = $2, groupname = $3 WHERE clientid = $4;
Date: 2021-07-26 03:09:48 Duration: 75ms Database: postgres User: acaweb_fx Remote: postgres
14 74ms 1 74ms 74ms 74ms SELECT DISTINCT dss.downloadersymbol, pssd.symbolid, s.symbol, s.longname, s.exchange, day, (pssd.ave - pssd.stddev / 2.0) AS low, pssd.ave, (pssd.ave + pssd.stddev / 2.0) AS high, pssd.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM powerstats_daily pssd INNER JOIN downloadersymbolsettings dss ON pssd.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN powerstats_symboldata psd ON psd.DailySymbolID = pssd.symbolid INNER JOIN symbols s ON psd.DailySymbolID = s.symbolid and s.symbolid = dss.symbolid INNER JOIN brokersymbollist bsl ON s.symbolid = bsl.symbolid INNER JOIN mat_ps_daily_symbolid_max_enddate e ON pssd.enddate = e.enddate AND pssd.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 ORDER BY day ASC;Times Reported Time consuming prepare #14
Day Hour Count Duration Avg duration 03 1 74ms 74ms [ User: postgres - Total duration: 439ms - Times executed: 1 ]
-
SELECT DISTINCT dss.downloadersymbol, pssd.symbolid, s.symbol, s.longname, s.exchange, day, (pssd.ave - pssd.stddev / 2.0) AS low, pssd.ave, (pssd.ave + pssd.stddev / 2.0) AS high, pssd.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM powerstats_daily pssd INNER JOIN downloadersymbolsettings dss ON pssd.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN powerstats_symboldata psd ON psd.DailySymbolID = pssd.symbolid INNER JOIN symbols s ON psd.DailySymbolID = s.symbolid and s.symbolid = dss.symbolid INNER JOIN brokersymbollist bsl ON s.symbolid = bsl.symbolid INNER JOIN mat_ps_daily_symbolid_max_enddate e ON pssd.enddate = e.enddate AND pssd.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 ORDER BY day ASC;
Date: 2021-07-26 03:19:17 Duration: 74ms Database: postgres User: acaweb_fx Remote: postgres
15 68ms 1 68ms 68ms 68ms SELECT upsert_t30 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);Times Reported Time consuming prepare #15
Day Hour Count Duration Avg duration 03 1 68ms 68ms [ User: postgres - Total duration: 200ms - Times executed: 1 ]
-
SELECT upsert_t30 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);
Date: 2021-07-26 03:10:01 Duration: 68ms Database: postgres User: acaweb_fx Remote: postgres
16 56ms 1 56ms 56ms 56ms SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = $1 AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;Times Reported Time consuming prepare #16
Day Hour Count Duration Avg duration 03 1 56ms 56ms [ User: postgres - Total duration: 51s349ms - Times executed: 1 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = $1 AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:47:22 Duration: 56ms Database: postgres User: acaweb_fx Remote: postgres
17 56ms 1 56ms 56ms 56ms select gen_whatshot ();Times Reported Time consuming prepare #17
Day Hour Count Duration Avg duration 03 1 56ms 56ms [ User: postgres - Total duration: 3m13s - Times executed: 1 ]
-
select gen_whatshot ();
Date: 2021-07-26 03:08:06 Duration: 56ms Database: postgres User: acaweb_fx Remote: postgres
18 50ms 1 50ms 50ms 50ms select count(*) from datafeed_restarter_events where is_current_entry = 1;Times Reported Time consuming prepare #18
Day Hour Count Duration Avg duration 03 1 50ms 50ms [ User: postgres - Total duration: 211ms - Times executed: 1 ]
-
select count(*) from datafeed_restarter_events where is_current_entry = 1;
Date: 2021-07-26 03:50:00 Duration: 50ms Database: postgres User: acaweb_fx Remote: postgres
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 7s345ms 14 72ms 1s762ms 524ms SELECT ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Jul 26 03 14 7s345ms 524ms [ User: postgres - Total duration: 19s916ms - Times executed: 14 ]
-
SELECT ;
Date: 2021-07-26 03:45:08 Duration: 1s762ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '954121'
-
SELECT ;
Date: 2021-07-26 03:45:05 Duration: 1s61ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '954121'
-
SELECT ;
Date: 2021-07-26 03:15:05 Duration: 1s4ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '954126'
2 6s69ms 10 147ms 2s28ms 606ms with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;Times Reported Time consuming bind #2
Day Hour Count Duration Avg duration 03 10 6s69ms 606ms [ User: postgres - Total duration: 17s899ms - Times executed: 10 ]
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 03:45:48 Duration: 2s28ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125', $3 = '125', $4 = '125', $5 = '125', $6 = '125', $7 = '125', $8 = '125', $9 = '125'
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 03:25:19 Duration: 1s404ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '558', $2 = '558', $3 = '558', $4 = '558', $5 = '558', $6 = '558', $7 = '558', $8 = '558', $9 = '558'
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 03:41:14 Duration: 608ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '643', $2 = '643', $3 = '643', $4 = '643', $5 = '643', $6 = '643', $7 = '643', $8 = '643', $9 = '643'
3 3s939ms 6 69ms 1s36ms 656ms with sym_info as ( ;Times Reported Time consuming bind #3
Day Hour Count Duration Avg duration 03 6 3s939ms 656ms [ User: postgres - Total duration: 3m29s - Times executed: 6 ]
-
with sym_info as ( ;
Date: 2021-07-26 03:35:53 Duration: 1s36ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '620', $2 = 'Forex', $3 = 'Forex', $4 = '620', $5 = 'Forex', $6 = '620'
-
with sym_info as ( ;
Date: 2021-07-26 03:25:38 Duration: 993ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '617', $2 = 'Forex', $3 = 'Forex', $4 = '617', $5 = 'Forex', $6 = '617'
-
with sym_info as ( ;
Date: 2021-07-26 03:05:53 Duration: 730ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '617', $2 = 'Forex', $3 = 'Forex', $4 = '617', $5 = 'Forex', $6 = '617'
4 3s822ms 12 51ms 710ms 318ms WITH last_candle AS ( ;Times Reported Time consuming bind #4
Day Hour Count Duration Avg duration 03 12 3s822ms 318ms [ User: postgres - Total duration: 56s370ms - Times executed: 12 ]
-
WITH last_candle AS ( ;
Date: 2021-07-26 03:48:59 Duration: 710ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
-
WITH last_candle AS ( ;
Date: 2021-07-26 03:32:09 Duration: 707ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
-
WITH last_candle AS ( ;
Date: 2021-07-26 03:16:07 Duration: 563ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
5 3s203ms 18 52ms 455ms 177ms WITH rar_max as ( ;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 03 18 3s203ms 177ms [ User: postgres - Total duration: 16m5s - Times executed: 18 ]
-
WITH rar_max as ( ;
Date: 2021-07-26 03:29:19 Duration: 455ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '3589790'
-
WITH rar_max as ( ;
Date: 2021-07-26 03:29:19 Duration: 455ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '3589804'
-
WITH rar_max as ( ;
Date: 2021-07-26 03:29:19 Duration: 454ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '3589789'
6 2s588ms 1 2s588ms 2s588ms 2s588ms (( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $1 union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $2 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $3 union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $4 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $5 union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $6 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 03 1 2s588ms 2s588ms [ User: postgres - Total duration: 24s40ms - Times executed: 1 ]
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $1 union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $2 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $3 union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $4 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $5 union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $6 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 03:07:28 Duration: 2s588ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '619', $2 = '619', $3 = '619', $4 = '619', $5 = '619', $6 = '619'
7 2s155ms 3 428ms 1s70ms 718ms SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;Times Reported Time consuming bind #7
Day Hour Count Duration Avg duration 03 3 2s155ms 718ms [ User: postgres - Total duration: 517ms - Times executed: 3 ]
-
SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;
Date: 2021-07-26 03:19:18 Duration: 1s70ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986695', $2 = '558'
-
SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;
Date: 2021-07-26 03:47:24 Duration: 656ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1032216', $2 = '692'
-
SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;
Date: 2021-07-26 03:05:21 Duration: 428ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986695', $2 = '558'
8 2s28ms 2 937ms 1s91ms 1s14ms SELECT s.statsid, s.description, s.groupingname FROM stats s LEFT OUTER JOIN stats_summary ss ON ss.statsid = s.statsid WHERE brokerid = $1 AND ss.total > 0 GROUP BY s.statsid, s.description, s.brokerid, s.latestupdate, s.groupingname, s.calcfrom, s.calcto, ss.statsid;Times Reported Time consuming bind #8
Day Hour Count Duration Avg duration 03 2 2s28ms 1s14ms [ User: postgres - Total duration: 1s107ms - Times executed: 2 ]
-
SELECT s.statsid, s.description, s.groupingname FROM stats s LEFT OUTER JOIN stats_summary ss ON ss.statsid = s.statsid WHERE brokerid = $1 AND ss.total > 0 GROUP BY s.statsid, s.description, s.brokerid, s.latestupdate, s.groupingname, s.calcfrom, s.calcto, ss.statsid;
Date: 2021-07-26 03:49:26 Duration: 1s91ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '692'
-
SELECT s.statsid, s.description, s.groupingname FROM stats s LEFT OUTER JOIN stats_summary ss ON ss.statsid = s.statsid WHERE brokerid = $1 AND ss.total > 0 GROUP BY s.statsid, s.description, s.brokerid, s.latestupdate, s.groupingname, s.calcfrom, s.calcto, ss.statsid;
Date: 2021-07-26 03:19:19 Duration: 937ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '558'
9 1s869ms 6 75ms 445ms 311ms with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;Times Reported Time consuming bind #9
Day Hour Count Duration Avg duration 03 6 1s869ms 311ms [ User: postgres - Total duration: 37s180ms - Times executed: 6 ]
-
with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;
Date: 2021-07-26 03:00:03 Duration: 445ms Database: postgres User: acaweb_fx Remote: postgres
-
with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;
Date: 2021-07-26 03:50:03 Duration: 416ms Database: postgres User: acaweb_fx Remote: postgres
-
with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;
Date: 2021-07-26 03:30:02 Duration: 365ms Database: postgres User: acaweb_fx Remote: postgres
10 1s754ms 1 1s754ms 1s754ms 1s754ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 49 AND (((longname ilike '%gold (spot)%' AND timegranularity <= 1440);Times Reported Time consuming bind #10
Day Hour Count Duration Avg duration 03 1 1s754ms 1s754ms [ User: postgres - Total duration: 57ms - Times executed: 1 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 49 AND (((longname ilike '%gold (spot)%' AND timegranularity <= 1440);
Date: 2021-07-26 03:07:28 Duration: 1s754ms Database: postgres User: acaweb_fx Remote: postgres
11 1s504ms 2 574ms 930ms 752ms SELECT ns.nspname, a.typname, a.oid, a.typrelid, a.typbasetype, ;Times Reported Time consuming bind #11
Day Hour Count Duration Avg duration 03 2 1s504ms 752ms [ User: postgres - Total duration: 1s955ms - Times executed: 2 ]
-
SELECT ns.nspname, a.typname, a.oid, a.typrelid, a.typbasetype, ;
Date: 2021-07-26 03:30:13 Duration: 930ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT ns.nspname, a.typname, a.oid, a.typrelid, a.typbasetype, ;
Date: 2021-07-26 03:00:13 Duration: 574ms Database: postgres User: acaweb_fx Remote: postgres
12 989ms 2 196ms 793ms 494ms SELECT DISTINCT dss.downloadersymbol, pssd.symbolid, s.symbol, s.longname, s.exchange, day, (pssd.ave - pssd.stddev / 2.0) AS low, pssd.ave, (pssd.ave + pssd.stddev / 2.0) AS high, pssd.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM powerstats_daily pssd INNER JOIN downloadersymbolsettings dss ON pssd.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN powerstats_symboldata psd ON psd.DailySymbolID = pssd.symbolid INNER JOIN symbols s ON psd.DailySymbolID = s.symbolid and s.symbolid = dss.symbolid INNER JOIN brokersymbollist bsl ON s.symbolid = bsl.symbolid INNER JOIN mat_ps_daily_symbolid_max_enddate e ON pssd.enddate = e.enddate AND pssd.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 ORDER BY day ASC;Times Reported Time consuming bind #12
Day Hour Count Duration Avg duration 03 2 989ms 494ms [ User: postgres - Total duration: 593ms - Times executed: 2 ]
-
SELECT DISTINCT dss.downloadersymbol, pssd.symbolid, s.symbol, s.longname, s.exchange, day, (pssd.ave - pssd.stddev / 2.0) AS low, pssd.ave, (pssd.ave + pssd.stddev / 2.0) AS high, pssd.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM powerstats_daily pssd INNER JOIN downloadersymbolsettings dss ON pssd.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN powerstats_symboldata psd ON psd.DailySymbolID = pssd.symbolid INNER JOIN symbols s ON psd.DailySymbolID = s.symbolid and s.symbolid = dss.symbolid INNER JOIN brokersymbollist bsl ON s.symbolid = bsl.symbolid INNER JOIN mat_ps_daily_symbolid_max_enddate e ON pssd.enddate = e.enddate AND pssd.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 ORDER BY day ASC;
Date: 2021-07-26 03:19:17 Duration: 793ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986695', $2 = '558'
-
SELECT DISTINCT dss.downloadersymbol, pssd.symbolid, s.symbol, s.longname, s.exchange, day, (pssd.ave - pssd.stddev / 2.0) AS low, pssd.ave, (pssd.ave + pssd.stddev / 2.0) AS high, pssd.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM powerstats_daily pssd INNER JOIN downloadersymbolsettings dss ON pssd.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN powerstats_symboldata psd ON psd.DailySymbolID = pssd.symbolid INNER JOIN symbols s ON psd.DailySymbolID = s.symbolid and s.symbolid = dss.symbolid INNER JOIN brokersymbollist bsl ON s.symbolid = bsl.symbolid INNER JOIN mat_ps_daily_symbolid_max_enddate e ON pssd.enddate = e.enddate AND pssd.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 ORDER BY day ASC;
Date: 2021-07-26 03:05:21 Duration: 196ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986695', $2 = '558'
13 834ms 4 86ms 461ms 208ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming bind #13
Day Hour Count Duration Avg duration 03 4 834ms 208ms [ User: postgres - Total duration: 1m56s - Times executed: 4 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:22:59 Duration: 461ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:14:30 Duration: 161ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:40:03 Duration: 125ms Database: postgres User: acaweb_fx Remote: postgres
14 826ms 4 87ms 456ms 206ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming bind #14
Day Hour Count Duration Avg duration 03 4 826ms 206ms [ User: postgres - Total duration: 1m56s - Times executed: 4 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:22:59 Duration: 456ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:14:30 Duration: 161ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:40:03 Duration: 120ms Database: postgres User: acaweb_fx Remote: postgres
15 764ms 1 764ms 764ms 764ms select distinct category1 || '_' || category2 as category from stats_summary_2d where statsid = 4134 and lower(category1) in ('direction') and lower(category2) <> 'overall' order by category1 || '_' || category2;Times Reported Time consuming bind #15
Day Hour Count Duration Avg duration 03 1 764ms 764ms [ User: postgres - Total duration: 8s86ms - Times executed: 1 ]
-
select distinct category1 || '_' || category2 as category from stats_summary_2d where statsid = 4134 and lower(category1) in ('direction') and lower(category2) <> 'overall' order by category1 || '_' || category2;
Date: 2021-07-26 03:51:49 Duration: 764ms Database: postgres User: acaweb_fx Remote: postgres
16 600ms 1 600ms 600ms 600ms select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(replace(sy.exchange, '(', ''), ')', ''), ',', '%%%') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || sy.exchange ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(basegroupname, '(', ''), ')', '') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || g.basegroupname ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid order by heading;Times Reported Time consuming bind #16
Day Hour Count Duration Avg duration 03 1 600ms 600ms [ User: postgres - Total duration: 8s624ms - Times executed: 1 ]
-
select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(replace(sy.exchange, '(', ''), ')', ''), ',', '%%%') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || sy.exchange ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid inner join symbols sy on dss.symbolid = sy.symbolid WHERE (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid) and s.groupingtype ilike 'exchange') s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@' || replace(replace(basegroupname, '(', ''), ')', '') || '@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': ' || g.basegroupname ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid union all select distinct heading from ( select distinct cast(s.statsid as varchar) || '@' || replace(replace(b.name, '(', ''), ')', '') || '@[All]@' || cast(b.brokerid as varchar) as heading, s.statsid from stats s inner join broker b on s.brokerid = b.brokerid inner join brokerconfig bc on b.brokerid = bc.brokerid INNER JOIN stats_symbols ss on s.statsid = ss.statsid INNER JOIN downloadersymbolsettings dss on ss.symbolid = dss.symbolid INNER JOIN symbolgroup sg on dss.symbolid = sg.symbolid INNER JOIN groups g on sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid and bg.brokerid = b.brokerid WHERE b.brokerid in (714, 722, 738, 739, 740, 741, 743, 744, 746, 747, 748, 749, 752, 750, 755, 756, 757, 758, 759, 760, 761, 762, 763) and (0 = 0 or s.statsid > 0) and dss.enabled = 1 and s.brokerid is not null and b.name || ': [All]' ilike s.description and b.housingdb = 'acaweb_fx' and (0 = 0 OR 0 = b.brokerid)) s inner join ( select distinct statsid from stats_summary) ss on s.statsid = ss.statsid inner join ( select distinct statsid from stats_hrs_summary) shs on s.statsid = shs.statsid inner join ( select distinct statsid from stats_hrsapproaches_summary) sas on s.statsid = sas.statsid order by heading;
Date: 2021-07-26 03:51:30 Duration: 600ms Database: postgres User: acaweb_fx Remote: postgres
17 598ms 2 271ms 327ms 299ms SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = $1 AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;Times Reported Time consuming bind #17
Day Hour Count Duration Avg duration 03 2 598ms 299ms [ User: postgres - Total duration: 1m1s - Times executed: 2 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = $1 AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:13:28 Duration: 327ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1002778'
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = $1 AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 03:52:22 Duration: 271ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '988177'
18 588ms 3 147ms 246ms 196ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND sg.groupid = 3338 AND breakout = - 1 AND patternlengthbars >= 0 AND patternquality >= 0.1 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517283222 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming bind #18
Day Hour Count Duration Avg duration 03 3 588ms 196ms [ User: postgres - Total duration: 1s772ms - Times executed: 3 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND sg.groupid = 3338 AND breakout = - 1 AND patternlengthbars >= 0 AND patternquality >= 0.1 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517283222 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:27:21 Duration: 246ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND sg.groupid = 3338 AND breakout = - 1 AND patternlengthbars >= 0 AND patternquality >= 0.1 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517283222 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:43:22 Duration: 194ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND sg.groupid = 3338 AND breakout = - 1 AND patternlengthbars >= 0 AND patternquality >= 0.1 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 517283222 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 03:51:32 Duration: 147ms Database: postgres User: acaweb_fx Remote: postgres
19 570ms 1 570ms 570ms 570ms select distinct category1 || '_' || category2 as category from stats_summary_2d where statsid = 4132 and lower(category1) in ('direction') and lower(category2) <> 'overall' order by category1 || '_' || category2;Times Reported Time consuming bind #19
Day Hour Count Duration Avg duration 03 1 570ms 570ms [ User: postgres - Total duration: 2s322ms - Times executed: 1 ]
-
select distinct category1 || '_' || category2 as category from stats_summary_2d where statsid = 4132 and lower(category1) in ('direction') and lower(category2) <> 'overall' order by category1 || '_' || category2;
Date: 2021-07-26 03:51:49 Duration: 570ms Database: postgres User: acaweb_fx Remote: postgres
20 565ms 4 88ms 209ms 141ms SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;Times Reported Time consuming bind #20
Day Hour Count Duration Avg duration 03 4 565ms 141ms [ User: postgres - Total duration: 1s32ms - Times executed: 4 ]
-
SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;
Date: 2021-07-26 03:26:50 Duration: 209ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;
Date: 2021-07-26 03:42:17 Duration: 162ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '38983184'
-
SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;
Date: 2021-07-26 03:13:19 Duration: 105ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '38916017'
-
Events
Log levels
Key values
- 95,660 Log entries
Events distribution
Key values
- 0 PANIC entries
- 27 FATAL entries
- 6905 ERROR entries
- 277 WARNING entries
Most Frequent Errors/Events
Key values
- 6,781 Max number of times the same event was reported
- 7,209 Total events found
Rank Times reported Error 1 6,781 LOG: process ... still waiting for AccessExclusiveLock on object 0 of class 1262 of database ... after ... ms
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 26 03 6,781 - LOG: process 6454 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.034 ms
- LOG: process 29301 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.029 ms
- LOG: process 20093 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.031 ms
Detail: Process holding the lock: 9383. Wait queue: 6454, 29301, 20093, 25139, 15863, 29113, 22867, 26628, 32270, 15606, 22870, 17871, 2536, 26292, 22871, 22872, 22868.
Statement: INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023189, '2021-07-26 03:45:00'::timestamp without time zone, 3.88996, 3.89051, 3.88967, 3.88967, 46, 0,'2021-07-26 03:00:10'::timestamp without time zone WHERE NOT EXISTS (SELECT 1 FROM T15 WHERE symbolid = 1023189 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);;Date: 2021-07-26 03:00:11 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 6454. Wait queue: 29301, 20093, 25139, 15863, 29113, 22867, 26628, 32270, 15606, 22870, 17871, 2536, 26292, 22871, 22872, 22868.
Statement: INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010756, '2021-07-26 03:45:00'::timestamp without time zone, 11.9533, 11.95545, 11.94225, 11.95465, 1006, 0,'2021-07-26 03:00:10'::timestamp without time zone WHERE NOT EXISTS (SELECT 1 FROM T15 WHERE symbolid = 1010756 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);;Date: 2021-07-26 03:00:12 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 29301. Wait queue: 20093, 25139, 15863, 29113, 22867, 26628, 32270, 15606, 22870, 17871, 2536, 26292, 22871, 22872, 22868.
Statement: INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010081, '2021-07-26 03:45:00'::timestamp without time zone, 6.3184, 6.32015, 6.31835, 6.31855, 783, 0,'2021-07-26 03:00:10'::timestamp without time zone WHERE NOT EXISTS (SELECT 1 FROM T15 WHERE symbolid = 1010081 AND pricedatetime = '2021-07-26 03:45:00'::timestamp without time zone);;Date: 2021-07-26 03:00:12 Database: acaweb_fx Application: User: postgres Remote:
2 277 WARNING: there is no transaction in progress
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 26 03 277 - WARNING: there is no transaction in progress
Date: 2021-07-26 03:00:46 Database: acaweb_fx Application: User: postgres Remote:
3 60 ERROR: canceling statement due to user request
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 26 03 60 - ERROR: canceling statement due to user request
Statement: SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol,shortname,timegranularity, patternendtime,pattern,a.direction,trendchange,patternlengthbars,patternquality,a.resultuid as uid,breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname , CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= (SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= (SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND ((( s.symbol ilike '%eurusd%' AND timegranularity <= 1440 ) ) OR (( s.symbol ilike '%eurusd%' AND timegranularity = 15 ) ) OR (( s.symbol ilike '%eurusd%' AND timegranularity = 30 ) ) OR (( s.symbol ilike '%eurusd%' AND timegranularity = 60 ) ) OR (( s.symbol ilike '%eurusd%' AND timegranularity = 240 ) )) AND breakout >= 0.5 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 40 AND patternquality >= 0.5 AND initialtrend >= 0.5 AND symmetry >= 0.5 AND noise <= 0.5 AND volumeincrease >= 0.5 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516765230 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50
Date: 2021-07-26 03:15:13 Database: acaweb_fx Application: User: postgres Remote:
4 24 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 26 03 24 - LOG: process 26898 still waiting for AccessShareLock on relation 2610 of database 51448 after 1000.045 ms
- LOG: process 26902 still waiting for AccessShareLock on relation 2610 of database 51448 after 1000.043 ms
- LOG: process 26936 still waiting for AccessShareLock on relation 2610 of database 51448 after 1000.037 ms
Detail: Process holding the lock: 26901. Wait queue: 26898, 26902, 26936, 26947, 26948, 26949, 26950, 26951, 26952, 26785, 11043.
Statement: ( ( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $1 union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $2 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > (select resultuid from relevance_autochartist_results order by resultuid desc limit 1) ) ) union all ( ( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $3 union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $4 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > (select resultuid from relevance_fibonacci_results order by resultuid desc limit 1) ) ) union all ( ( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $5 union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $6 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > (select resultuid from relevance_keylevels_results order by resultuid desc limit 1) ) )Date: 2021-07-26 03:07:27 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 26901. Wait queue: 26898, 26902, 26936, 26947, 26948, 26949, 26950, 26951, 26952, 26785, 11043.
Date: 2021-07-26 03:07:27 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 26901. Wait queue: 26898, 26902, 26936, 26947, 26948, 26949, 26950, 26951, 26952, 26785, 11043.
Date: 2021-07-26 03:07:27 Database: acaweb_fx Application: User: postgres Remote:
5 23 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 26 03 23 - FATAL: connection to client lost
Date: 2021-07-26 03:17:56 Database: acaweb_fx Application: User: postgres Remote:
6 20 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 26 03 20 - LOG: process 10836 still waiting for ShareLock on transaction 98979460 after 1000.032 ms
- LOG: process 20350 still waiting for ShareLock on transaction 98978335 after 1000.041 ms
- LOG: process 11042 still waiting for ShareLock on transaction 98978335 after 1000.039 ms
Detail: Process holding the lock: 10835. Wait queue: 10836.
Context: while inserting index tuple (134692,15) in relation "keylevels_results"
Statement: INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 7.000000000000000000000000000000, -1, 1, '2021-07-26 00:59:43'::timestamp without time zone, '', 0.500000000000000000000000000000, 6, 252, 81.375000000000000000000000000000, '2021-07-23 15:00:00', '2021-07-16 16:00:00', '2021-07-15 18:00:00', '2021-07-15 02:00:00', '2021-07-09 08:00:00', '2021-07-09 03:00:00', '', '', '', '', 882, 81.465050000000005070000000000000, '2021-07-26 03:00:00'::timestamp without time zone, '2021-07-26 03:00:00', 0.000000000000000000000000000000, 0.090050000000000102180000000000, -1, 1009983, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1009983|81.375|1|2021-07-26 03:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-09 03:00:00', 81.766999999999995900000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1009983|81.375|1|2021-07-26 03:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;Date: 2021-07-26 03:00:11 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 17278. Wait queue: 14334, 20350.
Context: while updating tuple (157150,35) in relation "patternresultsrelevance"
Statement: UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0,notrelevantpricedatetime = '2021-07-26 03:45:00', reason = 'Pattern formed a Breakout pattern (see |974475|87.861|2|2021-07-26 03:45:00|-1|1).' WHERE uniqueIndex = '|974475|87.861|2|2021-07-23 21:15:00|1|-1' and relevant = 1;Date: 2021-07-26 03:00:39 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 17278. Wait queue: 14334, 20350, 11042, 11043.
Context: while updating tuple (157874,28) in relation "patternresultsrelevance"
Statement: UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0,notrelevantpricedatetime = '2021-07-26 03:30:00', reason = 'Pattern formed a Breakout pattern (see |1032237|0.60653|1|2021-07-26 03:30:00|1|1).' WHERE uniqueIndex = '|1032237|0.60653|1|2021-07-25 12:00:00|-1|-1' and relevant = 1;Date: 2021-07-26 03:01:40 Database: acaweb_fx Application: User: postgres Remote:
7 12 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 26 03 12 - ERROR: duplicate key value violates unique constraint "idx_keylevels_uniquepointsvalue"
- ERROR: duplicate key value violates unique constraint "ix_fibonacci_unique"
- ERROR: duplicate key value violates unique constraint "idx_firstemerging_chartpattern"
Detail: Key (uniquepointsvalue)=(|960530|0.85465|2|2021-07-26 01:00:00|1|-1) already exists.
Statement: INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 10.000000, -1, 2, '2021-07-26 01:21:43'::timestamp without time zone, '', 0.500000, 7, 76, 0.854650, '2021-07-23 15:00:00', '2021-07-23 13:30:00', '2021-07-23 05:45:00', '2021-07-22 23:30:00', '2021-07-22 21:45:00', '2021-07-22 21:00:00', '2021-07-22 20:00:00', '', '', '', 304, 0.854473, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-26 01:00:00', 0.000000, 0.000202, 1, 960530, 0.000000, 0.000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|960530|0.85465|2|2021-07-26 01:00:00|1|-1', 0.000000, 0.000000, 3, '2021-07-22 20:00:00', 0.854650, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|960530|0.85465|2|2021-07-26 01:00:00|1|-1') LIMIT 1; ;Date: 2021-07-26 03:22:09 Database: acaweb_fx Application: User: postgres Remote:
Detail: Key (pattern, direction, patternstarttime, patternstartprice, qtytp, patternlengthbars, ratiosfound, temporarypattern, symbolid, timex, timea, timeb, timec, timed)=(ABCD, 1, 2021-07-23 19:30:00, 1.17755, 4, 17, BC=0.786*AB (0.786) CD=1.618*AB (1.586) , 0, 960534, 1899-12-29 00:00:00, 2021-07-23 19:30:00, 2021-07-23 20:45:00, 2021-07-25 23:00:00, 2021-07-26 00:45:00) already exists.
Statement: INSERT INTO Fibonacci_Results( Bandwidth, Pattern, GMTTimeFound, Direction, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, QtyTP, pricex,timex, pricea,timea, priceb, timeb, pricec,timec, priced, timed, averagequality, timequality, errormargin, PatternLengthBars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) SELECT DISTINCT 2.000000, 'ABCD', '2021-07-26 01:21:43'::timestamp without time zone, 1, '2021-07-23 19:30:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 1.177550, 1.177110, 4, -1.000000, '1899-12-29 00:00:00'::timestamp without time zone, 1.177550, '2021-07-23 19:30:00'::timestamp without time zone, 1.176850, '2021-07-23 20:45:00'::timestamp without time zone, 1.177400, '2021-07-25 23:00:00'::timestamp without time zone, 1.176290, '2021-07-26 00:45:00'::timestamp without time zone, 0.377298, 0.500000, 0.205307, 17, 1.177400, 1.176976, 1.178086, 1.177163, 1.177702, 1.176845, 1.176714, 960534, 0.573413, 'BC=0.786*AB (0.786) CD=1.618*AB (1.586) ', 0, 'ABCD|1|2021-07-23 19:30:00|1.17755|1.17711|4|17|BC=0.786*AB (0.786)","CD=1.618*AB (1.586)|0|960534|1899-12-29 00:00:00|2021-07-23 19:30:00|2021-07-23 20:45:00|2021-07-25 23:00:00|2021-07-26 00:45:00', 1, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Fibonacci_Results WHERE pattern ilike 'ABCD' AND direction = 1 AND patternstarttime = '2021-07-23 19:30:00'::timestamp without time zone AND patternstartprice = 1.177550 AND qtytp = 4 AND patternlengthbars = 17 AND ratiosfound = 'BC=0.786*AB (0.786) CD=1.618*AB (1.586) ' AND temporarypattern = 0 AND symbolid = 960534 AND timex = '1899-12-29 00:00:00'::timestamp without time zone AND timea = '2021-07-23 19:30:00'::timestamp without time zone AND timeb = '2021-07-23 20:45:00'::timestamp without time zone AND timec = '2021-07-25 23:00:00'::timestamp without time zone AND timed = '2021-07-26 00:45:00'::timestamp without time zone) LIMIT 1;;Date: 2021-07-26 03:22:11 Database: acaweb_fx Application: User: postgres Remote:
Detail: Key (breakout, resx0, resx1, supportx0, supportx1, resy0, resy1, supporty0, supporty1, symbolid)=(0.607154, 2021-07-22 13:00:00, 2021-07-25 23:30:00, 2021-07-20 13:30:00, 2021-07-22 21:00:00, 130.294, 130.166, 128.592, 129.513, 960569) already exists.
Statement: INSERT INTO Autochartist_Results(ResultID, SymbolID, Bandwidth, Pattern, QtyTP, GMTTimeFound, Direction, InitialTrend, Breakout, VolumeIncrease, Noise, Symmetry, PredictionPriceFrom, PredictionPriceTo, PredictionTimeFrom, PredictionTimeTo, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, Resx0, Resx1, Supportx0, Supportx1, Resy0, Resy1, Supporty0, Supporty1, SupportGradient, ResGradient,RiskReward, PatternQuality, TrendChange, MaxMovementAfterBreakout, LatestBarAtBreakoutTime, LatestBarAtBreakoutPrice, PatternLengthBars, TemporaryPattern, relevancestartdistance, simulation, writtendatetime) SELECT DISTINCT '9605690.6072|44399.5417|44402.9792|44397.5625|44399.875|130.294|130.166|128.592|129.513', 960569, 9.000000, 'Triangle', 4, '2021-07-26 01:32:34'::timestamp without time zone, -1, 1.000000, 0.607154, 0.000000, 1.000000, 0.372364, 128.918258, 129.507857, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-28 18:45:00'::timestamp without time zone, '2021-07-20 13:30:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 130.859000, 129.961054, '2021-07-22 13:00:00'::timestamp without time zone, '2021-07-25 23:30:00'::timestamp without time zone, '2021-07-20 13:30:00'::timestamp without time zone, '2021-07-22 21:00:00'::timestamp without time zone, 130.294000, 130.166000, 128.592000, 129.513000, 0.008297, -0.001910, 1.979726, 0.494880, 'Continuation', -0.032054, '2021-07-26 01:00:00'::timestamp without time zone, 129.929000, 165, 0, 1.177500, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = 0.607154 and resx0 = '2021-07-22 13:00:00'::timestamp without time zone and resx1 = '2021-07-25 23:30:00'::timestamp without time zone and supportx0 = '2021-07-20 13:30:00'::timestamp without time zone and supportx1 = '2021-07-22 21:00:00'::timestamp without time zone and resy0 = 130.294000 and resy1 = 130.166000 and supporty0 = 128.592000 and supporty1 = 129.513000 and symbolid = 960569) or resultid = '9605690.6072|44399.5417|44402.9792|44397.5625|44399.875|130.294|130.166|128.592|129.513') LIMIT 1;;Date: 2021-07-26 03:33:00 Database: acaweb_fx Application: User: postgres Remote:
8 4 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 26 03 4 - ERROR: column "waiting" does not exist at character 103
Statement: select pid, datname, client_addr, query_start, query from pg_stat_activity where (state = 'active' or waiting = true) and query_start < current_timestamp - INTERVAL '10 minute' and query not like 'autovacuum%' order by query_start asc
Date: 2021-07-26 03:21:00 Database: acaweb_fx Application: User: postgres Remote:
9 4 FATAL: terminating connection due to administrator command
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 26 03 4 - FATAL: terminating connection due to administrator command
Statement: ( ( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $1 union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $2 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > (select resultuid from relevance_autochartist_results order by resultuid desc limit 1) ) ) union all ( ( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $3 union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $4 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > (select resultuid from relevance_fibonacci_results order by resultuid desc limit 1) ) ) union all ( ( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = $5 union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = $6 inner join symbols s on s.symbolid = bsl.symbolid where resultuid > (select resultuid from relevance_keylevels_results order by resultuid desc limit 1) ) )
Date: 2021-07-26 03:51:18
10 2 ERROR: canceling statement due to statement timeout
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 26 03 2 - ERROR: canceling statement due to statement timeout
Statement: SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'ATFX - 1'
Date: 2021-07-26 03:32:58 Database: acaweb_fx Application: User: postgres Remote:
11 1 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 26 03 1 - ERROR: relation "timezones_vi_vn" does not exist at character 191
Statement: SELECT tl.timezone langTimezone, t.timezone as timezone, (cast(substring(t.gmoffset,0,4) as double precision)*60 + cast(substring(t.gmoffset,5,2) as double precision))/60 as gmoffset FROM timezones_vi_VN tl INNER JOIN timezones t ON tl.timezoneid = t.timezoneid ORDER BY t.timezone
Date: 2021-07-26 03:41:20 Database: acaweb_fx Application: User: postgres Remote:
12 1 ERROR: canceling autovacuum task
Times Reported Most Frequent Error / Event #12
Day Hour Count Jul 26 03 1 - ERROR: canceling autovacuum task
Context: while truncating relation "pg_catalog.pg_index" to 98 blocks automatic vacuum of table "acaweb_fx.pg_catalog.pg_index"
Date: 2021-07-26 03:07:28