-
Global information
- Generated on Mon Jul 26 17:59:10 2021
- Log file: /home/postgres/pg_data/data/pg_log/postgresql-2021-07-26_190000.log
- Parsed 105,213 log entries in 8s
- Log start from 2021-07-26 19:00:00 to 2021-07-26 19:59:01
-
Overview
Global Stats
- 676 Number of unique normalized queries
- 27,264 Number of queries
- 8h1m14s Total query duration
- 2021-07-26 19:00:00 First query
- 2021-07-26 19:59:01 Last query
- 108 queries/s at 2021-07-26 19:16:08 Query peak
- 8h1m14s Total query duration
- 569ms Prepare/parse total duration
- 5s814ms Bind total duration
- 8h1m8s Execute total duration
- 3,615 Number of events
- 8 Number of unique normalized events
- 3,317 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
- 202 Number temporary file
- 106.75 MiB Max size of temporary file
- 6.54 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
- 27,264 Average queries per session
- 8h1m14s 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
- 108 queries/s Query Peak
- 2021-07-26 19:16:08 Date
SELECT Traffic
Key values
- 28 queries/s Query Peak
- 2021-07-26 19:30:30 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 103 queries/s Query Peak
- 2021-07-26 19:16:08 Date
Queries duration
Key values
- 8h1m14s 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 19 27,264 50ms 10m25s 1s58ms 19m25s 27m26s 33m51s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 26 19 7,229 26 1s609ms 5m37s 6m36s 10m23s Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 26 19 16,057 2,914 0 77 471ms 24s218ms 1m25s 18m32s Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 26 19 7 6,937 991.00 0.03% Day Hour Count Average / Second Jul 26 19 0 0.00/s Day Hour Count Average Duration Average idle time Jul 26 19 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 19 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 26 19 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 26 19 0 0s Day Hour Mean distance Mean estimate Jul 26 19 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 50.62 MiB Temp Files size Peak
- 2021-07-26 19:42:07 Date
Number of temporary files
Key values
- 3 per second Temp Files Peak
- 2021-07-26 19:13:14 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 26 19 202 1.29 GiB 6.54 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 42 192.84 MiB 3.85 MiB 5.54 MiB 4.59 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 19:36:40 Duration: 0ms Database: acaweb_fx User: postgres
2 14 64.92 MiB 4.00 MiB 5.49 MiB 4.64 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 19:36:42 Duration: 0ms Database: acaweb_fx User: postgres
3 13 78.75 MiB 3.94 MiB 8.88 MiB 6.06 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 > 517125767 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 19:42:14 Duration: 0ms Database: acaweb_fx User: postgres
4 10 25.86 MiB 2.54 MiB 2.66 MiB 2.59 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 19:02:10 Duration: 16s17ms 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 19:32:16 Duration: 14s996ms 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 19:47:28 Duration: 10s591ms Database: acaweb_fx User: postgres
5 5 32.96 MiB 4.94 MiB 7.73 MiB 6.59 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 '%eurnzd%' 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 > 516855883 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 19:36:18 Duration: 0ms Database: acaweb_fx User: postgres
6 5 32.91 MiB 2.64 MiB 17.79 MiB 6.58 MiB select stats_createsummarytables_by_groups_chartpattens (cast(? as int));-
select stats_createSummaryTables_by_groups_ChartPattens (cast(86 as int));
Date: 2021-07-26 19:48:09 Duration: 3m17s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(91 as int));
Date: 2021-07-26 19:56:01 Duration: 1m10s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(89 as int));
Date: 2021-07-26 19:54:49 Duration: 35s837ms Database: acaweb_fx User: postgres
7 4 26.77 MiB 6.20 MiB 7.20 MiB 6.69 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 > 61322207 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:37:22 Duration: 0ms Database: acaweb_fx User: postgres
8 4 24.40 MiB 3.95 MiB 7.73 MiB 6.10 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 19:44:13 Duration: 0ms Database: acaweb_fx User: postgres
9 2 15.45 MiB 7.73 MiB 7.73 MiB 7.73 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 '%eurusd%' AND timegranularity = 240)) OR ((s.symbol ilike '%eurusd%' 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 > 517053699 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 19:20:05 Duration: 0ms Database: acaweb_fx User: postgres
10 2 10.80 MiB 4.44 MiB 6.37 MiB 5.40 MiB ) 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 '%cadchf%' 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 19:34:13 Duration: 0ms Database: acaweb_fx User: postgres
11 2 8.88 MiB 3.95 MiB 4.94 MiB 4.44 MiB when ? then ? when ? then ? when ? then ? when ? then ? when ? then ? end)) order by relevant desc, age asc, patternendtime desc, qtp 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, qtp DESC LIMIT 50;
Date: 2021-07-26 19:38:20 Duration: 0ms Database: acaweb_fx User: postgres
12 1 3.95 MiB 3.95 MiB 3.95 MiB 3.95 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 <= ?)) 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 <= ?)) 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 '%usdjpy%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%gbpusd%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%audusd%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%usdchf%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%usdcad%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%gbpjpy%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%eurjpy%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%nzdusd%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%audjpy%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%euraud%' 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 19:54:21 Duration: 0ms Database: acaweb_fx User: postgres
13 1 7.34 MiB 7.34 MiB 7.34 MiB 7.34 MiB with a as ( select *, row_number() over (partition by symbolid, direction order by datetime desc) r from sa_hist_consecutivecandles ) select distinct a.symbolid, a.qty, a.percentile, a.direction from a inner join symbols s on a.symbolid = s.symbolid inner join autochartist_stocklist aus on s.symbolid = aus.symbolid where aus.enabled = ? and a.r = ? and aus.recognitionengine ilike ?;-
WITH a AS ( SELECT *, row_number() OVER (PARTITION BY symbolid, direction ORDER BY datetime DESC) r FROM sa_hist_consecutivecandles ) SELECT DISTINCT a.symbolid, a.qty, a.percentile, a.direction FROM a INNER JOIN symbols s on a.symbolid = s.symbolid INNER JOIN autochartist_stocklist aus on s.symbolid = aus.symbolid WHERE aus.Enabled = 1 AND a.r = 1 AND aus.RecognitionEngine ILIKE 'XM - 2';
Date: 2021-07-26 19:28:47 Duration: 4s980ms Database: acaweb_fx User: postgres
-
WITH a AS ( SELECT *, row_number() OVER (PARTITION BY symbolid, direction ORDER BY datetime DESC) r FROM sa_hist_consecutivecandles ) SELECT DISTINCT a.symbolid, a.qty, a.percentile, a.direction FROM a INNER JOIN symbols s on a.symbolid = s.symbolid INNER JOIN autochartist_stocklist aus on s.symbolid = aus.symbolid WHERE aus.Enabled = 1 AND a.r = 1 AND aus.RecognitionEngine ILIKE 'XM - 2';
Date: 2021-07-26 19:28:47 Duration: 0ms Database: acaweb_fx User: postgres
14 1 2.51 MiB 2.51 MiB 2.51 MiB 2.51 MiB select stats_createsummarytables_by_groups_keylevels (cast(? as int));-
select stats_createSummaryTables_by_groups_KeyLevels (cast(88 as int));
Date: 2021-07-26 19:54:14 Duration: 5m15s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(86 as int));
Date: 2021-07-26 19:48:44 Duration: 35s432ms Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(103 as int));
Date: 2021-07-26 19:57:40 Duration: 19s377ms Database: acaweb_fx User: postgres
15 1 7.17 MiB 7.17 MiB 7.17 MiB 7.17 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 19:04:12 Duration: 0ms Database: acaweb_fx User: postgres
16 1 4.41 MiB 4.41 MiB 4.41 MiB 4.41 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 19:27:40 Duration: 0ms Database: acaweb_fx User: postgres
17 1 4.08 MiB 4.08 MiB 4.08 MiB 4.08 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 '%oil%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%usdidx%' 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 19:18:22 Duration: 0ms Database: acaweb_fx User: postgres
18 1 3.94 MiB 3.94 MiB 3.94 MiB 3.94 MiB ) 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 '%usdcad%' AND timegranularity <= 1440)) OR ((c.symbol ilike '%gbpjpy%' AND timegranularity <= 1440)) 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 19:14:20 Duration: 0ms Database: acaweb_fx User: postgres
19 1 7.19 MiB 7.19 MiB 7.19 MiB 7.19 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 > 517321084 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 19:44:13 Duration: 0ms Database: acaweb_fx User: postgres
20 1 7.19 MiB 7.19 MiB 7.19 MiB 7.19 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 '%eurgbp%' 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 > 517125767 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 19:36:13 Duration: 0ms Database: acaweb_fx User: postgres
21 1 4.08 MiB 4.08 MiB 4.08 MiB 4.08 MiB ) or ((symbol ilike ? and timegranularity <= ?)) or ((symbol ilike ? and timegranularity <= ?))) 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 ?;-
) OR ((symbol ilike '%oil%' AND timegranularity <= 1440)) OR ((symbol ilike '%usdidx%' AND timegranularity <= 1440))) 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 & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61312613 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:26:22 Duration: 0ms Database: acaweb_fx User: postgres
Queries generating the largest temporary files
Rank Size Query 1 17.79 MiB select stats_createSummaryTables_by_groups_ChartPattens (cast(103 as int));[ Date: 2021-07-26 19:57:20 - Database: acaweb_fx - User: postgres ]
2 8.88 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 > 517029429 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:22:20 - Database: acaweb_fx - User: postgres ]
3 7.73 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 19:44:13 - Database: acaweb_fx - User: postgres ]
4 7.73 MiB ) OR ((s.symbol ilike '%nzdusd%' AND timegranularity = 240))) 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 > 517080618 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:52:15 - Database: acaweb_fx - User: postgres ]
5 7.73 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 19:36:13 - Database: acaweb_fx - User: postgres ]
6 7.73 MiB ) OR ((s.symbol ilike '%eurnzd%' 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 > 516855883 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:12:02 - Database: acaweb_fx - User: postgres ]
7 7.73 MiB ) OR ((s.symbol ilike '%eurusd%' AND timegranularity = 240)) OR ((s.symbol ilike '%eurusd%' 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 > 517053699 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:20:05 - Database: acaweb_fx - User: postgres ]
8 7.73 MiB ) OR ((s.symbol ilike '%eurusd%' AND timegranularity = 240)) OR ((s.symbol ilike '%eurusd%' 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 > 517053699 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:28:12 - Database: acaweb_fx - User: postgres ]
9 7.34 MiB WITH a AS ( SELECT *, row_number() OVER (PARTITION BY symbolid, direction ORDER BY datetime DESC) r FROM sa_hist_consecutivecandles ) SELECT DISTINCT a.symbolid, a.qty, a.percentile, a.direction FROM a INNER JOIN symbols s on a.symbolid = s.symbolid INNER JOIN autochartist_stocklist aus on s.symbolid = aus.symbolid WHERE aus.Enabled = 1 AND a.r = 1 AND aus.RecognitionEngine ILIKE 'XM - 2';[ Date: 2021-07-26 19:28:47 - Database: acaweb_fx - User: postgres ]
10 7.20 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 & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61325169 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 19:52:15 - Database: acaweb_fx - User: postgres ]
11 7.19 MiB ) OR ((s.symbol ilike '%eurgbp%' 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 > 517125767 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:36:13 - Database: acaweb_fx - User: postgres ]
12 7.19 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 > 517321084 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:44:13 - Database: acaweb_fx - User: postgres ]
13 7.18 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 > 61326450 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 19:12:12 - Database: acaweb_fx - User: postgres ]
14 7.18 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 > 516855794 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:28:13 - Database: acaweb_fx - User: postgres ]
15 7.17 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 19:04:12 - Database: acaweb_fx - User: postgres ]
16 6.38 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 19:50:28 - Database: acaweb_fx - User: postgres ]
17 6.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 > 517125767 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:17:55 - Database: acaweb_fx - User: postgres ]
18 6.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 > 517197397 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:25:56 - Database: acaweb_fx - User: postgres ]
19 6.37 MiB ) OR ((c.symbol ilike '%cadchf%' 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 19:34:13 - Database: acaweb_fx - User: postgres ]
20 6.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 > 517125767 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 19:42:14 - Database: acaweb_fx - User: postgres ]
21 0 )) 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 > 517125767 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: ]
-
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 19 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- AccessExclusiveLock Main Lock Type
- 3,321 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 863 23m5s 1s1ms 4s521ms 1s605ms 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 1016266, '2021-07-26 19:15:00'::timestamp without time zone, 0.85415, 0.85431, 0.85414, 0.85428, 220, 0, '2021-07-26 19:31:07'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1016266 AND pricedatetime = '2021-07-26 19:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:08 Database: acaweb_fx User: postgres
2 801 22m1s 1s1ms 5s207ms 1s649ms 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 1023690, '2021-07-26 13:00:00'::timestamp without time zone, 518.51, 518.5896, 517.71, 517.97, 34381, 0, '2021-07-26 19:31:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1023690 AND pricedatetime = '2021-07-26 13:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:07 Database: acaweb_fx User: postgres
3 439 13m9s 1s3ms 5s51ms 1s798ms 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 982377, '2021-07-26 19:00:00'::timestamp without time zone, 0.73857, 0.73861, 0.7381, 0.7381, 3128, 0, '2021-07-26 19:01:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982377 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:03 Database: acaweb_fx User: postgres
4 292 8m48s 1s11ms 5s267ms 1s808ms 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 1009979, '2021-07-26 16:00:00'::timestamp without time zone, 7.386, 7.444, 7.383, 7.442, 3342, 0, '2021-07-26 19:01:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1009979 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:03 Database: acaweb_fx User: postgres
5 58 1m36s 1s29ms 3s498ms 1s668ms 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 969955, '2021-07-26 20:00:00'::timestamp without time zone, 6.48354, 6.48386, 6.48241, 6.48276, 241, 0, '2021-07-26 19:31:09'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 969955 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969955, '2021-07-26 20:15:00'::timestamp without time zone, 6.48278, 6.48282, 6.48225, 6.48253, 157, 0, '2021-07-26 19:31:09'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 969955 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:10 Database: acaweb_fx User: postgres
6 31 54s383ms 1s48ms 4s372ms 1s754ms 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 (960570, '2021-07-26 16:30', 1.68636, 1.68744, 1.6862, 1.68744, 0, 0, '2021-07-26 19:03');
Date: 2021-07-26 19:03:20 Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960556, '2021-07-26 16:30', 81.46, 81.476, 81.42, 81.426, 0, 0, '2021-07-26 19:02');
Date: 2021-07-26 19:02:12 Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960573, '2021-07-26 16:30', 1.87266, 1.87329, 1.87219, 1.87328, 0, 0, '2021-07-26 19:03');
Date: 2021-07-26 19:03:35 Database: acaweb_fx User: postgres
7 29 49s682ms 1s1ms 3s732ms 1s713ms 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 (960532, '2021-07-26 16:45', 1.68719, 1.68744, 1.68704, 1.68744, 0, 0, '2021-07-26 19:03');
Date: 2021-07-26 19:03:15 Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960518, '2021-07-26 16:45', 81.432, 81.442, 81.42, 81.426, 0, 0, '2021-07-26 19:02');
Date: 2021-07-26 19:02:08 Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960516, '2021-07-26 16:45', 0.92584, 0.92592, 0.92562, 0.92562, 0, 0, '2021-07-26 19:01');
Date: 2021-07-26 19:01:54 Database: acaweb_fx User: postgres
8 23 33s489ms 1s5ms 2s54ms 1s456ms 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 (960592, '2021-07-26 16:00', 0.92621, 0.92635, 0.92562, 0.92562, 0, 0, '2021-07-26 19:01');
Date: 2021-07-26 19:02:00 Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960610, '2021-07-26 16:00', 1.18095, 1.18122, 1.18064, 1.1812, 0, 0, '2021-07-26 19:03');
Date: 2021-07-26 19:03:29 Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960599, '2021-07-26 16:00', 87.952, 87.965, 87.893, 87.959, 0, 0, '2021-07-26 19:02');
Date: 2021-07-26 19:02:36 Database: acaweb_fx User: postgres
9 17 29s326ms 1s123ms 3s45ms 1s725ms 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 977020, '2021-07-26 20:15:00'::timestamp without time zone, 15601, 15604, 15591, 15603, 133, 0, '2021-07-26 19:31:29'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 977020 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:30 Database: acaweb_fx User: postgres
10 12 21s584ms 1s289ms 3s257ms 1s798ms 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-26 20:00:00'::timestamp without time zone, 26218, 26221, 26181, 26202, 674, 0, '2021-07-26 19:32:04'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977006 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:32:05 Database: acaweb_fx User: postgres
11 10 13s511ms 1s165ms 2s106ms 1s351ms 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 1002977, '2021-07-26 20:00:00'::timestamp without time zone, 35078, 35114.6, 35075.4, 35092.3, 1480, 0, '2021-07-26 19:31:07'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1002977 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:09 Database: acaweb_fx User: postgres
12 7 12s685ms 1s260ms 3s6ms 1s812ms 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 982767, '2021-07-26 19:00:00'::timestamp without time zone, 15614, 15616, 15588, 15597, 879, 0, '2021-07-26 19:01:44'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982767 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:46 Database: acaweb_fx User: postgres
13 8 11s937ms 1s268ms 2s300ms 1s492ms 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 975946, '2021-07-26 20:00:00'::timestamp without time zone, 15603.5, 15617.5, 15600.5, 15612, 519, 0, '2021-07-26 19:31:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 975946 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:22 Database: acaweb_fx User: postgres
14 6 11s148ms 1s213ms 3s406ms 1s858ms 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 1026820, '2021-07-26 20:00:00'::timestamp without time zone, 243.66, 244, 243.65, 243.7, 459, 0, '2021-07-26 19:31:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026820 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:19 Database: acaweb_fx User: postgres
15 5 9s966ms 1s313ms 3s406ms 1s993ms 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 1023626, '2021-07-26 12:00:00'::timestamp without time zone, 391.82, 392, 390.59, 390.77, 118059, 0, '2021-07-26 19:01:04'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1023626 AND pricedatetime = '2021-07-26 12:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:05 Database: acaweb_fx User: postgres
16 6 8s672ms 1s271ms 1s772ms 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 986860, '2021-07-26 20:15:00'::timestamp without time zone, 25276.5, 25291.5, 25276.5, 25289, 20, 0, '2021-07-26 19:32:07'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986860 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:32:09 Database: acaweb_fx User: postgres
17 3 8s42ms 1s418ms 4s971ms 2s680ms 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 989767, '2021-07-26 18:00:00'::timestamp without time zone, 206.3, 208.3, 206.05, 207, 1074, 0, '2021-07-26 19:02:47'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 989767 AND pricedatetime = '2021-07-26 18:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:02:48 Database: acaweb_fx User: postgres
18 4 7s452ms 1s236ms 2s179ms 1s863ms 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 961273, '2021-07-26 18:00:00'::timestamp without time zone, 38.11, 38.2, 38, 38.11, 175, 0, '2021-07-26 19:01:28'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 961273 AND pricedatetime = '2021-07-26 18:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:30 Database: acaweb_fx User: postgres
19 4 6s799ms 1s100ms 2s89ms 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 1026819, '2021-07-26 20:15:00'::timestamp without time zone, 243.86, 244, 243.7, 243.7, 253, 0, '2021-07-26 19:31:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026819 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:17 Database: acaweb_fx User: postgres
20 4 5s744ms 1s395ms 1s957ms 1s436ms 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 989811, '2021-07-26 19:00:00'::timestamp without time zone, 372.13, 372.62, 372, 372.04, 2033, 0, '2021-07-26 19:31:28'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 989811 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:30 Database: acaweb_fx User: postgres
21 4 5s698ms 1s138ms 1s524ms 1s424ms 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 1011069, '2021-07-26 16:00:00'::timestamp without time zone, 742.4, 743.7, 740.6, 741, 3361, 0, '2021-07-26 19:01:04'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1011069 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:06 Database: acaweb_fx User: postgres
22 4 5s681ms 1s173ms 1s966ms 1s420ms 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 989810, '2021-07-26 19:15:00'::timestamp without time zone, 372.34, 372.49, 372, 372.04, 948, 0, '2021-07-26 19:31:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 989810 AND pricedatetime = '2021-07-26 19:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:28 Database: acaweb_fx User: postgres
23 3 5s83ms 1s468ms 1s902ms 1s694ms 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 975947, '2021-07-26 19:00:00'::timestamp without time zone, 15614, 15617.5, 15599.5, 15602.5, 1450, 0, '2021-07-26 19:02:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 975947 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:02:22 Database: acaweb_fx User: postgres
24 2 4s751ms 1s410ms 3s341ms 2s375ms 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 982768, '2021-07-26 16:00:00'::timestamp without time zone, 15554, 15625, 15518, 15597, 6355, 0, '2021-07-26 19:01:46'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 982768 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:50 Database: acaweb_fx User: postgres
25 2 4s445ms 2s68ms 2s377ms 2s222ms 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 983393, '2021-07-26 16:00:00'::timestamp without time zone, 3663.76, 3711.13, 3645, 3698.1, 8972, 0, '2021-07-26 19:01:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 983393 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:36 Database: acaweb_fx User: postgres
26 3 3s682ms 1s93ms 1s300ms 1s227ms 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 961602, '2021-07-26 19:00:00'::timestamp without time zone, 149.24, 149.4, 149, 149, 366, 0, '2021-07-26 19:32:32'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 961602 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:32:33 Database: acaweb_fx User: postgres
27 2 3s583ms 1s350ms 2s233ms 1s791ms 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 1026574, '2021-07-26 20:15:00'::timestamp without time zone, 15607.1, 15609.7, 15596.6, 15609, 607, 0, '2021-07-26 19:46:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026574 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026574, '2021-07-26 20:30:00'::timestamp without time zone, 15608.9, 15609.6, 15599.3, 15600.4, 452, 0, '2021-07-26 19:46:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026574 AND pricedatetime = '2021-07-26 20:30:00'::timestamp without time zone); ;
Date: 2021-07-26 19:46:14 Database: acaweb_fx User: postgres
28 2 3s525ms 2s62ms 2s62ms 1s762ms 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 975940, '2021-07-26 20:15:00'::timestamp without time zone, 4096.05, 4099, 4096, 4097.5, 201, 0, '2021-07-26 19:31:22'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 975940 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:25 Database: acaweb_fx User: postgres
29 2 3s506ms 1s309ms 2s196ms 1s753ms 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 982797, '2021-07-26 19:00:00'::timestamp without time zone, 2404, 2412.7, 2404, 2407.4, 245, 0, '2021-07-26 19:01:56'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982797 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:58 Database: acaweb_fx User: postgres
30 2 3s77ms 1s311ms 1s765ms 1s538ms 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-26 13:00:00'::timestamp without time zone, 2680.5, 2681, 2673, 2675, 47, 0, '2021-07-26 19:31:49'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920601 AND pricedatetime = '2021-07-26 13:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:51 Database: acaweb_fx User: postgres
31 2 2s986ms 1s711ms 1s711ms 1s493ms 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 982425, '2021-07-26 20:15:00'::timestamp without time zone, 35095, 35117.5, 35093.5, 35095.5, 958, 0, '2021-07-26 19:32:05'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 982425 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:32:07 Database: acaweb_fx User: postgres
32 2 2s933ms 1s559ms 1s559ms 1s466ms 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 1022879, '2021-07-26 20:30:00'::timestamp without time zone, 4100, 4100, 4098.5, 4099.5, 30, 0, '2021-07-26 19:46:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1022879 AND pricedatetime = '2021-07-26 20:30:00'::timestamp without time zone); ;
Date: 2021-07-26 19:46:18 Database: acaweb_fx User: postgres
33 1 2s797ms 2s797ms 2s797ms 2s797ms 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 1003098, '2021-07-26 19:00:00'::timestamp without time zone, 8759, 8761, 8745.4, 8747, 342, 0, '2021-07-26 19:03:32'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1003098 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:03:35 Database: acaweb_fx User: postgres
34 2 2s726ms 1s148ms 1s577ms 1s363ms 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-26 12:45:00'::timestamp without time zone, 4096.2, 4096.6, 4095, 4095, 357, 0, '2021-07-26 19:01:05'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002036 AND pricedatetime = '2021-07-26 12:45:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:07 Database: acaweb_fx User: postgres
35 2 2s721ms 1s648ms 1s648ms 1s360ms 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 986861, '2021-07-26 20:00:00'::timestamp without time zone, 25279, 25291.5, 25271.5, 25289, 50, 0, '2021-07-26 19:32:09'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 986861 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:32:11 Database: acaweb_fx User: postgres
36 2 2s554ms 1s22ms 1s532ms 1s277ms 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 1022771, '2021-07-26 19:00:00'::timestamp without time zone, 742, 742.1, 740.8, 741, 376, 0, '2021-07-26 19:01:05'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1022771 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:07 Database: acaweb_fx User: postgres
37 1 2s455ms 2s455ms 2s455ms 2s455ms 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 1003097, '2021-07-26 19:30:00'::timestamp without time zone, 8750, 8754, 8745.4, 8747, 149, 0, '2021-07-26 19:03:30'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1003097 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); ;
Date: 2021-07-26 19:03:32 Database: acaweb_fx User: postgres
38 2 2s398ms 1s377ms 1s377ms 1s199ms 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 20:15:00'::timestamp without time zone, 15609, 15617.5, 15608.5, 15612, 257, 0, '2021-07-26 19:31:19'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 975945 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:21 Database: acaweb_fx User: postgres
39 1 2s356ms 2s356ms 2s356ms 2s356ms 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 1022880, '2021-07-26 19:30:00'::timestamp without time zone, 4099, 4099.5, 4097, 4097, 109, 0, '2021-07-26 19:02:55'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1022880 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); ;
Date: 2021-07-26 19:02:58 Database: acaweb_fx User: postgres
40 2 2s261ms 1s87ms 1s173ms 1s130ms 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 17:00:48'::timestamp without time zone, '2021-07-26 19:45:00', 0.087499999999999855670000000000, 4, 115, 28.179999999999999720000000000000, '2021-07-23 18:00:00', '2021-07-21 20:30:00', '2021-07-21 18:45:00', '2021-07-20 17:00:00', '', '', '', '', '', '', 205, 28.201250000000001700000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-26 19:45:00', 28.094999999999998860000000000000, 0.035250000000000100700000000000, 1, 1016832, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1', 28.059249999999998690000000000000, 0.120750000000001023200000000000, 2, '2021-07-20 17:00:00', 28.045000000000001700000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;
Date: 2021-07-26 19:01:15 Database: acaweb_fx User: postgres
41 2 2s179ms 1s40ms 1s138ms 1s89ms 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 982738, '2021-07-26 16:00:00'::timestamp without time zone, 4096, 4105.5, 4094.7, 4097.2, 2331, 0, '2021-07-26 19:04:01'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 982738 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:04:02 Database: acaweb_fx User: postgres
42 1 2s47ms 2s47ms 2s47ms 2s47ms 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 1003096, '2021-07-26 19:45:00'::timestamp without time zone, 8747, 8749, 8745.4, 8747, 64, 0, '2021-07-26 19:03:28'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1003096 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone); ;
Date: 2021-07-26 19:03:30 Database: acaweb_fx User: postgres
43 1 1s734ms 1s734ms 1s734ms 1s734ms 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 1022881, '2021-07-26 19:00:00'::timestamp without time zone, 4102, 4102.5, 4097, 4097, 180, 0, '2021-07-26 19:02:58'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1022881 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:02:59 Database: acaweb_fx User: postgres
44 1 1s552ms 1s552ms 1s552ms 1s552ms 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-26 12:00:00'::timestamp without time zone, 4099.5, 4100.5, 4095, 4095, 1303, 0, '2021-07-26 19:01:08'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1002038 AND pricedatetime = '2021-07-26 12:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:01:10 Database: acaweb_fx User: postgres
45 1 1s545ms 1s545ms 1s545ms 1s545ms 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 920601, '2021-07-26 12:30:00'::timestamp without time zone, 2686.5, 2689.5, 2673.5, 2673.5, 40, 0, '2021-07-26 19:03:05'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920601 AND pricedatetime = '2021-07-26 12:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920601, '2021-07-26 12:45:00'::timestamp without time zone, 2676, 2681.5, 2672.5, 2680.5, 44, 0, '2021-07-26 19:03:05'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920601 AND pricedatetime = '2021-07-26 12:45:00'::timestamp without time zone); ;
Date: 2021-07-26 19:03:07 Database: acaweb_fx User: postgres
46 1 1s529ms 1s529ms 1s529ms 1s529ms 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 '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27', 1029681, 2.000000000000000000000000000000, 'Channel Down', 4, '2021-07-26 17:04:47'::timestamp without time zone, - 1, 0.561961330196557029600000000000, - 1.000000000000000000000000000000, 0.083808278867102362080000000000, 0.225445292620853110500000000000, 0.066387692411221527200000000000, 226.353059995776845900000000000000, 227.407108331573681400000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-28 08:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 233.270000000000010200000000000000, 228.090000000000003400000000000000, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 17:00:00'::timestamp without time zone, 229.789999999999992000000000000000, 228.995000000000004600000000000000, 226.569999999999993200000000000000, 225.270000000000010200000000000000, - 0.068421052631578049840000000000, - 0.066249999999998962500000000000, 1.878408995329655662000000000000, 0.467634576662308454400000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 19:45:00'::timestamp without time zone, 228.159999999999996600000000000000, 30, 0, 3.472499999999996590000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 22:45:00'::timestamp without time zone and resx1 = '2021-07-26 19:15:00'::timestamp without time zone and supportx0 = '2021-07-23 18:45:00'::timestamp without time zone and supportx1 = '2021-07-26 17:00:00'::timestamp without time zone and resy0 = 229.789999999999992000000000000000 and resy1 = 228.995000000000004600000000000000 and supporty0 = 226.569999999999993200000000000000 and supporty1 = 225.270000000000010200000000000000 and symbolid = 1029681) or resultid = '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27') LIMIT 1 ON CONFLICT DO NOTHING; ;
Date: 2021-07-26 19:05:15 Database: acaweb_fx User: postgres
47 1 1s459ms 1s459ms 1s459ms 1s459ms 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 983806, '2021-07-26 20:00:00'::timestamp without time zone, 6573.7, 6580, 6573, 6577.2, 316, 0, '2021-07-26 19:31:43'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 983806 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:45 Database: acaweb_fx User: postgres
48 1 1s392ms 1s392ms 1s392ms 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 986845, '2021-07-26 20:15:00'::timestamp without time zone, 8756, 8760.8, 8756, 8758.3, 105, 0, '2021-07-26 19:31:18'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986845 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:19 Database: acaweb_fx User: postgres
49 1 1s380ms 1s380ms 1s380ms 1s380ms 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 975940, '2021-07-26 19:45:00'::timestamp without time zone, 4096, 4096.6, 4095, 4095, 337, 0, '2021-07-26 19:02:24'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 975940 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone); ;
Date: 2021-07-26 19:02:25 Database: acaweb_fx User: postgres
50 1 1s378ms 1s378ms 1s378ms 1s378ms 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 989616, '2021-07-26 19:00:00'::timestamp without time zone, 6571, 6577, 6570, 6574.5, 332, 0, '2021-07-26 19:31:31'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 989616 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:32 Database: acaweb_fx User: postgres
51 1 1s342ms 1s342ms 1s342ms 1s342ms 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 20:00:00'::timestamp without time zone, 27902.5, 27920, 27890, 27900, 247, 0, '2021-07-26 19:32:07'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977011 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:32:08 Database: acaweb_fx User: postgres
52 1 1s334ms 1s334ms 1s334ms 1s334ms 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 1026609, '2021-07-26 20:00:00'::timestamp without time zone, 15602.1, 15609.6, 15598.9, 15609.5, 344, 0, '2021-07-26 19:31:40'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026609 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026609, '2021-07-26 20:15:00'::timestamp without time zone, 15608.9, 15616, 15608.9, 15611.1, 323, 0, '2021-07-26 19:31:40'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026609 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:41 Database: acaweb_fx User: postgres
53 1 1s206ms 1s206ms 1s206ms 1s206ms 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 1023132, '2021-07-26 16:00:00'::timestamp without time zone, 4398.7, 4420.2, 4398, 4414, 6939, 0, '2021-07-26 19:04:09'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1023132 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:04:10 Database: acaweb_fx User: postgres
54 1 1s203ms 1s203ms 1s203ms 1s203ms 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 1026574, '2021-07-26 20:00:00'::timestamp without time zone, 15603.7, 15609.9, 15600, 15607.2, 581, 0, '2021-07-26 19:31:37'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026574 AND pricedatetime = '2021-07-26 20:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026574, '2021-07-26 20:15:00'::timestamp without time zone, 15607.1, 15609.7, 15596.6, 15609, 607, 0, '2021-07-26 19:31:37'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1026574 AND pricedatetime = '2021-07-26 20:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:38 Database: acaweb_fx User: postgres
55 1 1s117ms 1s117ms 1s117ms 1s117ms 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 1021230, '2021-07-26 19:30:00'::timestamp without time zone, 4416, 4416.5, 4412, 4414.2, 560, 0, '2021-07-26 19:04:02'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1021230 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); ;
Date: 2021-07-26 19:04:03 Database: acaweb_fx User: postgres
56 1 1s111ms 1s111ms 1s111ms 1s111ms 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 982743, '2021-07-26 16:00:00'::timestamp without time zone, 6565.5, 6588, 6564.2, 6573.2, 8856, 0, '2021-07-26 19:04:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 982743 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:04:07 Database: acaweb_fx User: postgres
57 1 1s106ms 1s106ms 1s106ms 1s106ms 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 977012, '2021-07-26 19:00:00'::timestamp without time zone, 27927.5, 27930, 27880, 27900, 623, 0, '2021-07-26 19:04:18'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 977012 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 19:04:19 Database: acaweb_fx User: postgres
58 1 1s95ms 1s95ms 1s95ms 1s95ms 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 920601, '2021-07-26 13:15:00'::timestamp without time zone, 2677, 2677.5, 2677, 2677.5, 3, 0, '2021-07-26 19:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920601 AND pricedatetime = '2021-07-26 13:15:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920601, '2021-07-26 13:30:00'::timestamp without time zone, 2674.5, 2676, 2674.5, 2676, 3, 0, '2021-07-26 19:46:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920601 AND pricedatetime = '2021-07-26 13:30:00'::timestamp without time zone); ;
Date: 2021-07-26 19:46:22 Database: acaweb_fx User: postgres
59 1 1s15ms 1s15ms 1s15ms 1s15ms 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 1023694, '2021-07-26 13:00:00'::timestamp without time zone, 46, 46, 45.98, 45.99, 4415, 0, '2021-07-26 19:31:55'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1023694 AND pricedatetime = '2021-07-26 13:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023694, '2021-07-26 13:15:00'::timestamp without time zone, 46, 46.04, 45.99, 46.0201, 5281, 0, '2021-07-26 19:31:55'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1023694 AND pricedatetime = '2021-07-26 13:15:00'::timestamp without time zone); ;
Date: 2021-07-26 19:31:56 Database: acaweb_fx User: postgres
60 1 1s 1s 1s 1s select updateresultsmaterializedview ();-
select updateresultsmaterializedview ();
Date: 2021-07-26 19:51:50 Database: acaweb_fx User: postgres
-
select updateresultsmaterializedview ();
Date: 2021-07-26 19:23:33 Database: acaweb_fx User: postgres
-
select updateresultsmaterializedview ();
Date: 2021-07-26 19:08:22 Database: acaweb_fx User: postgres
Queries that waited the most
Rank Wait time Query 1 5s267ms INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021132, '2021-07-26 16:00:00'::timestamp without time zone, 7.64706, 7.66263, 7.64572, 7.65695, 12295, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1021132 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:19 - Database: acaweb_fx - User: postgres ]
2 5s207ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 966781, '2021-07-26 12:30:00'::timestamp without time zone, 0.70003, 0.70023, 0.69976, 0.69984, 1069, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 966781 AND pricedatetime = '2021-07-26 12:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:19 - Database: acaweb_fx - User: postgres ]
3 5s87ms INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022912, '2021-07-26 16:00:00'::timestamp without time zone, 0.85513, 0.8552, 0.85361, 0.85422, 14024, 0, '2021-07-26 19:03:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1022912 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:19 - Database: acaweb_fx - User: postgres ]
4 5s51ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969052, '2021-07-26 19:00:00'::timestamp without time zone, 361.56, 361.668, 361.38, 361.589, 21096, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 969052 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:18 - Database: acaweb_fx - User: postgres ]
5 5s4ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026401, '2021-07-26 19:00:00'::timestamp without time zone, 87.948, 87.954, 87.883, 87.949, 1402, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026401 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:18 - Database: acaweb_fx - User: postgres ]
6 4s971ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 989802, '2021-07-26 18:00:00'::timestamp without time zone, 177.26, 177.44, 176.72, 177, 2370, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 989802 AND pricedatetime = '2021-07-26 18:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:18 - Database: acaweb_fx - User: postgres ]
7 4s533ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010432, '2021-07-26 19:30:00'::timestamp without time zone, 7.64845, 7.65368, 7.64832, 7.6536, 812, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1010432 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:20 - Database: acaweb_fx - User: postgres ]
8 4s521ms INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986550, '2021-07-26 19:45:00'::timestamp without time zone, 9.18695, 9.1887, 9.18655, 9.18848, 413, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986550 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:20 - Database: acaweb_fx - User: postgres ]
9 4s372ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960570, '2021-07-26 16:30', 1.68636, 1.68744, 1.6862, 1.68744, 0, 0, '2021-07-26 19:03');[ Date: 2021-07-26 19:03:20 - Database: acaweb_fx - User: postgres ]
10 4s192ms INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961451, '2021-07-26 18:45:00'::timestamp without time zone, 47.42, 47.48, 47.42, 47.44, 18, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 961451 AND pricedatetime = '2021-07-26 18:45:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:20 - Database: acaweb_fx - User: postgres ]
11 4s12ms INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 954146, '2021-07-26 19:45:00'::timestamp without time zone, 1.26593, 1.26593, 1.26557, 1.26577, 673, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 954146 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:17 - Database: acaweb_fx - User: postgres ]
12 3s938ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920805, '2021-07-26 12:00:00'::timestamp without time zone, 1065.5, 1070.6, 1064.4, 1070.6, 517, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 920805 AND pricedatetime = '2021-07-26 12:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:20 - Database: acaweb_fx - User: postgres ]
13 3s858ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982517, '2021-07-26 19:00:00'::timestamp without time zone, 1.68639, 1.68755, 1.68618, 1.68742, 2175, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982517 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:19 - Database: acaweb_fx - User: postgres ]
14 3s755ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975612, '2021-07-26 19:00:00'::timestamp without time zone, 1.18092, 1.18124, 1.1806, 1.18118, 1699, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 975612 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:19 - Database: acaweb_fx - User: postgres ]
15 3s751ms INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002819, '2021-07-26 16:00:00'::timestamp without time zone, 1.08309, 1.08315, 1.08113, 1.08127, 11472, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1002819 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:19 - Database: acaweb_fx - User: postgres ]
16 3s742ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977046, '2021-07-26 19:30:00'::timestamp without time zone, 1.18083, 1.18127, 1.18081, 1.18123, 699, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977046 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:19 - Database: acaweb_fx - User: postgres ]
17 3s732ms INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960532, '2021-07-26 16:45', 1.68719, 1.68744, 1.68704, 1.68744, 0, 0, '2021-07-26 19:03');[ Date: 2021-07-26 19:03:15 - Database: acaweb_fx - User: postgres ]
18 3s711ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920804, '2021-07-26 12:30:00'::timestamp without time zone, 1068.5, 1070.6, 1067.1, 1070.6, 236, 0, '2021-07-26 19:03:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 920804 AND pricedatetime = '2021-07-26 12:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:16 - Database: acaweb_fx - User: postgres ]
19 3s688ms INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977045, '2021-07-26 19:45:00'::timestamp without time zone, 1.18108, 1.18127, 1.18099, 1.18123, 294, 0, '2021-07-26 19:03:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 977045 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:15 - Database: acaweb_fx - User: postgres ]
20 3s663ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975611, '2021-07-26 19:30:00'::timestamp without time zone, 1.18074, 1.18124, 1.18073, 1.18118, 774, 0, '2021-07-26 19:03:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 975611 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 19:03:15 - Database: acaweb_fx - User: postgres ]
-
Queries
Queries by type
Key values
- 7,229 Total read queries
- 20,027 Total write queries
Queries by database
Key values
- acaweb_fx Main database
- 27,264 Requests
- 8h1m8s (acaweb_fx)
- Main time consuming database
Queries by user
Key values
- postgres Main user
- 27,264 Requests
User Request type Count Duration postgres Total 27,264 8h1m8s copy from 77 25s164ms copy to 26 28s55ms cte 937 2h11m47s ddl 16 10s384ms insert 16,057 2h20m41s others 8 5m1s select 7,229 3h14m9s update 2,914 8m25s Duration by user
Key values
- 8h1m8s (postgres) Main time consuming user
User Request type Count Duration postgres Total 27,264 8h1m8s copy from 77 25s164ms copy to 26 28s55ms cte 937 2h11m47s ddl 16 10s384ms insert 16,057 2h20m41s others 8 5m1s select 7,229 3h14m9s update 2,914 8m25s Queries by host
Key values
- unknown Main host
- 27,264 Requests
- 8h1m8s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 27,264 Requests
- 8h1m8s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2021-07-26 19:50:49 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 12,451 100-500ms duration
Slowest individual queries
Rank Duration Query 1 10m25s 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 = 4768 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 = 4768 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 19:08:45 - Database: acaweb_fx - User: postgres ]
2 9m33s 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 = 4780 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 = 4780 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 19:27:12 - Database: acaweb_fx - User: postgres ]
3 6m46s 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 = 4769 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 = 4769 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 19:15:35 - Database: acaweb_fx - User: postgres ]
4 5m54s 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 19:36:25 - Database: acaweb_fx - User: postgres - Bind query: yes ]
5 5m42s select updateageforrelevantresults ();[ Date: 2021-07-26 19:37:45 - Database: acaweb_fx - User: postgres ]
6 5m26s select updateageforrelevantresults ();[ Date: 2021-07-26 19:07:29 - Database: acaweb_fx - User: postgres ]
7 5m22s (( 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 19:23:37 - Database: acaweb_fx - User: postgres - Bind query: yes ]
8 5m15s select updateageforrelevantresults ();[ Date: 2021-07-26 19:22:18 - Database: acaweb_fx - User: postgres ]
9 5m15s select stats_createSummaryTables_by_groups_KeyLevels (cast(88 as int));[ Date: 2021-07-26 19:54:14 - Database: acaweb_fx - User: postgres ]
10 3m48s 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 = 4864 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 = 4864 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 19:39:21 - Database: acaweb_fx - User: postgres ]
11 3m31s 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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;[ Date: 2021-07-26 19:21:27 - Database: acaweb_fx - User: postgres - Bind query: yes ]
12 3m29s select updateageforrelevantresults ();[ Date: 2021-07-26 19:50:32 - Database: acaweb_fx - User: postgres ]
13 3m17s select stats_createSummaryTables_by_groups_ChartPattens (cast(86 as int));[ Date: 2021-07-26 19:48:09 - Database: acaweb_fx - User: postgres ]
14 3m8s 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 19:05:21 - Database: acaweb_fx - User: postgres - Bind query: yes ]
15 3m7s 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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;[ Date: 2021-07-26 19:47:24 - Database: acaweb_fx - User: postgres - Bind query: yes ]
16 3m7s WITH rar_max as ( ;[ Date: 2021-07-26 19:05:21 - Database: acaweb_fx - User: postgres - Bind query: yes ]
17 2m55s 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 19:36:25 - Database: acaweb_fx - User: postgres - Bind query: yes ]
18 2m55s 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 19:53:26 - Database: acaweb_fx - User: postgres - Bind query: yes ]
19 2m41s 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 19:02:13 - Database: acaweb_fx - User: postgres - Bind query: yes ]
20 2m39s WITH rar_max as ( ;[ Date: 2021-07-26 19:30:24 - Database: acaweb_fx - User: postgres - Bind query: yes ]
Time consuming queries
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 56m7s 235 107ms 3m31s 14s327ms 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 #1
Day Hour Count Duration Avg duration Jul 26 19 235 56m7s 14s327ms [ User: postgres - Total duration: 56m7s - Times executed: 235 ]
-
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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 19:21:27 Duration: 3m31s 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 = '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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 19:47:24 Duration: 3m7s 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 = '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 19:36:25 Duration: 2m55s Database: acaweb_fx User: postgres Bind query: yes
2 44m 58 54ms 10m25s 45s529ms 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 #2
Day Hour Count Duration Avg duration Jul 26 19 58 44m 45s529ms [ User: postgres - Total duration: 44m - Times executed: 58 ]
-
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 = 4768 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 = 4768 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 19:08:45 Duration: 10m25s 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 = 4780 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 = 4780 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 19:27:12 Duration: 9m33s 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 = 4769 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 = 4769 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 19:15:35 Duration: 6m46s Database: acaweb_fx User: postgres
3 43m5s 3,909 50ms 5s32ms 661ms 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 #3
Day Hour Count Duration Avg duration Jul 26 19 3,909 43m5s 661ms [ User: postgres - Total duration: 43m5s - Times executed: 3909 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 954146, '2021-07-26 19:45:00'::timestamp without time zone, 1.26593, 1.26593, 1.26557, 1.26577, 673, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 954146 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s32ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986550, '2021-07-26 19:45:00'::timestamp without time zone, 9.18695, 9.1887, 9.18655, 9.18848, 413, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986550 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:20 Duration: 4s628ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961451, '2021-07-26 18:45:00'::timestamp without time zone, 47.42, 47.48, 47.42, 47.44, 18, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 961451 AND pricedatetime = '2021-07-26 18:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:20 Duration: 4s388ms Database: acaweb_fx User: postgres
4 35m24s 128 214ms 5m22s 16s596ms (( 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 #4
Day Hour Count Duration Avg duration Jul 26 19 128 35m24s 16s596ms [ User: postgres - Total duration: 35m24s - Times executed: 128 ]
-
(( 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 19:23:37 Duration: 5m22s 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 19:13:14 Duration: 1m50s 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 19:30:22 Duration: 1m44s Database: acaweb_fx User: postgres Bind query: yes
5 34m43s 2,555 50ms 5s317ms 815ms 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 #5
Day Hour Count Duration Avg duration Jul 26 19 2,555 34m43s 815ms [ User: postgres - Total duration: 34m43s - Times executed: 2555 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 966781, '2021-07-26 12:30:00'::timestamp without time zone, 0.70003, 0.70023, 0.69976, 0.69984, 1069, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 966781 AND pricedatetime = '2021-07-26 12:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s317ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010432, '2021-07-26 19:30:00'::timestamp without time zone, 7.64845, 7.65368, 7.64832, 7.6536, 812, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1010432 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:21 Duration: 4s636ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977046, '2021-07-26 19:30:00'::timestamp without time zone, 1.18083, 1.18127, 1.18081, 1.18123, 699, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977046 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 3s904ms Database: acaweb_fx User: postgres
6 31m58s 214 51ms 3m8s 8s962ms 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 #6
Day Hour Count Duration Avg duration Jul 26 19 214 31m58s 8s962ms [ User: postgres - Total duration: 31m58s - Times executed: 214 ]
-
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 19:05:21 Duration: 3m8s 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 = '431' 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 19:03:38 Duration: 2m18s 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 = '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 ('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 19:23:41 Duration: 2m13s Database: acaweb_fx User: postgres Bind query: yes
7 19m55s 4 3m29s 5m42s 4m58s select updateageforrelevantresults ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 26 19 4 19m55s 4m58s [ User: postgres - Total duration: 19m55s - Times executed: 4 ]
-
select updateageforrelevantresults ();
Date: 2021-07-26 19:37:45 Duration: 5m42s Database: acaweb_fx User: postgres
-
select updateageforrelevantresults ();
Date: 2021-07-26 19:07:29 Duration: 5m26s Database: acaweb_fx User: postgres
-
select updateageforrelevantresults ();
Date: 2021-07-26 19:22:18 Duration: 5m15s Database: acaweb_fx User: postgres
8 19m9s 1,278 50ms 5s113ms 899ms 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 #8
Day Hour Count Duration Avg duration Jul 26 19 1,278 19m9s 899ms [ User: postgres - Total duration: 19m9s - Times executed: 1278 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026401, '2021-07-26 19:00:00'::timestamp without time zone, 87.948, 87.954, 87.883, 87.949, 1402, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026401 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s113ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969052, '2021-07-26 19:00:00'::timestamp without time zone, 361.56, 361.668, 361.38, 361.589, 21096, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 969052 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s77ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1016138, '2021-07-26 18:00:00'::timestamp without time zone, 25.201, 25.234, 25.191, 25.223, 11921, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1016138 AND pricedatetime = '2021-07-26 18:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:17 Duration: 4s137ms Database: acaweb_fx User: postgres
9 18m46s 56 55ms 3m7s 20s122ms with rar_max as ( ;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 26 19 56 18m46s 20s122ms [ User: postgres - Total duration: 18m46s - Times executed: 56 ]
-
WITH rar_max as ( ;
Date: 2021-07-26 19:05:21 Duration: 3m7s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( ;
Date: 2021-07-26 19:30:24 Duration: 2m39s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( ;
Date: 2021-07-26 19:23:41 Duration: 2m13s Database: acaweb_fx User: postgres Bind query: yes
10 17m40s 24 721ms 5m54s 44s184ms 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 #10
Day Hour Count Duration Avg duration Jul 26 19 24 17m40s 44s184ms [ User: postgres - Total duration: 17m40s - Times executed: 24 ]
-
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 19:36:25 Duration: 5m54s 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 19:53:26 Duration: 2m55s 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 19:47:24 Duration: 1m54s Database: acaweb_fx User: postgres Bind query: yes
11 13m8s 902 50ms 5s293ms 874ms 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 #11
Day Hour Count Duration Avg duration Jul 26 19 902 13m8s 874ms [ User: postgres - Total duration: 13m8s - Times executed: 902 ]
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021132, '2021-07-26 16:00:00'::timestamp without time zone, 7.64706, 7.66263, 7.64572, 7.65695, 12295, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1021132 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s293ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022912, '2021-07-26 16:00:00'::timestamp without time zone, 0.85513, 0.8552, 0.85361, 0.85422, 14024, 0, '2021-07-26 19:03:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1022912 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s140ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002819, '2021-07-26 16:00:00'::timestamp without time zone, 1.08309, 1.08315, 1.08113, 1.08127, 11472, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1002819 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 3s951ms Database: acaweb_fx User: postgres
12 12m13s 324 50ms 15s690ms 2s263ms 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 #12
Day Hour Count Duration Avg duration Jul 26 19 324 12m13s 2s263ms [ User: postgres - Total duration: 12m13s - Times executed: 324 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1028428' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:36:04 Duration: 15s690ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1028428' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:01:17 Duration: 14s873ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '988117' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:46 Duration: 14s379ms Database: acaweb_fx User: postgres Bind query: yes
13 9m3s 3,063 50ms 1s745ms 177ms 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 #13
Day Hour Count Duration Avg duration Jul 26 19 3,063 9m3s 177ms [ User: postgres - Total duration: 9m3s - Times executed: 3063 ]
-
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 '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27', 1029681, 2.000000000000000000000000000000, 'Channel Down', 4, '2021-07-26 17:04:47'::timestamp without time zone, - 1, 0.561961330196557029600000000000, - 1.000000000000000000000000000000, 0.083808278867102362080000000000, 0.225445292620853110500000000000, 0.066387692411221527200000000000, 226.353059995776845900000000000000, 227.407108331573681400000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-28 08:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 233.270000000000010200000000000000, 228.090000000000003400000000000000, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 17:00:00'::timestamp without time zone, 229.789999999999992000000000000000, 228.995000000000004600000000000000, 226.569999999999993200000000000000, 225.270000000000010200000000000000, - 0.068421052631578049840000000000, - 0.066249999999998962500000000000, 1.878408995329655662000000000000, 0.467634576662308454400000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 19:45:00'::timestamp without time zone, 228.159999999999996600000000000000, 30, 0, 3.472499999999996590000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 22:45:00'::timestamp without time zone and resx1 = '2021-07-26 19:15:00'::timestamp without time zone and supportx0 = '2021-07-23 18:45:00'::timestamp without time zone and supportx1 = '2021-07-26 17:00:00'::timestamp without time zone and resy0 = 229.789999999999992000000000000000 and resy1 = 228.995000000000004600000000000000 and supporty0 = 226.569999999999993200000000000000 and supporty1 = 225.270000000000010200000000000000 and symbolid = 1029681) or resultid = '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:05:15 Duration: 1s745ms 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 '954199-1|44397.5|44403.3333|44393|44400.5|1.7098|1.6943|1.6801|1.6838', 954199, 2.000000000000000000000000000000, 'Triangle', 4, '2021-07-26 17:02:48'::timestamp without time zone, - 1, 0.128614458935212838700000000000, - 1.000000000000000000000000000000, 0.453179208771828101500000000000, 0.080694734829564379600000000000, 0.703966332426942842400000000000, 1.666649563471488404000000000000, 1.678806484779786778000000000000, '2021-07-26 16:00:00'::timestamp without time zone, '2021-08-01 00:00:00'::timestamp without time zone, '2021-07-16 00:00:00'::timestamp without time zone, '2021-07-26 16:00:00'::timestamp without time zone, 1.694409999999999972000000000000, 1.684749999999999970000000000000, '2021-07-20 12:00:00'::timestamp without time zone, '2021-07-26 08:00:00'::timestamp without time zone, '2021-07-16 00:00:00'::timestamp without time zone, '2021-07-23 12:00:00'::timestamp without time zone, 1.709799999999999986000000000000, 1.694309999999999983000000000000, 1.680060000000000109000000000000, 1.683759999999999923000000000000, 0.000112121212121206497400000000, - 0.000673478260869565348200000000, 2.403626700672571559000000000000, 0.583962018844197072800000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 16:00:00'::timestamp without time zone, 1.687489999999999934000000000000, 40, 0, 0.020144999999999968490000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-20 12:00:00'::timestamp without time zone and resx1 = '2021-07-26 08:00:00'::timestamp without time zone and supportx0 = '2021-07-16 00:00:00'::timestamp without time zone and supportx1 = '2021-07-23 12:00:00'::timestamp without time zone and resy0 = 1.709799999999999986000000000000 and resy1 = 1.694309999999999983000000000000 and supporty0 = 1.680060000000000109000000000000 and supporty1 = 1.683759999999999923000000000000 and symbolid = 954199) or resultid = '954199-1|44397.5|44403.3333|44393|44400.5|1.7098|1.6943|1.6801|1.6838') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:03:15 Duration: 1s593ms 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 '1016832-1|44400.9479|44403.7917|44403.6875|44403.8125|28.205|28.135|28.015|28.045', 1016832, 2.000000000000000000000000000000, 'Pennant', 4, '2021-07-26 17:00:48'::timestamp without time zone, 1, 1.000000000000000000000000000000, - 1.000000000000000000000000000000, 0.690464303544683133400000000000, 0.060788107117408986260000000000, 0.151965273055640892600000000000, 28.161220610254709130000000000000, 28.253929464611303500000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-28 06:15:00'::timestamp without time zone, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 27.815000000000001280000000000000, 28.105000000000000430000000000000, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:00:00'::timestamp without time zone, '2021-07-26 16:30:00'::timestamp without time zone, '2021-07-26 19:30:00'::timestamp without time zone, 28.204999999999998300000000000000, 28.135000000000001560000000000000, 28.015000000000000570000000000000, 28.045000000000001700000000000000, 0.002500000000000094594000000000, - 0.006363636363636066342000000000, 3.300973399394259378000000000000, 0.697059055312743924800000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 19:45:00'::timestamp without time zone, 28.094999999999998860000000000000, 14, 0, 0.139999999999998792100000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 22:45:00'::timestamp without time zone and resx1 = '2021-07-26 19:00:00'::timestamp without time zone and supportx0 = '2021-07-26 16:30:00'::timestamp without time zone and supportx1 = '2021-07-26 19:30:00'::timestamp without time zone and resy0 = 28.204999999999998300000000000000 and resy1 = 28.135000000000001560000000000000 and supporty0 = 28.015000000000000570000000000000 and supporty1 = 28.045000000000001700000000000000 and symbolid = 1016832) or resultid = '1016832-1|44400.9479|44403.7917|44403.6875|44403.8125|28.205|28.135|28.015|28.045') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:15 Duration: 1s386ms Database: acaweb_fx User: postgres
14 7m46s 50 52ms 3m17s 9s331ms select stats_createsummarytables_by_groups_chartpattens (cast(? as int));Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 26 19 50 7m46s 9s331ms [ User: postgres - Total duration: 7m46s - Times executed: 50 ]
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(86 as int));
Date: 2021-07-26 19:48:09 Duration: 3m17s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(91 as int));
Date: 2021-07-26 19:56:01 Duration: 1m10s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(89 as int));
Date: 2021-07-26 19:54:49 Duration: 35s837ms Database: acaweb_fx User: postgres
15 6m30s 51 57ms 5m15s 7s664ms select stats_createsummarytables_by_groups_keylevels (cast(? as int));Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 26 19 51 6m30s 7s664ms [ User: postgres - Total duration: 6m30s - Times executed: 51 ]
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(88 as int));
Date: 2021-07-26 19:54:14 Duration: 5m15s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(86 as int));
Date: 2021-07-26 19:48:44 Duration: 35s432ms Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(103 as int));
Date: 2021-07-26 19:57:40 Duration: 19s377ms Database: acaweb_fx User: postgres
16 6m16s 104 50ms 54s518ms 3s617ms 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 #16
Day Hour Count Duration Avg duration Jul 26 19 104 6m16s 3s617ms [ User: postgres - Total duration: 6m16s - Times executed: 104 ]
-
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 19:09:00 Duration: 54s518ms 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 19:04:05 Duration: 49s18ms 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 19:17:49 Duration: 46s342ms Database: acaweb_fx User: postgres Bind query: yes
17 6m6s 2,195 50ms 1s763ms 167ms 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 19 2,195 6m6s 167ms [ User: postgres - Total duration: 6m6s - Times executed: 2195 ]
-
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 4.000000000000000000000000000000, - 1, 2, '2021-07-26 17:34:47'::timestamp without time zone, '', 0.500000000000000000000000000000, 6, 180, 114.685000000000002300000000000000, '2021-07-26 17:15:00', '2021-07-23 17:30:00', '2021-07-22 21:15:00', '2021-07-22 19:00:00', '2021-07-22 16:30:00', '2021-07-15 17:45:00', '', '', '', '', 630, 114.443250000000006100000000000000, '2021-07-26 20:15:00'::timestamp without time zone, '2021-07-26 20:15:00', 0.000000000000000000000000000000, 0.241749999999999687400000000000, 1, 1029376, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1029376|114.685|2|2021-07-26 20:15:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-15 17:45:00', 112.500000000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1029376|114.685|2|2021-07-26 20:15:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:35:15 Duration: 1s763ms 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 3.000000000000000000000000000000, - 1, 1, '2021-07-26 17:00:48'::timestamp without time zone, '2021-07-26 19:45:00', 0.087499999999999855670000000000, 4, 115, 28.179999999999999720000000000000, '2021-07-23 18:00:00', '2021-07-21 20:30:00', '2021-07-21 18:45:00', '2021-07-20 17:00:00', '', '', '', '', '', '', 205, 28.201250000000001700000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-26 19:45:00', 28.094999999999998860000000000000, 0.035250000000000100700000000000, 1, 1016832, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1', 28.059249999999998690000000000000, 0.120750000000001023200000000000, 2, '2021-07-20 17:00:00', 28.045000000000001700000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:15 Duration: 1s457ms 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 8.000000000000000000000000000000, - 1, 2, '2021-07-26 17:00:47'::timestamp without time zone, '2021-07-26 16:00:00', 9.665000000000031122000000000000, 6, 299, 1515.319999999999936000000000000000, '2021-07-22 16:00:00', '2021-07-09 12:00:00', '2021-07-06 16:00:00', '2021-06-14 12:00:00', '2021-05-19 12:00:00', '2021-05-17 16:00:00', '', '', '', '', 1003, 1510.701999999999998000000000000000, '2021-07-26 16:00:00'::timestamp without time zone, '2021-07-26 16:00:00', 1523.250000000000000000000000000000, 4.617999999999994998000000000000, - 1, 986923, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|986923|1515.32|2|2021-07-26 16:00:00|2021-07-26 16:00:00|-1|-1', 1528.657699999999977000000000000000, 13.337700000000040740000000000000, 2, '2021-05-17 16:00:00', 1536.730000000000018000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|986923|1515.32|2|2021-07-26 16:00:00|2021-07-26 16:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:15 Duration: 1s454ms Database: acaweb_fx User: postgres
18 6m 137 53ms 14s432ms 2s629ms select * from ( select pricedatetime, open, high, low, close, volume, bsf from t240 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 19 137 6m 2s629ms [ User: postgres - Total duration: 6m - Times executed: 137 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T240 WHERE symbolid = '962284' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:48 Duration: 14s432ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T240 WHERE symbolid = '962284' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:48 Duration: 14s422ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T240 WHERE symbolid = '962164' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:48 Duration: 14s300ms Database: acaweb_fx User: postgres Bind query: yes
19 5m32s 749 50ms 14s104ms 443ms 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 #19
Day Hour Count Duration Avg duration Jul 26 19 749 5m32s 443ms [ User: postgres - Total duration: 5m32s - Times executed: 749 ]
-
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 = 660 AND groupid = 4861 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '6' 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 19:19:19 Duration: 14s104ms 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 = 660 AND groupid = 4859 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '8' 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 19:19:37 Duration: 9s671ms 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 = 660 AND groupid = 4862 AND patternclassid = '2' AND patternlengthbars >= '60' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '6' 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 19:19:27 Duration: 8s307ms Database: acaweb_fx User: postgres Bind query: yes
20 5m19s 92 77ms 11s385ms 3s471ms 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 19 92 5m19s 3s471ms [ User: postgres - Total duration: 5m19s - Times executed: 92 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '982491' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:03:01 Duration: 11s385ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '982491' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:03:01 Duration: 11s266ms Database: acaweb_fx User: postgres Bind query: yes
-
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 19:32:56 Duration: 10s388ms 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 3,909 43m5s 50ms 5s32ms 661ms 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 #1
Day Hour Count Duration Avg duration Jul 26 19 3,909 43m5s 661ms [ User: postgres - Total duration: 43m5s - Times executed: 3909 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 954146, '2021-07-26 19:45:00'::timestamp without time zone, 1.26593, 1.26593, 1.26557, 1.26577, 673, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 954146 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s32ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986550, '2021-07-26 19:45:00'::timestamp without time zone, 9.18695, 9.1887, 9.18655, 9.18848, 413, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986550 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:20 Duration: 4s628ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961451, '2021-07-26 18:45:00'::timestamp without time zone, 47.42, 47.48, 47.42, 47.44, 18, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 961451 AND pricedatetime = '2021-07-26 18:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:20 Duration: 4s388ms Database: acaweb_fx User: postgres
2 3,063 9m3s 50ms 1s745ms 177ms 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 19 3,063 9m3s 177ms [ User: postgres - Total duration: 9m3s - Times executed: 3063 ]
-
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 '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27', 1029681, 2.000000000000000000000000000000, 'Channel Down', 4, '2021-07-26 17:04:47'::timestamp without time zone, - 1, 0.561961330196557029600000000000, - 1.000000000000000000000000000000, 0.083808278867102362080000000000, 0.225445292620853110500000000000, 0.066387692411221527200000000000, 226.353059995776845900000000000000, 227.407108331573681400000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-28 08:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 233.270000000000010200000000000000, 228.090000000000003400000000000000, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 17:00:00'::timestamp without time zone, 229.789999999999992000000000000000, 228.995000000000004600000000000000, 226.569999999999993200000000000000, 225.270000000000010200000000000000, - 0.068421052631578049840000000000, - 0.066249999999998962500000000000, 1.878408995329655662000000000000, 0.467634576662308454400000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 19:45:00'::timestamp without time zone, 228.159999999999996600000000000000, 30, 0, 3.472499999999996590000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 22:45:00'::timestamp without time zone and resx1 = '2021-07-26 19:15:00'::timestamp without time zone and supportx0 = '2021-07-23 18:45:00'::timestamp without time zone and supportx1 = '2021-07-26 17:00:00'::timestamp without time zone and resy0 = 229.789999999999992000000000000000 and resy1 = 228.995000000000004600000000000000 and supporty0 = 226.569999999999993200000000000000 and supporty1 = 225.270000000000010200000000000000 and symbolid = 1029681) or resultid = '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:05:15 Duration: 1s745ms 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 '954199-1|44397.5|44403.3333|44393|44400.5|1.7098|1.6943|1.6801|1.6838', 954199, 2.000000000000000000000000000000, 'Triangle', 4, '2021-07-26 17:02:48'::timestamp without time zone, - 1, 0.128614458935212838700000000000, - 1.000000000000000000000000000000, 0.453179208771828101500000000000, 0.080694734829564379600000000000, 0.703966332426942842400000000000, 1.666649563471488404000000000000, 1.678806484779786778000000000000, '2021-07-26 16:00:00'::timestamp without time zone, '2021-08-01 00:00:00'::timestamp without time zone, '2021-07-16 00:00:00'::timestamp without time zone, '2021-07-26 16:00:00'::timestamp without time zone, 1.694409999999999972000000000000, 1.684749999999999970000000000000, '2021-07-20 12:00:00'::timestamp without time zone, '2021-07-26 08:00:00'::timestamp without time zone, '2021-07-16 00:00:00'::timestamp without time zone, '2021-07-23 12:00:00'::timestamp without time zone, 1.709799999999999986000000000000, 1.694309999999999983000000000000, 1.680060000000000109000000000000, 1.683759999999999923000000000000, 0.000112121212121206497400000000, - 0.000673478260869565348200000000, 2.403626700672571559000000000000, 0.583962018844197072800000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 16:00:00'::timestamp without time zone, 1.687489999999999934000000000000, 40, 0, 0.020144999999999968490000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-20 12:00:00'::timestamp without time zone and resx1 = '2021-07-26 08:00:00'::timestamp without time zone and supportx0 = '2021-07-16 00:00:00'::timestamp without time zone and supportx1 = '2021-07-23 12:00:00'::timestamp without time zone and resy0 = 1.709799999999999986000000000000 and resy1 = 1.694309999999999983000000000000 and supporty0 = 1.680060000000000109000000000000 and supporty1 = 1.683759999999999923000000000000 and symbolid = 954199) or resultid = '954199-1|44397.5|44403.3333|44393|44400.5|1.7098|1.6943|1.6801|1.6838') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:03:15 Duration: 1s593ms 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 '1016832-1|44400.9479|44403.7917|44403.6875|44403.8125|28.205|28.135|28.015|28.045', 1016832, 2.000000000000000000000000000000, 'Pennant', 4, '2021-07-26 17:00:48'::timestamp without time zone, 1, 1.000000000000000000000000000000, - 1.000000000000000000000000000000, 0.690464303544683133400000000000, 0.060788107117408986260000000000, 0.151965273055640892600000000000, 28.161220610254709130000000000000, 28.253929464611303500000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-28 06:15:00'::timestamp without time zone, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 27.815000000000001280000000000000, 28.105000000000000430000000000000, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:00:00'::timestamp without time zone, '2021-07-26 16:30:00'::timestamp without time zone, '2021-07-26 19:30:00'::timestamp without time zone, 28.204999999999998300000000000000, 28.135000000000001560000000000000, 28.015000000000000570000000000000, 28.045000000000001700000000000000, 0.002500000000000094594000000000, - 0.006363636363636066342000000000, 3.300973399394259378000000000000, 0.697059055312743924800000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 19:45:00'::timestamp without time zone, 28.094999999999998860000000000000, 14, 0, 0.139999999999998792100000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 22:45:00'::timestamp without time zone and resx1 = '2021-07-26 19:00:00'::timestamp without time zone and supportx0 = '2021-07-26 16:30:00'::timestamp without time zone and supportx1 = '2021-07-26 19:30:00'::timestamp without time zone and resy0 = 28.204999999999998300000000000000 and resy1 = 28.135000000000001560000000000000 and supporty0 = 28.015000000000000570000000000000 and supporty1 = 28.045000000000001700000000000000 and symbolid = 1016832) or resultid = '1016832-1|44400.9479|44403.7917|44403.6875|44403.8125|28.205|28.135|28.015|28.045') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:15 Duration: 1s386ms Database: acaweb_fx User: postgres
3 2,632 4m57s 50ms 1s970ms 113ms 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 19 2,632 4m57s 113ms [ User: postgres - Total duration: 4m57s - Times executed: 2632 ]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 20:00:00', reason = 'Emerging pattern broke out in the wrong direction.' WHERE uniqueIndex = '1022715-1|44398.6875|44400.75|44399.6875|44403.6875|237.98|244.91|235|241.94' and relevant = 1;
Date: 2021-07-26 19:35:16 Duration: 1s970ms Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 20:00:00', reason = 'Emerging pattern broke out in the wrong direction.' WHERE uniqueIndex = '1022715-1|44393.6875|44400.75|44396.8958|44403.6875|237.71|244.91|226.24|241.94' and relevant = 1;
Date: 2021-07-26 19:35:16 Duration: 1s970ms Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 19:00:00', reason = 'Emerging pattern formed a completed pattern.' WHERE uniqueIndex = '1019036-1|44400.625|44403.0417|44400.7083|44403.4583|88.044|88.0165|87.6265|87.5105' and relevant = 1;
Date: 2021-07-26 19:03:18 Duration: 1s513ms Database: acaweb_fx User: postgres
4 2,555 34m43s 50ms 5s317ms 815ms 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 #4
Day Hour Count Duration Avg duration Jul 26 19 2,555 34m43s 815ms [ User: postgres - Total duration: 34m43s - Times executed: 2555 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 966781, '2021-07-26 12:30:00'::timestamp without time zone, 0.70003, 0.70023, 0.69976, 0.69984, 1069, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 966781 AND pricedatetime = '2021-07-26 12:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s317ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010432, '2021-07-26 19:30:00'::timestamp without time zone, 7.64845, 7.65368, 7.64832, 7.6536, 812, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1010432 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:21 Duration: 4s636ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977046, '2021-07-26 19:30:00'::timestamp without time zone, 1.18083, 1.18127, 1.18081, 1.18123, 699, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977046 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 3s904ms Database: acaweb_fx User: postgres
5 2,195 6m6s 50ms 1s763ms 167ms 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 19 2,195 6m6s 167ms [ User: postgres - Total duration: 6m6s - Times executed: 2195 ]
-
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 4.000000000000000000000000000000, - 1, 2, '2021-07-26 17:34:47'::timestamp without time zone, '', 0.500000000000000000000000000000, 6, 180, 114.685000000000002300000000000000, '2021-07-26 17:15:00', '2021-07-23 17:30:00', '2021-07-22 21:15:00', '2021-07-22 19:00:00', '2021-07-22 16:30:00', '2021-07-15 17:45:00', '', '', '', '', 630, 114.443250000000006100000000000000, '2021-07-26 20:15:00'::timestamp without time zone, '2021-07-26 20:15:00', 0.000000000000000000000000000000, 0.241749999999999687400000000000, 1, 1029376, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1029376|114.685|2|2021-07-26 20:15:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-15 17:45:00', 112.500000000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1029376|114.685|2|2021-07-26 20:15:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:35:15 Duration: 1s763ms 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 3.000000000000000000000000000000, - 1, 1, '2021-07-26 17:00:48'::timestamp without time zone, '2021-07-26 19:45:00', 0.087499999999999855670000000000, 4, 115, 28.179999999999999720000000000000, '2021-07-23 18:00:00', '2021-07-21 20:30:00', '2021-07-21 18:45:00', '2021-07-20 17:00:00', '', '', '', '', '', '', 205, 28.201250000000001700000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-26 19:45:00', 28.094999999999998860000000000000, 0.035250000000000100700000000000, 1, 1016832, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1', 28.059249999999998690000000000000, 0.120750000000001023200000000000, 2, '2021-07-20 17:00:00', 28.045000000000001700000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:15 Duration: 1s457ms 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 8.000000000000000000000000000000, - 1, 2, '2021-07-26 17:00:47'::timestamp without time zone, '2021-07-26 16:00:00', 9.665000000000031122000000000000, 6, 299, 1515.319999999999936000000000000000, '2021-07-22 16:00:00', '2021-07-09 12:00:00', '2021-07-06 16:00:00', '2021-06-14 12:00:00', '2021-05-19 12:00:00', '2021-05-17 16:00:00', '', '', '', '', 1003, 1510.701999999999998000000000000000, '2021-07-26 16:00:00'::timestamp without time zone, '2021-07-26 16:00:00', 1523.250000000000000000000000000000, 4.617999999999994998000000000000, - 1, 986923, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|986923|1515.32|2|2021-07-26 16:00:00|2021-07-26 16:00:00|-1|-1', 1528.657699999999977000000000000000, 13.337700000000040740000000000000, 2, '2021-05-17 16:00:00', 1536.730000000000018000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|986923|1515.32|2|2021-07-26 16:00:00|2021-07-26 16:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:15 Duration: 1s454ms Database: acaweb_fx User: postgres
6 1,278 19m9s 50ms 5s113ms 899ms 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 #6
Day Hour Count Duration Avg duration Jul 26 19 1,278 19m9s 899ms [ User: postgres - Total duration: 19m9s - Times executed: 1278 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026401, '2021-07-26 19:00:00'::timestamp without time zone, 87.948, 87.954, 87.883, 87.949, 1402, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026401 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s113ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969052, '2021-07-26 19:00:00'::timestamp without time zone, 361.56, 361.668, 361.38, 361.589, 21096, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 969052 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s77ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1016138, '2021-07-26 18:00:00'::timestamp without time zone, 25.201, 25.234, 25.191, 25.223, 11921, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1016138 AND pricedatetime = '2021-07-26 18:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:17 Duration: 4s137ms Database: acaweb_fx User: postgres
7 902 13m8s 50ms 5s293ms 874ms 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 #7
Day Hour Count Duration Avg duration Jul 26 19 902 13m8s 874ms [ User: postgres - Total duration: 13m8s - Times executed: 902 ]
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021132, '2021-07-26 16:00:00'::timestamp without time zone, 7.64706, 7.66263, 7.64572, 7.65695, 12295, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1021132 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s293ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022912, '2021-07-26 16:00:00'::timestamp without time zone, 0.85513, 0.8552, 0.85361, 0.85422, 14024, 0, '2021-07-26 19:03:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1022912 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s140ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002819, '2021-07-26 16:00:00'::timestamp without time zone, 1.08309, 1.08315, 1.08113, 1.08127, 11472, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1002819 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 3s951ms Database: acaweb_fx User: postgres
8 749 5m32s 50ms 14s104ms 443ms 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 19 749 5m32s 443ms [ User: postgres - Total duration: 5m32s - Times executed: 749 ]
-
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 = 660 AND groupid = 4861 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '6' 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 19:19:19 Duration: 14s104ms 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 = 660 AND groupid = 4859 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '8' 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 19:19:37 Duration: 9s671ms 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 = 660 AND groupid = 4862 AND patternclassid = '2' AND patternlengthbars >= '60' AND a.PatternID & '3' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '6' 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 19:19:27 Duration: 8s307ms Database: acaweb_fx User: postgres Bind query: yes
9 510 1m20s 50ms 1s649ms 157ms 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 #9
Day Hour Count Duration Avg duration Jul 26 19 510 1m20s 157ms [ User: postgres - Total duration: 1m20s - Times executed: 510 ]
-
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, 'Butterfly', '2021-07-26 17:04:47'::timestamp without time zone, 1, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 226.569999999999993200000000000000, - 1.000000000000000000000000000000, 5, 226.569999999999993200000000000000, '2021-07-23 18:45:00'::timestamp without time zone, 229.789999999999992000000000000000, '2021-07-23 22:45:00'::timestamp without time zone, 225.264999999999986400000000000000, '2021-07-26 17:15:00'::timestamp without time zone, 228.995000000000004600000000000000, '2021-07-26 19:15:00'::timestamp without time zone, 224.579930556385988900000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.906450311203965353200000000000, - 1.000000000000000000000000000000, 15.750862818257399310000000000000, 40, 228.995000000000004600000000000000, 227.308593535010260200000000000000, 231.723662978624275900000000000000, 228.050843482565824200000000000000, 230.195985642570036600000000000000, 226.787465278192996700000000000000, 226.266337021375733200000000000000, 1029681, 0.187099377592069321400000000000, 'BC=0.786*AB (0.824) ', 0, 'Butterfly|1|2021-07-23 18:45:00|226.57|-1|5|40|BC=0.786*AB (0.824)|0|1029681|2021-07-23 18:45:00|2021-07-23 22:45:00|2021-07-26 17:15:00|2021-07-26 19:15: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 'Butterfly' AND direction = 1 AND patternstarttime = '2021-07-23 18:45:00'::timestamp without time zone AND patternstartprice = 226.569999999999993200000000000000 AND qtytp = 5 AND patternlengthbars = 40 AND ratiosfound = 'BC=0.786*AB (0.824) ' AND temporarypattern = 0 AND symbolid = 1029681 AND timex = '2021-07-23 18:45:00'::timestamp without time zone AND timea = '2021-07-23 22:45:00'::timestamp without time zone AND timeb = '2021-07-26 17:15:00'::timestamp without time zone AND timec = '2021-07-26 19:15: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 19:05:15 Duration: 1s649ms 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, 'Gartley', '2021-07-26 17:02:50'::timestamp without time zone, 1, '2021-07-26 10:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 1.729200000000000070000000000000, - 1.000000000000000000000000000000, 5, 1.729200000000000070000000000000, '2021-07-26 10:45:00'::timestamp without time zone, 1.736099999999999976000000000000, '2021-07-26 16:30:00'::timestamp without time zone, 1.732010000000000050000000000000, '2021-07-26 17:45:00'::timestamp without time zone, 1.735289999999999999000000000000, '2021-07-26 19:15:00'::timestamp without time zone, 1.731835565477970018000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.594184922161091755300000000000, - 1.000000000000000000000000000000, 4.920114880490556786000000000000, 40, 1.735289999999999999000000000000, 1.733970523424323229000000000000, 1.737424957946353210000000000000, 1.734551273936983717000000000000, 1.736229674067903295000000000000, 1.733562782738985009000000000000, 1.733155042053646788000000000000, 954206, 0.811630155677816489400000000000, 'BC=0.786*AB (0.802) ', 0, 'Gartley|1|2021-07-26 10:45:00|1.7292|-1|5|40|BC=0.786*AB (0.802)|0|954206|2021-07-26 10:45:00|2021-07-26 16:30:00|2021-07-26 17:45:00|2021-07-26 19:15: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 'Gartley' AND direction = 1 AND patternstarttime = '2021-07-26 10:45:00'::timestamp without time zone AND patternstartprice = 1.729200000000000070000000000000 AND qtytp = 5 AND patternlengthbars = 40 AND ratiosfound = 'BC=0.786*AB (0.802) ' AND temporarypattern = 0 AND symbolid = 954206 AND timex = '2021-07-26 10:45:00'::timestamp without time zone AND timea = '2021-07-26 16:30:00'::timestamp without time zone AND timeb = '2021-07-26 17:45:00'::timestamp without time zone AND timec = '2021-07-26 19:15: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 19:03:18 Duration: 1s135ms 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, 'Gartley', '2021-07-26 17:00:48'::timestamp without time zone, 1, '2021-07-26 03:45:00'::timestamp without time zone, '2021-07-26 12:45:00'::timestamp without time zone, 1.728699999999999903000000000000, - 1.000000000000000000000000000000, 5, 1.728699999999999903000000000000, '2021-07-26 03:45:00'::timestamp without time zone, 1.736070000000000002000000000000, '2021-07-26 09:30:00'::timestamp without time zone, 1.731899999999999995000000000000, '2021-07-26 11:30:00'::timestamp without time zone, 1.735289999999999999000000000000, '2021-07-26 12:15:00'::timestamp without time zone, 1.731515089503280924000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.614544182992732612700000000000, - 1.000000000000000000000000000000, 5.605639245084580224000000000000, 44, 1.735289999999999999000000000000, 1.733848112494553728000000000000, 1.737623022991272803000000000000, 1.734482740591348326000000000000, 1.736316849830211284000000000000, 1.733402544751640573000000000000, 1.732956977008727195000000000000, 919682, 0.770911634014534774600000000000, 'BC=0.786*AB (0.813) ', 0, 'Gartley|1|2021-07-26 03:45:00|1.7287|-1|5|44|BC=0.786*AB (0.813)|0|919682|2021-07-26 03:45:00|2021-07-26 09:30:00|2021-07-26 11:30:00|2021-07-26 12:15: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 'Gartley' AND direction = 1 AND patternstarttime = '2021-07-26 03:45:00'::timestamp without time zone AND patternstartprice = 1.728699999999999903000000000000 AND qtytp = 5 AND patternlengthbars = 44 AND ratiosfound = 'BC=0.786*AB (0.813) ' AND temporarypattern = 0 AND symbolid = 919682 AND timex = '2021-07-26 03:45:00'::timestamp without time zone AND timea = '2021-07-26 09:30:00'::timestamp without time zone AND timeb = '2021-07-26 11:30:00'::timestamp without time zone AND timec = '2021-07-26 12:15: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 19:01:15 Duration: 1s61ms Database: acaweb_fx User: postgres
10 507 35s551ms 50ms 318ms 70ms select upsert_t15 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 26 19 507 35s551ms 70ms [ User: postgres - Total duration: 35s551ms - Times executed: 507 ]
-
SELECT upsert_t15 ('2021-07-26 20:15:00', '1.081075', '1.081115', '1.08093', '1.08094', '178', '988175', '0', '2021-07-26 19:30:04.218', '2021-07-26 19:30:03.663');
Date: 2021-07-26 19:30:04 Duration: 318ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t15 ('2021-07-26 20:15:00', '359.3', '359.3', '359.2', '359.2', '2', '1025819', '0', '2021-07-26 19:38:10.624', '2021-07-26 19:38:10.595');
Date: 2021-07-26 19:38:10 Duration: 229ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t15 ('2021-07-26 20:15:00', '27887.5', '27912.5', '27887.5', '27892.5', '94', '975110', '0', '2021-07-26 19:30:14.445', '2021-07-26 19:30:08.359');
Date: 2021-07-26 19:30:14 Duration: 204ms Database: acaweb_fx User: postgres Bind query: yes
11 482 35s622ms 50ms 211ms 73ms select distinct coalesce(stddev_15 / ?, ?) as low_15_stddev, coalesce(ave_15 / ?, ?) as low_15_ave, coalesce(stddev_15 / ?, ?) as high_15_stddev, coalesce(ave_15 / ?, ?) as high_15_ave, coalesce(stddev_30 / ?, ?) as low_30_stddev, coalesce(ave_30 / ?, ?) as low_30_ave, coalesce(stddev_30 / ?, ?) as high_30_stddev, coalesce(ave_30 / ?, ?) as high_30_ave, coalesce(stddev_60 / ?, ?) as low_60_stddev, coalesce(ave_60 / ?, ?) as low_60_ave, coalesce(stddev_60 / ?, ?) as high_60_stddev, coalesce(ave_60 / ?, ?) as high_60_ave, coalesce(stddev_240 / ?, ?) as low_240_stddev, coalesce(ave_240 / ?, ?) as low_240_ave, coalesce(stddev_240 / ?, ?) as high_240_stddev, coalesce(ave_240 / ?, ?) as high_240_ave, coalesce(stddev_1440 / ?, ?) as low_1440_stddev, coalesce(ave_1440 / ?, ?) as low_1440_ave, coalesce(stddev_1440 / ?, ?) as high_1440_stddev, coalesce(ave_1440 / ?, ?) as high_1440_ave, s.exchange as exchange, s.symbol as symbol, s.longname, ps.enddate as executiondate, dtt.absolutetimezoneoffset as datafeedtimezoneoffset, dtt.timezone as datafeedtimezonename, dss.downloadersymbol from powerstats_trumpet ps inner join downloadersymbolsettings dss on dss.symbolid = ps.symbolid inner join datafeedstimetable dtt on dtt.classname = dss.classname inner join symbols s on ps.symbolid = s.symbolid where ps.dayofweek = ? and ps.fromtime = ? and ps.symbolid = ? order by ps.enddate desc limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 26 19 482 35s622ms 73ms [ User: postgres - Total duration: 35s622ms - Times executed: 482 ]
-
SELECT DISTINCT COALESCE(stddev_15 / 2, 0) AS low_15_stddev, COALESCE(ave_15 / 2, 0) AS low_15_ave, COALESCE(stddev_15 / 2, 0) AS high_15_stddev, COALESCE(ave_15 / 2, 0) AS high_15_ave, COALESCE(stddev_30 / 2, 0) AS low_30_stddev, COALESCE(ave_30 / 2, 0) AS low_30_ave, COALESCE(stddev_30 / 2, 0) AS high_30_stddev, COALESCE(ave_30 / 2, 0) AS high_30_ave, COALESCE(stddev_60 / 2, 0) AS low_60_stddev, COALESCE(ave_60 / 2, 0) AS low_60_ave, COALESCE(stddev_60 / 2, 0) AS high_60_stddev, COALESCE(ave_60 / 2, 0) AS high_60_ave, COALESCE(stddev_240 / 2, 0) AS low_240_stddev, COALESCE(ave_240 / 2, 0) AS low_240_ave, COALESCE(stddev_240 / 2, 0) AS high_240_stddev, COALESCE(ave_240 / 2, 0) AS high_240_ave, COALESCE(stddev_1440 / 2, 0) AS low_1440_stddev, COALESCE(ave_1440 / 2, 0) AS low_1440_ave, COALESCE(stddev_1440 / 2, 0) AS high_1440_stddev, COALESCE(ave_1440 / 2, 0) AS high_1440_ave, s.exchange AS exchange, s.symbol AS symbol, s.longname, ps.enddate AS executiondate, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, dss.downloadersymbol FROM powerstats_trumpet ps INNER JOIN downloadersymbolsettings dss ON dss.symbolid = ps.symbolid INNER JOIN datafeedstimetable dtt ON dtt.classname = dss.classname INNER JOIN symbols s ON ps.symbolid = s.symbolid WHERE ps.dayofweek = '1' AND ps.fromtime = '1170' AND ps.symbolid = '962036' ORDER BY ps.enddate DESC LIMIT 1;
Date: 2021-07-26 19:46:59 Duration: 211ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT COALESCE(stddev_15 / 2, 0) AS low_15_stddev, COALESCE(ave_15 / 2, 0) AS low_15_ave, COALESCE(stddev_15 / 2, 0) AS high_15_stddev, COALESCE(ave_15 / 2, 0) AS high_15_ave, COALESCE(stddev_30 / 2, 0) AS low_30_stddev, COALESCE(ave_30 / 2, 0) AS low_30_ave, COALESCE(stddev_30 / 2, 0) AS high_30_stddev, COALESCE(ave_30 / 2, 0) AS high_30_ave, COALESCE(stddev_60 / 2, 0) AS low_60_stddev, COALESCE(ave_60 / 2, 0) AS low_60_ave, COALESCE(stddev_60 / 2, 0) AS high_60_stddev, COALESCE(ave_60 / 2, 0) AS high_60_ave, COALESCE(stddev_240 / 2, 0) AS low_240_stddev, COALESCE(ave_240 / 2, 0) AS low_240_ave, COALESCE(stddev_240 / 2, 0) AS high_240_stddev, COALESCE(ave_240 / 2, 0) AS high_240_ave, COALESCE(stddev_1440 / 2, 0) AS low_1440_stddev, COALESCE(ave_1440 / 2, 0) AS low_1440_ave, COALESCE(stddev_1440 / 2, 0) AS high_1440_stddev, COALESCE(ave_1440 / 2, 0) AS high_1440_ave, s.exchange AS exchange, s.symbol AS symbol, s.longname, ps.enddate AS executiondate, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, dss.downloadersymbol FROM powerstats_trumpet ps INNER JOIN downloadersymbolsettings dss ON dss.symbolid = ps.symbolid INNER JOIN datafeedstimetable dtt ON dtt.classname = dss.classname INNER JOIN symbols s ON ps.symbolid = s.symbolid WHERE ps.dayofweek = '1' AND ps.fromtime = '1215' AND ps.symbolid = '1002816' ORDER BY ps.enddate DESC LIMIT 1;
Date: 2021-07-26 19:35:56 Duration: 192ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT COALESCE(stddev_15 / 2, 0) AS low_15_stddev, COALESCE(ave_15 / 2, 0) AS low_15_ave, COALESCE(stddev_15 / 2, 0) AS high_15_stddev, COALESCE(ave_15 / 2, 0) AS high_15_ave, COALESCE(stddev_30 / 2, 0) AS low_30_stddev, COALESCE(ave_30 / 2, 0) AS low_30_ave, COALESCE(stddev_30 / 2, 0) AS high_30_stddev, COALESCE(ave_30 / 2, 0) AS high_30_ave, COALESCE(stddev_60 / 2, 0) AS low_60_stddev, COALESCE(ave_60 / 2, 0) AS low_60_ave, COALESCE(stddev_60 / 2, 0) AS high_60_stddev, COALESCE(ave_60 / 2, 0) AS high_60_ave, COALESCE(stddev_240 / 2, 0) AS low_240_stddev, COALESCE(ave_240 / 2, 0) AS low_240_ave, COALESCE(stddev_240 / 2, 0) AS high_240_stddev, COALESCE(ave_240 / 2, 0) AS high_240_ave, COALESCE(stddev_1440 / 2, 0) AS low_1440_stddev, COALESCE(ave_1440 / 2, 0) AS low_1440_ave, COALESCE(stddev_1440 / 2, 0) AS high_1440_stddev, COALESCE(ave_1440 / 2, 0) AS high_1440_ave, s.exchange AS exchange, s.symbol AS symbol, s.longname, ps.enddate AS executiondate, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, dss.downloadersymbol FROM powerstats_trumpet ps INNER JOIN downloadersymbolsettings dss ON dss.symbolid = ps.symbolid INNER JOIN datafeedstimetable dtt ON dtt.classname = dss.classname INNER JOIN symbols s ON ps.symbolid = s.symbolid WHERE ps.dayofweek = '1' AND ps.fromtime = '1185' AND ps.symbolid = '982705' ORDER BY ps.enddate DESC LIMIT 1;
Date: 2021-07-26 19:02:46 Duration: 187ms Database: acaweb_fx User: postgres Bind query: yes
12 472 3m52s 50ms 15s566ms 493ms 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 #12
Day Hour Count Duration Avg duration Jul 26 19 472 3m52s 493ms [ User: postgres - Total duration: 3m52s - Times executed: 472 ]
-
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 19:30:55 Duration: 15s566ms 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 19:47:05 Duration: 9s51ms 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 19:20:41 Duration: 6s260ms Database: acaweb_fx User: postgres Bind query: yes
13 335 2m38s 50ms 7s908ms 471ms 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 #13
Day Hour Count Duration Avg duration Jul 26 19 335 2m38s 471ms [ User: postgres - Total duration: 2m38s - Times executed: 335 ]
-
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 a.resultuid > 61328791 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:01:07 Duration: 7s908ms 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 = 5159 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 > 61329834 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:01:13 Duration: 7s443ms 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 = 5159 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 > 61329834 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:01:13 Duration: 7s377ms Database: acaweb_fx User: postgres Bind query: yes
14 327 26s435ms 50ms 679ms 80ms select * from powerstatslatestprfprice (?, ?);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 26 19 327 26s435ms 80ms [ User: postgres - Total duration: 26s435ms - Times executed: 327 ]
-
select * from PowerStatsLatestPRFPrice ('962286', '15');
Date: 2021-07-26 19:46:27 Duration: 679ms Database: acaweb_fx User: postgres Bind query: yes
-
select * from PowerStatsLatestPRFPrice ('1016256', '15');
Date: 2021-07-26 19:00:36 Duration: 475ms Database: acaweb_fx User: postgres Bind query: yes
-
select * from PowerStatsLatestPRFPrice ('986515', '15');
Date: 2021-07-26 19:17:20 Duration: 261ms Database: acaweb_fx User: postgres Bind query: yes
15 324 12m13s 50ms 15s690ms 2s263ms 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 #15
Day Hour Count Duration Avg duration Jul 26 19 324 12m13s 2s263ms [ User: postgres - Total duration: 12m13s - Times executed: 324 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1028428' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:36:04 Duration: 15s690ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1028428' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:01:17 Duration: 14s873ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '988117' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:46 Duration: 14s379ms Database: acaweb_fx User: postgres Bind query: yes
16 290 2m59s 50ms 3s656ms 620ms 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);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 26 19 290 2m59s 620ms [ User: postgres - Total duration: 2m59s - Times executed: 290 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1016131, '2021-07-26 18:30:00'::timestamp without time zone, 1798.67, 1799.78, 1798.2, 1799.09, 952, 0, '2021-07-26 19:03:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1016131 AND pricedatetime = '2021-07-26 18:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1016131, '2021-07-26 18:45:00'::timestamp without time zone, 1799.09, 1799.44, 1798.53, 1798.78, 930, 0, '2021-07-26 19:03:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1016131 AND pricedatetime = '2021-07-26 18:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:21 Duration: 3s656ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968835, '2021-07-26 19:30:00'::timestamp without time zone, 87.947, 87.965, 87.93, 87.956, 401, 0, '2021-07-26 19:02:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968835 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968835, '2021-07-26 19:45:00'::timestamp without time zone, 87.957, 87.977, 87.936, 87.974, 370, 0, '2021-07-26 19:02:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968835 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:02:09 Duration: 3s1ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968690, '2021-07-26 19:30:00'::timestamp without time zone, 0.73835, 0.73852, 0.73816, 0.73824, 263, 0, '2021-07-26 19:01:49'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968690 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968690, '2021-07-26 19:45:00'::timestamp without time zone, 0.73824, 0.73825, 0.73809, 0.7381, 213, 0, '2021-07-26 19:01:49'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968690 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:01:51 Duration: 2s457ms Database: acaweb_fx User: postgres
17 250 3m6s 50ms 15s568ms 747ms 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 19 250 3m6s 747ms [ User: postgres - Total duration: 3m6s - Times executed: 250 ]
-
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 19:30:55 Duration: 15s568ms 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 >= 0.7 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.7 AND initialtrend >= 0.7 AND symmetry >= 0.7 AND noise <= 0.30000000000000004 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 > 517053083 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 19:50:19 Duration: 12s737ms 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 = 660 AND sg.groupid = 4859 AND breakout >= 0.5 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.5 AND initialtrend >= 0.7 AND symmetry >= 0.5 AND noise <= 0.30000000000000004 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 19:18:38 Duration: 11s34ms Database: acaweb_fx User: postgres Bind query: yes
18 240 30s55ms 50ms 1s115ms 125ms insert into bigmovement_results_underlying (symbolid, direction, patternmovement, statisticalmovement, percentile, resultuniqueindex, gmttimefound, patternstarttime, patternendtime, simulation, writtendatetime, fromprice, toprice, patternlengthbars, startzigzag) select distinct ?, ?, ?.?, ?.?, ?.?, ?, ?::timestamp without time zone, ?::timestamp without time zone, ?::timestamp without time zone, ?, current_timestamp::timestamp without time zone, ?.?, ?.?, ?, ?::timestamp without time zone where not exists ( select ? from bigmovement_results_underlying where resultuniqueindex = ?) limit ? on conflict do nothing;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 19 240 30s55ms 125ms [ User: postgres - Total duration: 30s55ms - Times executed: 240 ]
-
INSERT INTO bigmovement_results_underlying (symbolid, direction, patternmovement, statisticalmovement, percentile, resultuniqueindex, gmttimefound, patternstarttime, patternendtime, simulation, writtendatetime, fromprice, toprice, patternlengthbars, startzigzag) SELECT DISTINCT 1028363, 1, 0.479237576582704882800000000000, 0.236567770000000010600000000000, 99.000000000000000000000000000000, '1028363|1|0.23656777|992021-07-26 18:00:00', '2021-07-26 17:00:48'::timestamp without time zone, '2021-07-26 10:00:00'::timestamp without time zone, '2021-07-26 18:00:00'::timestamp without time zone, 0, CURRENT_TIMESTAMP::timestamp without time zone, 0.734380000000000032800000000000, 0.738020000000000009400000000000, 8, '2021-07-26 10:00:00'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM bigmovement_results_underlying WHERE resultuniqueindex = '1028363|1|0.23656777|992021-07-26 18:00:00') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:15 Duration: 1s115ms Database: acaweb_fx User: postgres
-
INSERT INTO bigmovement_results_underlying (symbolid, direction, patternmovement, statisticalmovement, percentile, resultuniqueindex, gmttimefound, patternstarttime, patternendtime, simulation, writtendatetime, fromprice, toprice, patternlengthbars, startzigzag) SELECT DISTINCT 1022631, 1, 3.252331860579272593000000000000, 2.420948500000000170000000000000, 99.000000000000000000000000000000, '1022631|1|2.4209485|992021-07-26 19:00:00', '2021-07-26 17:04:47'::timestamp without time zone, '2021-07-22 16:00:00'::timestamp without time zone, '2021-07-26 19:00:00'::timestamp without time zone, 0, CURRENT_TIMESTAMP::timestamp without time zone, 81.359999999999999430000000000000, 84.129999999999995460000000000000, 17, '2021-07-22 16:00:00'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM bigmovement_results_underlying WHERE resultuniqueindex = '1022631|1|2.4209485|992021-07-26 19:00:00') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:05:14 Duration: 744ms Database: acaweb_fx User: postgres
-
INSERT INTO bigmovement_results_underlying (symbolid, direction, patternmovement, statisticalmovement, percentile, resultuniqueindex, gmttimefound, patternstarttime, patternendtime, simulation, writtendatetime, fromprice, toprice, patternlengthbars, startzigzag) SELECT DISTINCT 1026906, - 1, - 13.246514075243348780000000000000, - 2.342686000000000046000000000000, 1.000000000000000000000000000000, '1026906|-1|-2.342686|12021-07-26 19:00:00', '2021-07-26 17:00:48'::timestamp without time zone, '2021-07-22 16:00:00'::timestamp without time zone, '2021-07-26 19:00:00'::timestamp without time zone, 0, CURRENT_TIMESTAMP::timestamp without time zone, 75.450000000000002840000000000000, 65.950000000000002840000000000000, 17, '2021-07-22 16:00:00'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM bigmovement_results_underlying WHERE resultuniqueindex = '1026906|-1|-2.342686|12021-07-26 19:00:00') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 19:01:14 Duration: 354ms Database: acaweb_fx User: postgres
19 235 56m7s 107ms 3m31s 14s327ms 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 #19
Day Hour Count Duration Avg duration Jul 26 19 235 56m7s 14s327ms [ User: postgres - Total duration: 56m7s - Times executed: 235 ]
-
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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 19:21:27 Duration: 3m31s 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 = '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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 19:47:24 Duration: 3m7s 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 = '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 19:36:25 Duration: 2m55s Database: acaweb_fx User: postgres Bind query: yes
20 218 2m7s 50ms 12s31ms 584ms 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 19 218 2m7s 584ms [ User: postgres - Total duration: 2m7s - Times executed: 218 ]
-
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 = 5123 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 > 61330309 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:01:15 Duration: 12s31ms 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 = 5159 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 > 61326763 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:01:13 Duration: 8s138ms 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 19:01:07 Duration: 5s494ms 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 3m29s 5m42s 4m58s 4 19m55s select updateageforrelevantresults ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 26 19 4 19m55s 4m58s [ User: postgres - Total duration: 19m55s - Times executed: 4 ]
-
select updateageforrelevantresults ();
Date: 2021-07-26 19:37:45 Duration: 5m42s Database: acaweb_fx User: postgres
-
select updateageforrelevantresults ();
Date: 2021-07-26 19:07:29 Duration: 5m26s Database: acaweb_fx User: postgres
-
select updateageforrelevantresults ();
Date: 2021-07-26 19:22:18 Duration: 5m15s Database: acaweb_fx User: postgres
2 54ms 10m25s 45s529ms 58 44m 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 #2
Day Hour Count Duration Avg duration Jul 26 19 58 44m 45s529ms [ User: postgres - Total duration: 44m - Times executed: 58 ]
-
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 = 4768 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 = 4768 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 19:08:45 Duration: 10m25s 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 = 4780 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 = 4780 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 19:27:12 Duration: 9m33s 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 = 4769 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 = 4769 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'ekl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 19:15:35 Duration: 6m46s Database: acaweb_fx User: postgres
3 721ms 5m54s 44s184ms 24 17m40s 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 #3
Day Hour Count Duration Avg duration Jul 26 19 24 17m40s 44s184ms [ User: postgres - Total duration: 17m40s - Times executed: 24 ]
-
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 19:36:25 Duration: 5m54s 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 19:53:26 Duration: 2m55s 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 19:47:24 Duration: 1m54s Database: acaweb_fx User: postgres Bind query: yes
4 55ms 3m7s 20s122ms 56 18m46s with rar_max as ( ;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 26 19 56 18m46s 20s122ms [ User: postgres - Total duration: 18m46s - Times executed: 56 ]
-
WITH rar_max as ( ;
Date: 2021-07-26 19:05:21 Duration: 3m7s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( ;
Date: 2021-07-26 19:30:24 Duration: 2m39s Database: acaweb_fx User: postgres Bind query: yes
-
WITH rar_max as ( ;
Date: 2021-07-26 19:23:41 Duration: 2m13s Database: acaweb_fx User: postgres Bind query: yes
5 214ms 5m22s 16s596ms 128 35m24s (( 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 #5
Day Hour Count Duration Avg duration Jul 26 19 128 35m24s 16s596ms [ User: postgres - Total duration: 35m24s - Times executed: 128 ]
-
(( 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 19:23:37 Duration: 5m22s 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 19:13:14 Duration: 1m50s 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 19:30:22 Duration: 1m44s Database: acaweb_fx User: postgres Bind query: yes
6 107ms 3m31s 14s327ms 235 56m7s 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 #6
Day Hour Count Duration Avg duration Jul 26 19 235 56m7s 14s327ms [ User: postgres - Total duration: 56m7s - Times executed: 235 ]
-
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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 19:21:27 Duration: 3m31s 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 = '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 ('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 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 ('0' = 0 OR age <= '0') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 19:47:24 Duration: 3m7s 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 = '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 19:36:25 Duration: 2m55s Database: acaweb_fx User: postgres Bind query: yes
7 52ms 3m17s 9s331ms 50 7m46s select stats_createsummarytables_by_groups_chartpattens (cast(? as int));Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 26 19 50 7m46s 9s331ms [ User: postgres - Total duration: 7m46s - Times executed: 50 ]
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(86 as int));
Date: 2021-07-26 19:48:09 Duration: 3m17s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(91 as int));
Date: 2021-07-26 19:56:01 Duration: 1m10s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_ChartPattens (cast(89 as int));
Date: 2021-07-26 19:54:49 Duration: 35s837ms Database: acaweb_fx User: postgres
8 51ms 3m8s 8s962ms 214 31m58s 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 #8
Day Hour Count Duration Avg duration Jul 26 19 214 31m58s 8s962ms [ User: postgres - Total duration: 31m58s - Times executed: 214 ]
-
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 19:05:21 Duration: 3m8s 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 = '431' 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 19:03:38 Duration: 2m18s 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 = '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 ('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 19:23:41 Duration: 2m13s Database: acaweb_fx User: postgres Bind query: yes
9 57ms 5m15s 7s664ms 51 6m30s select stats_createsummarytables_by_groups_keylevels (cast(? as int));Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 26 19 51 6m30s 7s664ms [ User: postgres - Total duration: 6m30s - Times executed: 51 ]
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(88 as int));
Date: 2021-07-26 19:54:14 Duration: 5m15s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(86 as int));
Date: 2021-07-26 19:48:44 Duration: 35s432ms Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_by_groups_KeyLevels (cast(103 as int));
Date: 2021-07-26 19:57:40 Duration: 19s377ms Database: acaweb_fx User: postgres
10 50ms 54s518ms 3s617ms 104 6m16s 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 #10
Day Hour Count Duration Avg duration Jul 26 19 104 6m16s 3s617ms [ User: postgres - Total duration: 6m16s - Times executed: 104 ]
-
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 19:09:00 Duration: 54s518ms 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 19:04:05 Duration: 49s18ms 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 19:17:49 Duration: 46s342ms Database: acaweb_fx User: postgres Bind query: yes
11 77ms 11s385ms 3s471ms 92 5m19s 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 #11
Day Hour Count Duration Avg duration Jul 26 19 92 5m19s 3s471ms [ User: postgres - Total duration: 5m19s - Times executed: 92 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '982491' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:03:01 Duration: 11s385ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T30 WHERE symbolid = '982491' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:03:01 Duration: 11s266ms Database: acaweb_fx User: postgres Bind query: yes
-
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 19:32:56 Duration: 10s388ms Database: acaweb_fx User: postgres Bind query: yes
12 53ms 14s432ms 2s629ms 137 6m select * from ( select pricedatetime, open, high, low, close, volume, bsf from t240 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 26 19 137 6m 2s629ms [ User: postgres - Total duration: 6m - Times executed: 137 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T240 WHERE symbolid = '962284' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:48 Duration: 14s432ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T240 WHERE symbolid = '962284' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:48 Duration: 14s422ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T240 WHERE symbolid = '962164' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:48 Duration: 14s300ms Database: acaweb_fx User: postgres Bind query: yes
13 50ms 15s690ms 2s263ms 324 12m13s 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 #13
Day Hour Count Duration Avg duration Jul 26 19 324 12m13s 2s263ms [ User: postgres - Total duration: 12m13s - Times executed: 324 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1028428' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:36:04 Duration: 15s690ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1028428' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:01:17 Duration: 14s873ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '988117' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 19:02:46 Duration: 14s379ms Database: acaweb_fx User: postgres Bind query: yes
14 50ms 5s113ms 899ms 1,278 19m9s 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 #14
Day Hour Count Duration Avg duration Jul 26 19 1,278 19m9s 899ms [ User: postgres - Total duration: 19m9s - Times executed: 1278 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026401, '2021-07-26 19:00:00'::timestamp without time zone, 87.948, 87.954, 87.883, 87.949, 1402, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1026401 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s113ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969052, '2021-07-26 19:00:00'::timestamp without time zone, 361.56, 361.668, 361.38, 361.589, 21096, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 969052 AND pricedatetime = '2021-07-26 19:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s77ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1016138, '2021-07-26 18:00:00'::timestamp without time zone, 25.201, 25.234, 25.191, 25.223, 11921, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1016138 AND pricedatetime = '2021-07-26 18:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:17 Duration: 4s137ms Database: acaweb_fx User: postgres
15 50ms 5s293ms 874ms 902 13m8s 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 #15
Day Hour Count Duration Avg duration Jul 26 19 902 13m8s 874ms [ User: postgres - Total duration: 13m8s - Times executed: 902 ]
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1021132, '2021-07-26 16:00:00'::timestamp without time zone, 7.64706, 7.66263, 7.64572, 7.65695, 12295, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1021132 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s293ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022912, '2021-07-26 16:00:00'::timestamp without time zone, 0.85513, 0.8552, 0.85361, 0.85422, 14024, 0, '2021-07-26 19:03:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1022912 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s140ms Database: acaweb_fx User: postgres
-
INSERT INTO T240 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002819, '2021-07-26 16:00:00'::timestamp without time zone, 1.08309, 1.08315, 1.08113, 1.08127, 11472, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1002819 AND pricedatetime = '2021-07-26 16:00:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 3s951ms Database: acaweb_fx User: postgres
16 50ms 5s317ms 815ms 2,555 34m43s 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 #16
Day Hour Count Duration Avg duration Jul 26 19 2,555 34m43s 815ms [ User: postgres - Total duration: 34m43s - Times executed: 2555 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 966781, '2021-07-26 12:30:00'::timestamp without time zone, 0.70003, 0.70023, 0.69976, 0.69984, 1069, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 966781 AND pricedatetime = '2021-07-26 12:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 5s317ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010432, '2021-07-26 19:30:00'::timestamp without time zone, 7.64845, 7.65368, 7.64832, 7.6536, 812, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1010432 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:21 Duration: 4s636ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 977046, '2021-07-26 19:30:00'::timestamp without time zone, 1.18083, 1.18127, 1.18081, 1.18123, 699, 0, '2021-07-26 19:03:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977046 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone);
Date: 2021-07-26 19:03:19 Duration: 3s904ms Database: acaweb_fx User: postgres
17 50ms 15s568ms 747ms 250 3m6s 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 19 250 3m6s 747ms [ User: postgres - Total duration: 3m6s - Times executed: 250 ]
-
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 19:30:55 Duration: 15s568ms 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 >= 0.7 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.7 AND initialtrend >= 0.7 AND symmetry >= 0.7 AND noise <= 0.30000000000000004 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 > 517053083 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 19:50:19 Duration: 12s737ms 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 = 660 AND sg.groupid = 4859 AND breakout >= 0.5 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.5 AND initialtrend >= 0.7 AND symmetry >= 0.5 AND noise <= 0.30000000000000004 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 19:18:38 Duration: 11s34ms Database: acaweb_fx User: postgres Bind query: yes
18 50ms 5s32ms 661ms 3,909 43m5s 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 #18
Day Hour Count Duration Avg duration Jul 26 19 3,909 43m5s 661ms [ User: postgres - Total duration: 43m5s - Times executed: 3909 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 954146, '2021-07-26 19:45:00'::timestamp without time zone, 1.26593, 1.26593, 1.26557, 1.26577, 673, 0, '2021-07-26 19:03:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 954146 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:18 Duration: 5s32ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 986550, '2021-07-26 19:45:00'::timestamp without time zone, 9.18695, 9.1887, 9.18655, 9.18848, 413, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 986550 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:20 Duration: 4s628ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961451, '2021-07-26 18:45:00'::timestamp without time zone, 47.42, 47.48, 47.42, 47.44, 18, 0, '2021-07-26 19:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 961451 AND pricedatetime = '2021-07-26 18:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:20 Duration: 4s388ms Database: acaweb_fx User: postgres
19 50ms 3s656ms 620ms 290 2m59s 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);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 26 19 290 2m59s 620ms [ User: postgres - Total duration: 2m59s - Times executed: 290 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1016131, '2021-07-26 18:30:00'::timestamp without time zone, 1798.67, 1799.78, 1798.2, 1799.09, 952, 0, '2021-07-26 19:03:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1016131 AND pricedatetime = '2021-07-26 18:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1016131, '2021-07-26 18:45:00'::timestamp without time zone, 1799.09, 1799.44, 1798.53, 1798.78, 930, 0, '2021-07-26 19:03:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1016131 AND pricedatetime = '2021-07-26 18:45:00'::timestamp without time zone);
Date: 2021-07-26 19:03:21 Duration: 3s656ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968835, '2021-07-26 19:30:00'::timestamp without time zone, 87.947, 87.965, 87.93, 87.956, 401, 0, '2021-07-26 19:02:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968835 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968835, '2021-07-26 19:45:00'::timestamp without time zone, 87.957, 87.977, 87.936, 87.974, 370, 0, '2021-07-26 19:02:06'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968835 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:02:09 Duration: 3s1ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968690, '2021-07-26 19:30:00'::timestamp without time zone, 0.73835, 0.73852, 0.73816, 0.73824, 263, 0, '2021-07-26 19:01:49'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968690 AND pricedatetime = '2021-07-26 19:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968690, '2021-07-26 19:45:00'::timestamp without time zone, 0.73824, 0.73825, 0.73809, 0.7381, 213, 0, '2021-07-26 19:01:49'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 968690 AND pricedatetime = '2021-07-26 19:45:00'::timestamp without time zone);
Date: 2021-07-26 19:01:51 Duration: 2s457ms Database: acaweb_fx User: postgres
20 50ms 12s31ms 584ms 218 2m7s 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 19 218 2m7s 584ms [ User: postgres - Total duration: 2m7s - Times executed: 218 ]
-
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 = 5123 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 > 61330309 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:01:15 Duration: 12s31ms 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 = 5159 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 > 61326763 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 19:01:13 Duration: 8s138ms 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 19:01:07 Duration: 5s494ms Database: acaweb_fx User: postgres Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 130ms 2 50ms 80ms 65ms with sym_info as ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Jul 26 19 2 130ms 65ms [ User: postgres - Total duration: 315ms - Times executed: 2 ]
-
with sym_info as ( ;
Date: 2021-07-26 19:35:53 Duration: 80ms Database: postgres User: acaweb_fx Remote: postgres
-
with sym_info as ( ;
Date: 2021-07-26 19:05:52 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 1s715ms 4 278ms 643ms 428ms with sym_info as ( ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Jul 26 19 4 1s715ms 428ms [ User: postgres - Total duration: 551ms - Times executed: 4 ]
-
with sym_info as ( ;
Date: 2021-07-26 19:35:54 Duration: 643ms 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 19:05:53 Duration: 505ms 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 19:20:53 Duration: 287ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '617', $2 = 'Forex', $3 = 'Forex', $4 = '617', $5 = 'Forex', $6 = '617'
2 1s195ms 7 79ms 316ms 170ms 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 19 7 1s195ms 170ms [ User: postgres - Total duration: 5s133ms - Times executed: 7 ]
-
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 19:30:30 Duration: 316ms 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'
-
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 19:40:44 Duration: 227ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1016268'
-
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 19:28:19 Duration: 174ms Database: postgres User: acaweb_fx Remote: postgres
3 557ms 6 62ms 147ms 92ms 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 #3
Day Hour Count Duration Avg duration 19 6 557ms 92ms [ User: postgres - Total duration: 9s16ms - 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 19:40:02 Duration: 147ms 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 19:30:02 Duration: 121ms 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 19:20:02 Duration: 86ms Database: postgres User: acaweb_fx Remote: postgres
4 314ms 4 60ms 105ms 78ms WITH last_candle AS ( ;Times Reported Time consuming bind #4
Day Hour Count Duration Avg duration 19 4 314ms 78ms [ User: postgres - Total duration: 6s810ms - Times executed: 4 ]
-
WITH last_candle AS ( ;
Date: 2021-07-26 19:53:12 Duration: 105ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
-
WITH last_candle AS ( ;
Date: 2021-07-26 19:33:55 Duration: 84ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
-
WITH last_candle AS ( ;
Date: 2021-07-26 19:28:48 Duration: 64ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
5 277ms 3 65ms 117ms 92ms SELECT trumpetSymbolID AS sid, trumpetTimeGranularity AS tg FROM brokersymbollist bsl LEFT JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid LEFT JOIN downloadersymbolsettings dss ON psd.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON code = $1 AND bdfi.brokerid = $2 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid LEFT OUTER JOIN symbols s ON dss.symbolid = s.symbolid AND s.symbol = $3 AND s.timegranularity = $4 WHERE (code = $5 OR s.symbol = $6) and bsl.brokerid = $7 AND dss.classname <> $8 GROUP BY trumpetSymbolID, trumpetTimeGranularity;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 19 3 277ms 92ms [ User: postgres - Total duration: 441ms - Times executed: 3 ]
-
SELECT trumpetSymbolID AS sid, trumpetTimeGranularity AS tg FROM brokersymbollist bsl LEFT JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid LEFT JOIN downloadersymbolsettings dss ON psd.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON code = $1 AND bdfi.brokerid = $2 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid LEFT OUTER JOIN symbols s ON dss.symbolid = s.symbolid AND s.symbol = $3 AND s.timegranularity = $4 WHERE (code = $5 OR s.symbol = $6) and bsl.brokerid = $7 AND dss.classname <> $8 GROUP BY trumpetSymbolID, trumpetTimeGranularity;
Date: 2021-07-26 19:32:05 Duration: 117ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1021009', $2 = '15'
-
SELECT trumpetSymbolID AS sid, trumpetTimeGranularity AS tg FROM brokersymbollist bsl LEFT JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid LEFT JOIN downloadersymbolsettings dss ON psd.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON code = $1 AND bdfi.brokerid = $2 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid LEFT OUTER JOIN symbols s ON dss.symbolid = s.symbolid AND s.symbol = $3 AND s.timegranularity = $4 WHERE (code = $5 OR s.symbol = $6) and bsl.brokerid = $7 AND dss.classname <> $8 GROUP BY trumpetSymbolID, trumpetTimeGranularity;
Date: 2021-07-26 19:19:53 Duration: 95ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1021249', $2 = '15'
-
SELECT trumpetSymbolID AS sid, trumpetTimeGranularity AS tg FROM brokersymbollist bsl LEFT JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid LEFT JOIN downloadersymbolsettings dss ON psd.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON code = $1 AND bdfi.brokerid = $2 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid LEFT OUTER JOIN symbols s ON dss.symbolid = s.symbolid AND s.symbol = $3 AND s.timegranularity = $4 WHERE (code = $5 OR s.symbol = $6) and bsl.brokerid = $7 AND dss.classname <> $8 GROUP BY trumpetSymbolID, trumpetTimeGranularity;
Date: 2021-07-26 19:50:04 Duration: 65ms Database: postgres User: acaweb_fx Remote: postgres
6 247ms 2 68ms 179ms 123ms 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 #6
Day Hour Count Duration Avg duration 19 2 247ms 123ms [ User: postgres - Total duration: 2s155ms - Times executed: 2 ]
-
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 19:37:17 Duration: 179ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986530'
-
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 19:41:31 Duration: 68ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '2', $2 = '20', $3 = '3', $4 = '3', $5 = '65553624', $6 = '0'
7 164ms 2 71ms 92ms 82ms SELECT brokerid, NAME, emailstylesheet, maketradeurl, biglogofilename, smalllogofilename, url, wwwstylesheet, defaultgroupid, pricecolour, supportcolour, resistancecolour, predictioncolour, volumecolour, fromemail, allowedredir, charttype, userauth, backgroundcolour, axiscolour, textcolour, showxlabel, showylabel, eoddateformat, intradaydateformat, candleupclosecolour, candledownclosecolour, satellite FROM broker WHERE brokerid = $1;Times Reported Time consuming bind #7
Day Hour Count Duration Avg duration 19 2 164ms 82ms [ User: postgres - Total duration: 190ms - Times executed: 2 ]
-
SELECT brokerid, NAME, emailstylesheet, maketradeurl, biglogofilename, smalllogofilename, url, wwwstylesheet, defaultgroupid, pricecolour, supportcolour, resistancecolour, predictioncolour, volumecolour, fromemail, allowedredir, charttype, userauth, backgroundcolour, axiscolour, textcolour, showxlabel, showylabel, eoddateformat, intradaydateformat, candleupclosecolour, candledownclosecolour, satellite FROM broker WHERE brokerid = $1;
Date: 2021-07-26 19:05:31 Duration: 92ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT brokerid, NAME, emailstylesheet, maketradeurl, biglogofilename, smalllogofilename, url, wwwstylesheet, defaultgroupid, pricecolour, supportcolour, resistancecolour, predictioncolour, volumecolour, fromemail, allowedredir, charttype, userauth, backgroundcolour, axiscolour, textcolour, showxlabel, showylabel, eoddateformat, intradaydateformat, candleupclosecolour, candledownclosecolour, satellite FROM broker WHERE brokerid = $1;
Date: 2021-07-26 19:50:15 Duration: 71ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1', $2 = '1230', $3 = '1009901'
8 126ms 2 54ms 71ms 63ms with wh_patitioned as ( ;Times Reported Time consuming bind #8
Day Hour Count Duration Avg duration 19 2 126ms 63ms [ User: postgres - Total duration: 205ms - Times executed: 2 ]
-
with wh_patitioned as ( ;
Date: 2021-07-26 19:19:12 Duration: 71ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '529', $2 = '529', $3 = '529', $4 = '529', $5 = '529', $6 = '529', $7 = '529', $8 = '529', $9 = '529'
-
with wh_patitioned as ( ;
Date: 2021-07-26 19:36:51 Duration: 54ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '529', $2 = '529', $3 = '529', $4 = '529', $5 = '529', $6 = '529', $7 = '529', $8 = '529', $9 = '529'
9 117ms 1 117ms 117ms 117ms 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 #9
Day Hour Count Duration Avg duration 19 1 117ms 117ms [ User: postgres - Total duration: 100ms - 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 19:37:17 Duration: 117ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986695', $2 = '558'
10 116ms 1 116ms 116ms 116ms 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 LEFT OUTER JOIN brokerinstrumentmapping bdfi ON dss.datafeedinstrumentid = bdfi.datafeedinstrumentid and bdfi.brokerid = $1 WHERE bsl.brokerid = $2 AND dtt.dayofweek = 3 AND (bdfi.code = $3 OR s.symbol = $4) 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 #10
Day Hour Count Duration Avg duration 19 1 116ms 116ms [ User: postgres - Total duration: 258ms - 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 LEFT OUTER JOIN brokerinstrumentmapping bdfi ON dss.datafeedinstrumentid = bdfi.datafeedinstrumentid and bdfi.brokerid = $1 WHERE bsl.brokerid = $2 AND dtt.dayofweek = 3 AND (bdfi.code = $3 OR s.symbol = $4) 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 19:07:29 Duration: 116ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '49', $2 = '49', $3 = 'EURJPY', $4 = 'EURJPY'
11 87ms 1 87ms 87ms 87ms SELECT exchange, symbolid, symbol, longname, groupname, groupid, enddate FROM prfsymboltree WHERE brokerid = $1;Times Reported Time consuming bind #11
Day Hour Count Duration Avg duration 19 1 87ms 87ms [ User: postgres - Total duration: 72ms - Times executed: 1 ]
-
SELECT exchange, symbolid, symbol, longname, groupname, groupid, enddate FROM prfsymboltree WHERE brokerid = $1;
Date: 2021-07-26 19:05:34 Duration: 87ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '981910', $2 = '529'
12 83ms 1 83ms 83ms 83ms 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 AND psd.symbolID = dss.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 INNER JOIN symbols sy on sy.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON dss.datafeedinstrumentid = bdfi.datafeedinstrumentid and bdfi.brokerid = $1 where (bdfi.code = $2 OR s.symbol = $3) and bsl.brokerid = $4 AND dtt.dayofweek = 3 ORDER BY day ASC;Times Reported Time consuming bind #12
Day Hour Count Duration Avg duration 19 1 83ms 83ms [ User: postgres - Total duration: 61ms - 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 AND psd.symbolID = dss.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 INNER JOIN symbols sy on sy.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON dss.datafeedinstrumentid = bdfi.datafeedinstrumentid and bdfi.brokerid = $1 where (bdfi.code = $2 OR s.symbol = $3) and bsl.brokerid = $4 AND dtt.dayofweek = 3 ORDER BY day ASC;
Date: 2021-07-26 19:07:54 Duration: 83ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '49', $2 = 'GBPCHF', $3 = 'GBPCHF', $4 = '49'
13 65ms 1 65ms 65ms 65ms 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 bind #13
Day Hour Count Duration Avg duration 19 1 65ms 65ms [ User: postgres - Total duration: 2s998ms - Times executed: 1 ]
-
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 19:40:00 Duration: 65ms Database: postgres User: acaweb_fx Remote: postgres
14 58ms 1 58ms 58ms 58ms SELECT distinct g.basegroupname, s.symbol;Times Reported Time consuming bind #14
Day Hour Count Duration Avg duration 19 1 58ms 58ms [ User: postgres - Total duration: 3s520ms - Times executed: 1 ]
-
SELECT distinct g.basegroupname, s.symbol;
Date: 2021-07-26 19:44:27 Duration: 58ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '660'
15 56ms 1 56ms 56ms 56ms 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 = 49 AND sg.groupid = 3872 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 & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61321319 AND dftt.dayofweek = 3 AND ((rar.age IS NULL AND a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1)) OR rar.age >= ( case s.timegranularity;Times Reported Time consuming bind #15
Day Hour Count Duration Avg duration 19 1 56ms 56ms [ User: postgres - Total duration: 81ms - Times executed: 1 ]
-
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 = 49 AND sg.groupid = 3872 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 & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61321319 AND dftt.dayofweek = 3 AND ((rar.age IS NULL AND a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1)) OR rar.age >= ( case s.timegranularity;
Date: 2021-07-26 19:06:00 Duration: 56ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1003036'
16 54ms 1 54ms 54ms 54ms SELECT ;Times Reported Time consuming bind #16
Day Hour Count Duration Avg duration 19 1 54ms 54ms [ User: postgres - Total duration: 2s271ms - Times executed: 1 ]
-
SELECT ;
Date: 2021-07-26 19:31:49 Duration: 54ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1020081'
17 52ms 1 52ms 52ms 52ms WITH rar_max as ( ;Times Reported Time consuming bind #17
Day Hour Count Duration Avg duration 19 1 52ms 52ms [ User: postgres - Total duration: 140ms - Times executed: 1 ]
-
WITH rar_max as ( ;
Date: 2021-07-26 19:28:34 Duration: 52ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '529', $2 = '7', $3 = '15', $4 = '30', $5 = '60', $6 = '120', $7 = '240', $8 = '480', $9 = '1440', $10 = '0', $11 = '', $12 = '31', $13 = 'AUDCAD', $14 = 'AUDCHF', $15 = 'AUDJPY', $16 = 'AUDNZD', $17 = 'AUDUSD', $18 = 'CADJPY', $19 = 'CHFJPY', $20 = 'EURAUD', $21 = 'EURCAD', $22 = 'EURCHF', $23 = 'EURGBP', $24 = 'EURJPY', $25 = 'EURNZD', $26 = 'EURUSD', $27 = 'GBPAUD', $28 = 'GBPCAD', $29 = 'GBPCHF', $30 = 'GBPJPY', $31 = 'GBPNZD', $32 = 'GBPUSD', $33 = 'JPN225', $34 = 'NAS100', $35 = 'NZDCAD', $36 = 'NZDCHF', $37 = 'NZDJPY', $38 = 'NZDUSD', $39 = 'USDCAD', $40 = 'USDCHF', $41 = 'USDJPY', $42 = 'XAGUSD', $43 = 'XAUUSD', $44 = '400', $45 = '400', $46 = 't', $47 = '10', $48 = '10'
18 51ms 1 51ms 51ms 51ms 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 = 495 AND sg.groupid = 3182 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;Times Reported Time consuming bind #18
Day Hour Count Duration Avg duration 19 1 51ms 51ms [ User: postgres - Total duration: 1s412ms - 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 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 = 495 AND sg.groupid = 3182 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 19:16:32 Duration: 51ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '2', $2 = '20', $3 = '39', $4 = '3', $5 = '0', $6 = '0', $7 = '0'
19 50ms 1 50ms 50ms 50ms SELECT DISTINCT COALESCE(stddev_15 / 2, 0) AS low_15_stddev, COALESCE(ave_15 / 2, 0) AS low_15_ave, COALESCE(stddev_15 / 2, 0) AS high_15_stddev, COALESCE(ave_15 / 2, 0) AS high_15_ave, COALESCE(stddev_30 / 2, 0) AS low_30_stddev, COALESCE(ave_30 / 2, 0) AS low_30_ave, COALESCE(stddev_30 / 2, 0) AS high_30_stddev, COALESCE(ave_30 / 2, 0) AS high_30_ave, COALESCE(stddev_60 / 2, 0) AS low_60_stddev, COALESCE(ave_60 / 2, 0) AS low_60_ave, COALESCE(stddev_60 / 2, 0) AS high_60_stddev, COALESCE(ave_60 / 2, 0) AS high_60_ave, COALESCE(stddev_240 / 2, 0) AS low_240_stddev, COALESCE(ave_240 / 2, 0) AS low_240_ave, COALESCE(stddev_240 / 2, 0) AS high_240_stddev, COALESCE(ave_240 / 2, 0) AS high_240_ave, COALESCE(stddev_1440 / 2, 0) AS low_1440_stddev, COALESCE(ave_1440 / 2, 0) AS low_1440_ave, COALESCE(stddev_1440 / 2, 0) AS high_1440_stddev, COALESCE(ave_1440 / 2, 0) AS high_1440_ave, s.exchange AS exchange, s.symbol AS symbol, s.longname, ps.enddate AS executiondate, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, dss.downloadersymbol FROM powerstats_trumpet ps INNER JOIN downloadersymbolsettings dss ON dss.symbolid = ps.symbolid INNER JOIN datafeedstimetable dtt ON dtt.classname = dss.classname INNER JOIN symbols s ON ps.symbolid = s.symbolid WHERE ps.dayofweek = $1 AND ps.fromtime = $2 AND ps.symbolid = $3 ORDER BY ps.enddate DESC LIMIT 1;Times Reported Time consuming bind #19
Day Hour Count Duration Avg duration 19 1 50ms 50ms [ User: postgres - Total duration: 106ms - Times executed: 1 ]
-
SELECT DISTINCT COALESCE(stddev_15 / 2, 0) AS low_15_stddev, COALESCE(ave_15 / 2, 0) AS low_15_ave, COALESCE(stddev_15 / 2, 0) AS high_15_stddev, COALESCE(ave_15 / 2, 0) AS high_15_ave, COALESCE(stddev_30 / 2, 0) AS low_30_stddev, COALESCE(ave_30 / 2, 0) AS low_30_ave, COALESCE(stddev_30 / 2, 0) AS high_30_stddev, COALESCE(ave_30 / 2, 0) AS high_30_ave, COALESCE(stddev_60 / 2, 0) AS low_60_stddev, COALESCE(ave_60 / 2, 0) AS low_60_ave, COALESCE(stddev_60 / 2, 0) AS high_60_stddev, COALESCE(ave_60 / 2, 0) AS high_60_ave, COALESCE(stddev_240 / 2, 0) AS low_240_stddev, COALESCE(ave_240 / 2, 0) AS low_240_ave, COALESCE(stddev_240 / 2, 0) AS high_240_stddev, COALESCE(ave_240 / 2, 0) AS high_240_ave, COALESCE(stddev_1440 / 2, 0) AS low_1440_stddev, COALESCE(ave_1440 / 2, 0) AS low_1440_ave, COALESCE(stddev_1440 / 2, 0) AS high_1440_stddev, COALESCE(ave_1440 / 2, 0) AS high_1440_ave, s.exchange AS exchange, s.symbol AS symbol, s.longname, ps.enddate AS executiondate, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, dss.downloadersymbol FROM powerstats_trumpet ps INNER JOIN downloadersymbolsettings dss ON dss.symbolid = ps.symbolid INNER JOIN datafeedstimetable dtt ON dtt.classname = dss.classname INNER JOIN symbols s ON ps.symbolid = s.symbolid WHERE ps.dayofweek = $1 AND ps.fromtime = $2 AND ps.symbolid = $3 ORDER BY ps.enddate DESC LIMIT 1;
Date: 2021-07-26 19:29:21 Duration: 50ms Database: postgres User: acaweb_fx Remote: postgres
-
Events
Log levels
Key values
- 48,176 Log entries
Events distribution
Key values
- 0 PANIC entries
- 1 FATAL entries
- 3337 ERROR entries
- 277 WARNING entries
Most Frequent Errors/Events
Key values
- 3,317 Max number of times the same event was reported
- 3,615 Total events found
Rank Times reported Error 1 3,317 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 19 3,317 - LOG: process 30933 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.032 ms
- LOG: process 31065 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.035 ms
- LOG: process 32270 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.035 ms
Detail: Process holding the lock: 18802. Wait queue: 30933, 17739, 31065, 32270, 18793, 31096, 18849, 20093, 31086, 18706, 18857, 18709, 31145, 31092, 18703, 18712, 18866.
Date: 2021-07-26 19:01:03 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 17739. Wait queue: 31065, 32270, 18793, 31096, 18849, 20093, 31086, 18706, 18857, 18709, 31145, 31092, 18703, 18712, 18866, 18802.
Date: 2021-07-26 19:01:03 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 31065. Wait queue: 32270, 18793, 31096, 18849, 20093, 31086, 18706, 18857, 18709, 31145, 31092, 18703, 18712, 18866, 18802.
Statement: INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023624, '2021-07-26 12:45:00'::timestamp without time zone, 391.115, 391.14, 390.59, 390.77, 32303, 0,'2021-07-26 19:01:02'::timestamp without time zone WHERE NOT EXISTS (SELECT 1 FROM T15 WHERE symbolid = 1023624 AND pricedatetime = '2021-07-26 12:45:00'::timestamp without time zone);;Date: 2021-07-26 19:01:03 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 19 277 - WARNING: there is no transaction in progress
Date: 2021-07-26 19:00:50 Database: acaweb_fx Application: User: postgres Remote:
3 14 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 26 19 14 - ERROR: duplicate key value violates unique constraint "ix_fibonacci_unique"
- ERROR: duplicate key value violates unique constraint "idx_keylevels_uniquepointsvalue"
- ERROR: duplicate key value violates unique constraint "idx_firstemerging_chartpattern"
Detail: Key (pattern, direction, patternstarttime, patternstartprice, qtytp, patternlengthbars, ratiosfound, temporarypattern, symbolid, timex, timea, timeb, timec, timed)=(3 Point Extension, -1, 2021-07-26 06:00:00, 0.9251, 3, 19, CD=1.618*BC (1.588) , 0, 960554, 1899-12-29 00:00:00, 1899-12-29 00:00:00, 2021-07-26 06:00:00, 2021-07-26 08:00:00, 2021-07-26 15:30: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, '3 Point Extension', '2021-07-26 17:01:53'::timestamp without time zone, -1, '2021-07-26 06:00:00'::timestamp without time zone, '2021-07-26 16:30:00'::timestamp without time zone, 0.925100, 0.925620, 3, -1.000000, '1899-12-29 00:00:00'::timestamp without time zone, -1.000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.925100, '2021-07-26 06:00:00'::timestamp without time zone, 0.922650, '2021-07-26 08:00:00'::timestamp without time zone, 0.926540, '2021-07-26 15:30:00'::timestamp without time zone, 0.582472, -1.000000, 0.374268, 19, 0.922650, 0.924136, 0.920246, 0.923482, 0.921592, 0.924595, 0.925054, 960554, 0.209323, 'CD=1.618*BC (1.588) ', 0, '3 Point Extension|-1|2021-07-26 06:00:00|0.9251|0.92562|3|19|CD=1.618*BC (1.588)|0|960554|1899-12-29 00:00:00|1899-12-29 00:00:00|2021-07-26 06:00:00|2021-07-26 08:00:00|2021-07-26 15:30: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-26 06:00:00'::timestamp without time zone AND patternstartprice = 0.925100 AND qtytp = 3 AND patternlengthbars = 19 AND ratiosfound = 'CD=1.618*BC (1.588) ' AND temporarypattern = 0 AND symbolid = 960554 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-26 06:00:00'::timestamp without time zone AND timec = '2021-07-26 08:00:00'::timestamp without time zone AND timed = '2021-07-26 15:30:00'::timestamp without time zone) LIMIT 1;;Date: 2021-07-26 19:02:19 Database: acaweb_fx Application: User: postgres Remote:
Detail: Key (uniquepointsvalue)=(|960516|0.92654|1|2021-07-26 16:45: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 6.000000, -1, 1, '2021-07-26 17:01:54'::timestamp without time zone, '', 0.500000, 4, 77, 0.926540, '2021-07-26 15:45:00', '2021-07-26 15:00:00', '2021-07-26 13:30:00', '2021-07-23 19:30:00', '', '', '', '', '', '', 192, 0.926732, '2021-07-26 16:45:00'::timestamp without time zone, '2021-07-26 16:45:00', 0.000000, 0.000209, -1, 960516, 0.000000, 0.000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|960516|0.92654|1|2021-07-26 16:45:00|-1|-1', 0.000000, 0.000000, 3, '2021-07-23 19:30:00', 0.926540, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|960516|0.92654|1|2021-07-26 16:45:00|-1|-1') LIMIT 1; ;Date: 2021-07-26 19:02:20 Database: acaweb_fx Application: User: postgres Remote:
Detail: Key (breakout, resx0, resx1, supportx0, supportx1, resy0, resy1, supporty0, supporty1, symbolid)=(-1, 2021-07-23 12:00:00, 2021-07-26 15:00:00, 2021-07-23 07:00:00, 2021-07-26 08:00:00, 0.68013, 0.67692, 0.67696, 0.67333, 960593) 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 '960593-1|44400.5|44403.625|44400.2917|44403.3333|0.6801|0.6769|0.677|0.6733', 960593, 2.000000, 'Channel Down', 4, '2021-07-26 17:01:55'::timestamp without time zone, -1, 0.127047, -1.000000, 0.000000, 0.090949, 0.147849, 0.674149, 0.675024, '2021-07-26 16:00:00'::timestamp without time zone, '2021-07-28 08:30:00'::timestamp without time zone, '2021-07-23 07:00:00'::timestamp without time zone, '2021-07-26 16:00:00'::timestamp without time zone, 0.678890, 0.675630, '2021-07-23 12:00:00'::timestamp without time zone, '2021-07-26 15:00:00'::timestamp without time zone, '2021-07-23 07:00:00'::timestamp without time zone, '2021-07-26 08:00:00'::timestamp without time zone, 0.680130, 0.676920, 0.676960, 0.673330, -0.000151, -0.000123, 1.651933, 0.394649, 'Continuation', 0.000000, '2021-07-26 16:00:00'::timestamp without time zone, 0.675650, 32, 0, 0.003380, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = -1.000000 and resx0 = '2021-07-23 12:00:00'::timestamp without time zone and resx1 = '2021-07-26 15:00:00'::timestamp without time zone and supportx0 = '2021-07-23 07:00:00'::timestamp without time zone and supportx1 = '2021-07-26 08:00:00'::timestamp without time zone and resy0 = 0.680130 and resy1 = 0.676920 and supporty0 = 0.676960 and supporty1 = 0.673330 and symbolid = 960593) or resultid = '960593-1|44400.5|44403.625|44400.2917|44403.3333|0.6801|0.6769|0.677|0.6733') LIMIT 1;;Date: 2021-07-26 19:02:21 Database: acaweb_fx Application: User: postgres Remote:
4 3 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 26 19 3 - LOG: process 31305 still waiting for ShareLock on transaction 99616117 after 1000.049 ms
- LOG: process 23166 still waiting for ShareLock on transaction 99616110 after 1000.044 ms
- LOG: process 23375 still waiting for ShareLock on transaction 99623308 after 1000.041 ms
Detail: Process holding the lock: 31304. Wait queue: 31305.
Context: while inserting index tuple (138031,12) 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 8.000000000000000000000000000000, -1, 2, '2021-07-26 17:00:47'::timestamp without time zone, '2021-07-26 16:00:00', 9.665000000000031122000000000000, 6, 299, 1515.319999999999936000000000000000, '2021-07-22 16:00:00', '2021-07-09 12:00:00', '2021-07-06 16:00:00', '2021-06-14 12:00:00', '2021-05-19 12:00:00', '2021-05-17 16:00:00', '', '', '', '', 1003, 1510.701999999999998000000000000000, '2021-07-26 16:00:00'::timestamp without time zone, '2021-07-26 16:00:00', 1523.250000000000000000000000000000, 4.617999999999994998000000000000, -1, 986923, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|986923|1515.32|2|2021-07-26 16:00:00|2021-07-26 16:00:00|-1|-1', 1528.657699999999977000000000000000, 13.337700000000040740000000000000, 2, '2021-05-17 16:00:00', 1536.730000000000018000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|986923|1515.32|2|2021-07-26 16:00:00|2021-07-26 16:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;Date: 2021-07-26 19:01:14 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 23165. Wait queue: 23166.
Context: while updating tuple (82,38) in relation "autochartist_symbolupdates" SQL statement "UPDATE autochartist_symbolupdates SET recengproccessedtime = NEW.patternendtime WHERE symbolid = NEW.symbolid AND recengproccessedtime < NEW.patternendtime" PL/pgSQL function kl_relevanceinsert_trigger() line 20 at SQL statement
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 3.000000000000000000000000000000, -1, 1, '2021-07-26 17:00:48'::timestamp without time zone, '2021-07-26 19:45:00', 0.087499999999999855670000000000, 4, 115, 28.179999999999999720000000000000, '2021-07-23 18:00:00', '2021-07-21 20:30:00', '2021-07-21 18:45:00', '2021-07-20 17:00:00', '', '', '', '', '', '', 205, 28.201250000000001700000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-26 19:45:00', 28.094999999999998860000000000000, 0.035250000000000100700000000000, 1, 1016832, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1', 28.059249999999998690000000000000, 0.120750000000001023200000000000, 2, '2021-07-20 17:00:00', 28.045000000000001700000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|1016832|28.18|1|2021-07-26 19:45:00|2021-07-26 19:45:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;Date: 2021-07-26 19:01:15 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 23374. Wait queue: 23375.
Context: while updating tuple (9,96) in relation "autochartist_symbolupdates" SQL statement "UPDATE autochartist_symbolupdates SET recengproccessedtime = NEW.patternendtime WHERE symbolid = NEW.symbolid AND recengproccessedtime < NEW.patternendtime" PL/pgSQL function cp_relevanceinsert_trigger() line 25 at SQL statement
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 '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27', 1029681, 2.000000000000000000000000000000, 'Channel Down', 4, '2021-07-26 17:04:47'::timestamp without time zone, -1, 0.561961330196557029600000000000, -1.000000000000000000000000000000, 0.083808278867102362080000000000, 0.225445292620853110500000000000, 0.066387692411221527200000000000, 226.353059995776845900000000000000, 227.407108331573681400000000000000, '2021-07-26 19:45:00'::timestamp without time zone, '2021-07-28 08:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 19:45:00'::timestamp without time zone, 233.270000000000010200000000000000, 228.090000000000003400000000000000, '2021-07-23 22:45:00'::timestamp without time zone, '2021-07-26 19:15:00'::timestamp without time zone, '2021-07-23 18:45:00'::timestamp without time zone, '2021-07-26 17:00:00'::timestamp without time zone, 229.789999999999992000000000000000, 228.995000000000004600000000000000, 226.569999999999993200000000000000, 225.270000000000010200000000000000, -0.068421052631578049840000000000, -0.066249999999998962500000000000, 1.878408995329655662000000000000, 0.467634576662308454400000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 19:45:00'::timestamp without time zone, 228.159999999999996600000000000000, 30, 0, 3.472499999999996590000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = -1.000000000000000000000000000000 and resx0 = '2021-07-23 22:45:00'::timestamp without time zone and resx1 = '2021-07-26 19:15:00'::timestamp without time zone and supportx0 = '2021-07-23 18:45:00'::timestamp without time zone and supportx1 = '2021-07-26 17:00:00'::timestamp without time zone and resy0 = 229.789999999999992000000000000000 and resy1 = 228.995000000000004600000000000000 and supporty0 = 226.569999999999993200000000000000 and supporty1 = 225.270000000000010200000000000000 and symbolid = 1029681) or resultid = '1029681-1|44400.9479|44403.8021|44400.7812|44403.7083|229.79|228.995|226.57|225.27') LIMIT 1 ON CONFLICT DO NOTHING;;Date: 2021-07-26 19:05:15 Database: acaweb_fx Application: User: postgres Remote:
5 1 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 26 19 1 - ERROR: column c.relhasoids does not exist at character 245
Statement: select n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.attlen, a.atttypmod, a.attnotnull, c.relhasrules, c.relkind, c.oid, pg_get_expr(d.adbin, d.adrelid), case t.typtype when 'd' then t.typbasetype else 0 end, t.typtypmod, c.relhasoids, attidentity, c.relhassubclass from (((pg_catalog.pg_class c inner join pg_catalog.pg_namespace n on n.oid = c.relnamespace and c.oid = 52864) inner join pg_catalog.pg_attribute a on (not a.attisdropped) and a.attnum > 0 and a.attrelid = c.oid) inner join pg_catalog.pg_type t on t.oid = a.atttypid) left outer join pg_attrdef d on a.atthasdef and d.adrelid = a.attrelid and d.adnum = a.attnum order by n.nspname, c.relname, attnum
Date: 2021-07-26 19:27:49 Database: acaweb_fx Application: User: postgres Remote:
6 1 ERROR: canceling autovacuum task
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 26 19 1 - ERROR: canceling autovacuum task
Context: while vacuuming index "pk_relevance_autochartist_results" of relation "public.relevance_autochartist_results" automatic vacuum of table "acaweb_fx.public.relevance_autochartist_results"
Date: 2021-07-26 19:22:19
7 1 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 26 19 1 - FATAL: connection to client lost
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 19:18:08 Database: acaweb_fx Application: User: postgres Remote:
8 1 LOG: process ... still waiting for ExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 26 19 1 - LOG: process 5554 still waiting for ExclusiveLock on relation 52717 of database 51448 after 1000.042 ms
Detail: Processes holding the lock: 999, 3285, 3853, 1699. Wait queue: 5554.
Context: SQL statement "REFRESH MATERIALIZED VIEW CONCURRENTLY relevance_autochartist_results" PL/pgSQL function updateresultsmaterializedview() line 5 at SQL statement
Statement: select updateresultsmaterializedview()Date: 2021-07-26 19:22:19 Database: acaweb_fx Application: User: postgres Remote: