-
Global information
- Generated on Sun Jul 25 23:59:35 2021
- Log file: /home/postgres/pg_data/data/pg_log/postgresql-2021-07-26_010000.log, ..., /home/postgres/pg_data/data/pg_log/postgresql-2021-07-26_015350.log
- Parsed 147,242 log entries in 34s
- Log start from 2021-07-26 01:00:00 to 2021-07-26 01:59:01
-
Overview
Global Stats
- 4,487 Number of unique normalized queries
- 40,557 Number of queries
- 1d7h39m37s Total query duration
- 2021-07-26 01:00:00 First query
- 2021-07-26 01:59:01 Last query
- 124 queries/s at 2021-07-26 01:26:01 Query peak
- 1d7h39m37s Total query duration
- 22s296ms Prepare/parse total duration
- 33s906ms Bind total duration
- 1d7h38m41s Execute total duration
- 3,839 Number of events
- 12 Number of unique normalized events
- 3,414 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
- 86 Number temporary file
- 23.20 MiB Max size of temporary file
- 6.67 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
- 40,557 Average queries per session
- 1d7h39m37s 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
- 124 queries/s Query Peak
- 2021-07-26 01:26:01 Date
SELECT Traffic
Key values
- 25 queries/s Query Peak
- 2021-07-26 01:00:07 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 118 queries/s Query Peak
- 2021-07-26 01:26:01 Date
Queries duration
Key values
- 1d7h39m37s 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 01 40,557 50ms 1h30m28s 2s808ms 1h21m51s 1h49m31s 4h30m13s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 26 01 16,209 26 4s973ms 24m23s 1h10m18s 2h12s Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 26 01 20,840 2,969 71 59 559ms 54s666ms 5m20s 20m59s Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 26 01 79 13,755 174.11 0.19% Day Hour Count Average / Second Jul 26 01 0 0.00/s Day Hour Count Average Duration Average idle time Jul 26 01 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 01 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 26 01 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 26 01 0 0s Day Hour Mean distance Mean estimate Jul 26 01 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 23.20 MiB Temp Files size Peak
- 2021-07-26 01:38:22 Date
Number of temporary files
Key values
- 2 per second Temp Files Peak
- 2021-07-26 01:21:54 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 26 01 86 573.71 MiB 6.67 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 10 51.29 MiB 4.16 MiB 5.42 MiB 5.13 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 > 511783730 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:34:13 Duration: 0ms Database: acaweb_fx User: postgres
2 5 22.33 MiB 3.91 MiB 4.61 MiB 4.47 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, $4, $5, $6, $7, $8, $9)) AND ($10 = 0 OR s.exchange in ($11)) AND ($12 = 0 OR s.symbol in ($13)) AND ($14 = 0 OR p.patternname in ($15)) AND ($16 = 0 OR kr.patternclassid in ($17, $18)) AND ($19 = 0 OR kr.patternlengthbars <= $20) ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = $21 OR relevant = 1) AND ($22 = 0 OR age <= $23) ORDER BY identified DESC, length DESC;
Date: 2021-07-26 01:58:17 Duration: 0ms Database: acaweb_fx User: postgres
3 5 26.76 MiB 5.22 MiB 5.41 MiB 5.35 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 01:58:55 Duration: 0ms Database: acaweb_fx User: postgres
4 4 17.69 MiB 4.16 MiB 5.21 MiB 4.42 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 > 517253307 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:29:23 Duration: 0ms Database: acaweb_fx User: postgres
5 2 3.34 MiB 1.67 MiB 1.67 MiB 1.67 MiB 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 = ?) sub where result_uid = sub.resultuid;-
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 = 'cp') sub WHERE result_uid = sub.resultuid;
Date: 2021-07-26 01:48:28 Duration: 47s69ms Database: acaweb_fx User: postgres
-
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 = 'cp') sub WHERE result_uid = sub.resultuid;
Date: 2021-07-26 01:37:22 Duration: 45s940ms Database: acaweb_fx User: postgres
-
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 = 'cp') sub WHERE result_uid = sub.resultuid;
Date: 2021-07-26 01:42:28 Duration: 42s860ms Database: acaweb_fx User: postgres
6 2 10.51 MiB 5.22 MiB 5.29 MiB 5.25 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.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice = - 1 AND a.resultuid > 61304519 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:26:13 Duration: 0ms Database: acaweb_fx User: postgres
7 1 5.29 MiB 5.29 MiB 5.29 MiB 5.29 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.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61321954 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:26:13 Duration: 0ms Database: acaweb_fx User: postgres
8 1 4.22 MiB 4.22 MiB 4.22 MiB 4.22 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 '%cl-oil%' 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 01:05:20 Duration: 0ms Database: acaweb_fx User: postgres
9 1 5.59 MiB 5.59 MiB 5.59 MiB 5.59 MiB select stats_createsummarytables_chartpattens (cast(? as int));-
select stats_createSummaryTables_ChartPattens (cast(4445 as int));
Date: 2021-07-26 01:01:49 Duration: 3m1s Database: acaweb_fx User: postgres
-
select stats_createSummaryTables_ChartPattens (cast(4446 as int));
Date: 2021-07-26 01:46:22 Duration: 0ms Database: acaweb_fx User: postgres
10 1 14.08 MiB 14.08 MiB 14.08 MiB 14.08 MiB select distinct ss.statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where ss.statsid in ( select statsid from stats where (? = ? or brokerid = ?)) and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ? and (? = ? or statsid >= ?) order by ss.statsid;-
select distinct ss.statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where ss.statsid in ( select statsid from stats where (0 = 0 or brokerid = 0)) and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' and (0 = 0 OR statsid >= 0) order by ss.statsid;
Date: 2021-07-26 01:27:14 Duration: 34s4ms Database: acaweb_fx User: postgres
-
select distinct ss.statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where ss.statsid in ( select statsid from stats where (0 = 0 or brokerid = 0)) and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' and (0 = 0 OR statsid >= 0) order by ss.statsid;
Date: 2021-07-26 01:27:13 Duration: 0ms Database: acaweb_fx User: postgres
11 1 5.30 MiB 5.30 MiB 5.30 MiB 5.30 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 01:50:46 Duration: 0ms Database: acaweb_fx User: postgres
12 1 4.16 MiB 4.16 MiB 4.16 MiB 4.16 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 '%eurusd%' AND timegranularity = 60))) 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 01:05:20 Duration: 0ms Database: acaweb_fx User: postgres
13 1 5.67 MiB 5.67 MiB 5.67 MiB 5.67 MiB select updateresultsmaterializedview ();-
select updateresultsmaterializedview ();
Date: 2021-07-26 01:55:54 Duration: 8m22s Database: acaweb_fx User: postgres
-
select updateresultsmaterializedview ();
Date: 2021-07-26 01:47:32 Duration: 0ms Database: acaweb_fx User: postgres
14 1 1.87 MiB 1.87 MiB 1.87 MiB 1.87 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 01:03:37 Duration: 2m30s 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 01:33:14 Duration: 54s807ms 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 01:49:42 Duration: 50s133ms Database: acaweb_fx User: postgres
15 1 4.16 MiB 4.16 MiB 4.16 MiB 4.16 MiB ) 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 '%eurcad%' 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 & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice = - 1 AND a.resultuid > 61320457 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:37:23 Duration: 0ms Database: acaweb_fx User: postgres
16 1 5.22 MiB 5.22 MiB 5.22 MiB 5.22 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 '%usdchf%' AND timegranularity <= 1440)) OR ((symbol ilike '%usdcad%' 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 & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61298808 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:42:36 Duration: 0ms Database: acaweb_fx User: postgres
Queries generating the largest temporary files
Rank Size Query 1 14.08 MiB select distinct ss.statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where ss.statsid in ( select statsid from stats where (0 = 0 or brokerid = 0)) and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' and (0 = 0 OR statsid >= 0) order by ss.statsid;[ Date: 2021-07-26 01:27:13 - Database: acaweb_fx - User: postgres ]
2 5.67 MiB select updateresultsmaterializedview ();[ Date: 2021-07-26 01:51:02 - Database: acaweb_fx - User: postgres ]
3 5.59 MiB select stats_createSummaryTables_ChartPattens (cast(4446 as int));[ Date: 2021-07-26 01:46:22 - Database: acaweb_fx - User: postgres ]
4 5.42 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 > 517186599 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 01:40:16 - Database: acaweb_fx - User: postgres ]
5 5.41 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 01:07:23 - Database: acaweb_fx - User: postgres ]
6 5.41 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 01:15:24 - Database: acaweb_fx - User: postgres ]
7 5.41 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 01:32:06 - Database: acaweb_fx - User: postgres ]
8 5.30 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 > 511783730 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 01:34:13 - Database: acaweb_fx - User: postgres ]
9 5.30 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 > 511783730 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 01:42:36 - Database: acaweb_fx - User: postgres ]
10 5.30 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, qtp DESC LIMIT 50;[ Date: 2021-07-26 01:50:46 - Database: acaweb_fx - User: postgres ]
11 5.30 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 01:58:55 - Database: acaweb_fx - User: postgres ]
12 5.29 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 > 504322403 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 01:01:33 - Database: acaweb_fx - User: postgres ]
13 5.29 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 > 501346979 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 01:09:33 - Database: acaweb_fx - User: postgres ]
14 5.29 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 > 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 01:17:33 - Database: acaweb_fx - User: postgres ]
15 5.29 MiB )) AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61321954 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 01:26:13 - Database: acaweb_fx - User: postgres ]
16 5.22 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 > 516855835 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 01:17:33 - Database: acaweb_fx - User: postgres ]
17 5.22 MiB )) AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice = - 1 AND a.resultuid > 61304519 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 01:26:13 - Database: acaweb_fx - User: postgres ]
18 5.22 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 01:34:13 - Database: acaweb_fx - User: postgres ]
19 5.22 MiB ) OR ((symbol ilike '%usdchf%' AND timegranularity <= 1440)) OR ((symbol ilike '%usdcad%' 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 & 63 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND PatternEndPrice > - 1 AND a.resultuid > 61298808 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;[ Date: 2021-07-26 01:42:36 - Database: acaweb_fx - User: postgres ]
20 5.22 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 > 501346979 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;[ Date: 2021-07-26 01:50:46 - Database: acaweb_fx - User: postgres ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 26 01 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- AccessExclusiveLock Main Lock Type
- 3,434 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 939 26m3s 1s3ms 3s678ms 1s665ms 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 1010371, '2021-07-26 02:15:00'::timestamp without time zone, 5.72194, 5.72334, 5.72194, 5.72333, 94, 0, '2021-07-26 01:31:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1010371 AND pricedatetime = '2021-07-26 02:15:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:12 Database: acaweb_fx User: postgres
2 688 20m29s 1s2ms 3s855ms 1s786ms 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 1016037, '2021-07-26 01:00:00'::timestamp without time zone, 0.73652, 0.7367, 0.73629, 0.7367, 190, 0, '2021-07-26 01:31:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1016037 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:12 Database: acaweb_fx User: postgres
3 633 19m11s 1s 3s769ms 1s819ms 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 962193, '2021-07-26 00:00:00'::timestamp without time zone, 7.7689, 7.769, 7.7688, 7.769, 124, 0, '2021-07-26 01:00:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 962193 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:00:15 Database: acaweb_fx User: postgres
4 14 16m14s 12s705ms 2m15s 1m9s select datetimeupdate from latest_candle_datetime_per_receng where recognitionengine ilike ?;-
SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ADSSECURITIES - 1';
Date: 2021-07-26 01:04:18 Database: acaweb_fx User: postgres
-
SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';
Date: 2021-07-26 01:04:18 Database: acaweb_fx User: postgres
-
SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';
Date: 2021-07-26 01:04:18 Database: acaweb_fx User: postgres
5 50 1m24s 1s30ms 3s81ms 1s690ms 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 969060, '2021-07-26 02:00:00'::timestamp without time zone, 10.42454, 10.43229, 10.41967, 10.42525, 2412, 0, '2021-07-26 01:31:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 969060 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 969060, '2021-07-26 02:15:00'::timestamp without time zone, 10.42525, 10.4316, 10.423, 10.42578, 2755, 0, '2021-07-26 01:31:11'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 969060 AND pricedatetime = '2021-07-26 02:15:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:12 Database: acaweb_fx User: postgres
6 28 54s861ms 1s85ms 3s40ms 1s959ms 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 (960563, '2021-07-25 22:30', 120.207, 120.225, 120.186, 120.207, 0, 0, '2021-07-26 01:02');
Date: 2021-07-26 01:02:58 Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960568, '2021-07-25 22:30', 0.85547, 0.85564, 0.85547, 0.85562, 0, 0, '2021-07-26 01:03');
Date: 2021-07-26 01:03:33 Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960570, '2021-07-25 22:30', 1.68635, 1.68719, 1.68635, 1.68719, 0, 0, '2021-07-26 01:03');
Date: 2021-07-26 01:03:51 Database: acaweb_fx User: postgres
7 29 52s767ms 1s77ms 2s669ms 1s819ms 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 (960525, '2021-07-25 22:45', 120.216, 120.225, 120.207, 120.207, 0, 0, '2021-07-26 01:02');
Date: 2021-07-26 01:02:54 Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960530, '2021-07-25 22:45', 0.8556, 0.85564, 0.85557, 0.85562, 0, 0, '2021-07-26 01:03');
Date: 2021-07-26 01:03:30 Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960531, '2021-07-25 22:45', 130.158, 130.158, 130.148, 130.151, 0, 0, '2021-07-26 01:03');
Date: 2021-07-26 01:03:39 Database: acaweb_fx User: postgres
8 28 51s521ms 1s82ms 3s483ms 1s840ms 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 (960626, '2021-07-25 22:00', 110.547, 110.559, 110.533, 110.542, 0, 0, '2021-07-26 01:05');
Date: 2021-07-26 01:05:16 Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960595, '2021-07-25 22:00', 1.05555, 1.0556, 1.05515, 1.05542, 0, 0, '2021-07-26 01:02');
Date: 2021-07-26 01:02:27 Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960601, '2021-07-25 22:00', 120.165, 120.225, 120.154, 120.207, 0, 0, '2021-07-26 01:02');
Date: 2021-07-26 01:03:01 Database: acaweb_fx User: postgres
9 3 40s205ms 2s795ms 20s363ms 13s401ms select extract(epoch from datetimeupdate) from latest_candle_datetime_per_receng where recognitionengine ilike ?;-
SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 1';
Date: 2021-07-26 01:04:18 Database: acaweb_fx User: postgres
-
SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 1';
Date: 2021-07-26 01:18:15 Database: acaweb_fx User: postgres
-
SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 1';
Date: 2021-07-26 01:48:01 Database: acaweb_fx User: postgres
10 9 18s176ms 1s253ms 3s94ms 2s19ms 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 982412, '2021-07-26 01:00:00'::timestamp without time zone, 15665, 15671.2, 15659.5, 15668.8, 498, 0, '2021-07-26 01:01:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982412 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:12 Database: acaweb_fx User: postgres
11 8 15s751ms 1s284ms 2s664ms 1s968ms 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 1019815, '2021-07-26 01:00:00'::timestamp without time zone, 34942, 34950, 34939, 34948, 89, 0, '2021-07-26 01:31:18'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1019815 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:20 Database: acaweb_fx User: postgres
12 7 14s881ms 1s144ms 3s349ms 2s125ms 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 1019816, '2021-07-26 00:00:00'::timestamp without time zone, 34938, 34951, 34922, 34940, 332, 0, '2021-07-26 01:01:48'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1019816 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:50 Database: acaweb_fx User: postgres
13 8 12s864ms 1s80ms 2s813ms 1s608ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1019814, '2021-07-26 00:45:00'::timestamp without time zone, 34949, 34949, 34939, 34940, 36, 0, '2021-07-26 01:01:42'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1019814 AND pricedatetime = '2021-07-26 00:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:45 Database: acaweb_fx User: postgres
14 7 10s520ms 1s84ms 2s256ms 1s502ms 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 1021209, '2021-07-26 02:30:00'::timestamp without time zone, 15670, 15670.9, 15662.9, 15662.9, 159, 0, '2021-07-26 01:46:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1021209 AND pricedatetime = '2021-07-26 02:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:46:17 Database: acaweb_fx User: postgres
15 7 10s252ms 1s127ms 1s948ms 1s464ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 983820, '2021-07-26 01:45:00'::timestamp without time zone, 35060.5, 35060.5, 35049, 35050.5, 130, 0, '2021-07-26 01:00:19'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 983820 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:00:20 Database: acaweb_fx User: postgres
16 5 7s865ms 1s9ms 2s289ms 1s573ms 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 1002936, '2021-07-26 01:45:00'::timestamp without time zone, 1800.81, 1801, 1800.58, 1800.77, 103, 0, '2021-07-26 01:00:15'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002936 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:00:16 Database: acaweb_fx User: postgres
17 4 6s212ms 1s295ms 1s840ms 1s553ms insert into t1440 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t1440 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T1440 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975944, '2021-07-23 00:00:00'::timestamp without time zone, 4066.65, 4114.8, 4061.7, 4103.2, 98472, 0, '2021-07-26 01:31:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T1440 WHERE symbolid = 975944 AND pricedatetime = '2021-07-23 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:35 Database: acaweb_fx User: postgres
18 3 5s704ms 1s149ms 2s621ms 1s901ms 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 1023129, '2021-07-26 01:45:00'::timestamp without time zone, 4411.5, 4411.7, 4410.7, 4411, 54, 0, '2021-07-26 01:01:19'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1023129 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:21 Database: acaweb_fx User: postgres
19 3 5s514ms 1s561ms 2s56ms 1s838ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1023130, '2021-07-26 01:30:00'::timestamp without time zone, 4410, 4411.7, 4409.5, 4411, 144, 0, '2021-07-26 01:01:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1023130 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:23 Database: acaweb_fx User: postgres
20 3 5s465ms 1s127ms 2s231ms 1s821ms 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 982421, '2021-07-26 01:30:00'::timestamp without time zone, 7026.3, 7027.2, 7025, 7025.5, 176, 0, '2021-07-26 01:02:35'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 982421 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:02:38 Database: acaweb_fx User: postgres
21 2 5s458ms 2s531ms 2s926ms 2s729ms 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 982762, '2021-07-26 01:00:00'::timestamp without time zone, 2206.2, 2208, 2204.7, 2206.8, 643, 0, '2021-07-26 01:02:46'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982762 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:02:49 Database: acaweb_fx User: postgres
22 3 5s328ms 1s220ms 2s687ms 1s776ms 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 1023131, '2021-07-26 01:00:00'::timestamp without time zone, 4409.6, 4411.7, 4407.7, 4411, 540, 0, '2021-07-26 01:01:23'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1023131 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:24 Database: acaweb_fx User: postgres
23 2 5s28ms 1s687ms 3s341ms 2s514ms 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 1017050, '2021-07-23 20:00:00'::timestamp without time zone, 92.85, 92.87, 92.83, 92.84, 545, 0, '2021-07-26 01:01:56'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T240 WHERE symbolid = 1017050 AND pricedatetime = '2021-07-23 20:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:58 Database: acaweb_fx User: postgres
24 3 4s968ms 1s241ms 2s22ms 1s656ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1017048, '2021-07-23 22:00:00'::timestamp without time zone, 92.86, 92.86, 92.84, 92.84, 390, 0, '2021-07-26 01:01:52'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1017048 AND pricedatetime = '2021-07-23 22:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1017048, '2021-07-26 00:30:00'::timestamp without time zone, 92.83, 92.84, 92.83, 92.84, 8, 0, '2021-07-26 01:01:52'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1017048 AND pricedatetime = '2021-07-26 00:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:54 Database: acaweb_fx User: postgres
25 2 4s171ms 1s882ms 2s289ms 2s85ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002016, '2021-07-25 18:30:00'::timestamp without time zone, 35056, 35068, 35052, 35062, 129, 0, '2021-07-26 01:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002016 AND pricedatetime = '2021-07-25 18:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002016, '2021-07-25 18:45:00'::timestamp without time zone, 35063, 35065, 35056, 35057, 105, 0, '2021-07-26 01:03:16'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002016 AND pricedatetime = '2021-07-25 18:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:03:18 Database: acaweb_fx User: postgres
26 2 4s164ms 1s588ms 2s576ms 2s82ms 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 989576, '2021-07-26 00:30:00'::timestamp without time zone, 4402.25, 4404, 4401.75, 4403.25, 178, 0, '2021-07-26 01:00:37'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 989576 AND pricedatetime = '2021-07-26 00:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:00:38 Database: acaweb_fx User: postgres
27 2 3s925ms 1s492ms 2s432ms 1s962ms 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 01:30:00'::timestamp without time zone, 28231, 28236, 28218.5, 28228.5, 16, 0, '2021-07-26 01:03:46'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 977011 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:03:49 Database: acaweb_fx User: postgres
28 2 3s760ms 1s774ms 1s985ms 1s880ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1017049, '2021-07-23 22:00:00'::timestamp without time zone, 92.86, 92.86, 92.84, 92.84, 390, 0, '2021-07-26 01:01:54'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1017049 AND pricedatetime = '2021-07-23 22:00:00'::timestamp without time zone); INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1017049, '2021-07-26 00:00:00'::timestamp without time zone, 92.83, 92.84, 92.83, 92.84, 8, 0, '2021-07-26 01:01:54'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1017049 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:56 Database: acaweb_fx User: postgres
29 2 3s437ms 1s471ms 1s965ms 1s718ms 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 9.000000000000000000000000000000, - 1, 1, '2021-07-25 23:45:47'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 132, 2681.000000000000000000000000000000, '2021-07-25 18:15:00', '2021-07-23 14:15:00', '2021-07-23 12:00:00', '2021-07-21 21:45:00', '', '', '', '', '', '', 330, 2685.025000000000091000000000000000, '2021-07-25 19:00:00'::timestamp without time zone, '2021-07-25 19:00:00', 0.000000000000000000000000000000, 4.100000000000000533000000000000, - 1, 920601, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|920601|2681|1|2021-07-25 19:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-21 21:45:00', 2740.000000000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|920601|2681|1|2021-07-25 19:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;
Date: 2021-07-26 01:46:15 Database: acaweb_fx User: postgres
30 2 2s567ms 1s37ms 1s530ms 1s283ms 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 976975, '2021-07-26 01:45:00'::timestamp without time zone, 15110, 15116.25, 15109.25, 15114, 268, 0, '2021-07-26 01:03:52'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 976975 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:03:54 Database: acaweb_fx User: postgres
31 1 2s150ms 2s150ms 2s150ms 2s150ms 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 982760, '2021-07-26 01:45:00'::timestamp without time zone, 2208, 2208, 2206.4, 2206.8, 97, 0, '2021-07-26 01:02:40'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 982760 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:02:43 Database: acaweb_fx User: postgres
32 1 2s86ms 2s86ms 2s86ms 2s86ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920601, '2021-07-25 18:30:00'::timestamp without time zone, 2668, 2672, 2663.5, 2672, 13, 0, '2021-07-26 01:03:01'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920601 AND pricedatetime = '2021-07-25 18:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:03:03 Database: acaweb_fx User: postgres
33 1 2s28ms 2s28ms 2s28ms 2s28ms 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 1001976, '2021-07-25 18:30:00'::timestamp without time zone, 15112.2, 15118.3, 15111.1, 15117.3, 509, 0, '2021-07-26 01:02:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1001976 AND pricedatetime = '2021-07-25 18:30:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1001976, '2021-07-25 18:45:00'::timestamp without time zone, 15117.4, 15123.7, 15117, 15119.8, 479, 0, '2021-07-26 01:02:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1001976 AND pricedatetime = '2021-07-25 18:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:02:14 Database: acaweb_fx User: postgres
34 1 1s896ms 1s896ms 1s896ms 1s896ms 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 (960599, '2021-07-25 22:00', 88, 88.005, 87.939, 87.939, 0, 0, '2021-07-26 01:02');
Date: 2021-07-26 01:02:51 Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimewritten) VALUES (960599, '2021-07-25 22:00', 88, 88.005, 87.939, 87.939, 0, 0, '2021-07-26 01:02');
Date: 2021-07-26 01:02:51 Database: acaweb_fx User: postgres
35 1 1s646ms 1s646ms 1s646ms 1s646ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975941, '2021-07-23 22:30:00'::timestamp without time zone, 4106.7, 4106.7, 4102.7, 4103.2, 402, 0, '2021-07-26 01:31:30'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 975941 AND pricedatetime = '2021-07-23 22:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975941, '2021-07-26 02:00:00'::timestamp without time zone, 4100, 4101.95, 4100, 4101, 35, 0, '2021-07-26 01:31:30'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 975941 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:32 Database: acaweb_fx User: postgres
36 1 1s548ms 1s548ms 1s548ms 1s548ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982417, '2021-07-26 01:00:00'::timestamp without time zone, 27059, 27073.4, 27052, 27068.5, 478, 0, '2021-07-26 01:01:17'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 982417 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:01:19 Database: acaweb_fx User: postgres
37 1 1s495ms 1s495ms 1s495ms 1s495ms 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 1023081, '2021-07-26 01:00:00'::timestamp without time zone, 15110.6, 15125.2, 15108, 15123, 1455, 0, '2021-07-26 01:00:53'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1023081 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:00:55 Database: acaweb_fx User: postgres
38 1 1s454ms 1s454ms 1s454ms 1s454ms 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 920813, '2021-07-25 18:45:00'::timestamp without time zone, 4.003, 4.008, 3.999, 3.999, 147, 0, '2021-07-26 01:16:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920813 AND pricedatetime = '2021-07-25 18:45:00'::timestamp without time zone); INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920813, '2021-07-25 19:00:00'::timestamp without time zone, 4, 4.003, 3.999, 4.003, 51, 0, '2021-07-26 01:16:10'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920813 AND pricedatetime = '2021-07-25 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:16:12 Database: acaweb_fx User: postgres
39 1 1s325ms 1s325ms 1s325ms 1s325ms 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 920805, '2021-07-25 18:00:00'::timestamp without time zone, 1057.1, 1062, 1057, 1060.1, 178, 0, '2021-07-26 01:16:26'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 920805 AND pricedatetime = '2021-07-25 18:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:16:27 Database: acaweb_fx User: postgres
40 1 1s322ms 1s322ms 1s322ms 1s322ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 975925, '2021-07-26 01:45:00'::timestamp without time zone, 35060, 35060, 35049, 35051.5, 143, 0, '2021-07-26 01:04:42'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 975925 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:04:44 Database: acaweb_fx User: postgres
41 1 1s220ms 1s220ms 1s220ms 1s220ms 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 920803, '2021-07-25 19:00:00'::timestamp without time zone, 1060, 1060.1, 1060, 1060.1, 6, 0, '2021-07-26 01:31:19'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 920803 AND pricedatetime = '2021-07-25 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:20 Database: acaweb_fx User: postgres
42 1 1s214ms 1s214ms 1s214ms 1s214ms 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 989575, '2021-07-26 00:45:00'::timestamp without time zone, 4403.75, 4404, 4403, 4403.25, 74, 0, '2021-07-26 01:00:35'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 989575 AND pricedatetime = '2021-07-26 00:45:00'::timestamp without time zone); ;
Date: 2021-07-26 01:00:37 Database: acaweb_fx User: postgres
43 1 1s195ms 1s195ms 1s195ms 1s195ms 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 977010, '2021-07-26 02:00:00'::timestamp without time zone, 28236, 28238.5, 28221, 28231, 20, 0, '2021-07-26 01:16:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 977010 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:16:35 Database: acaweb_fx User: postgres
44 1 1s173ms 1s173ms 1s173ms 1s173ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 920415, '2021-07-25 18:00:00'::timestamp without time zone, 2675, 2680, 2663.5, 2667.5, 33, 0, '2021-07-26 01:16:21'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 920415 AND pricedatetime = '2021-07-25 18:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:16:23 Database: acaweb_fx User: postgres
45 1 1s91ms 1s91ms 1s91ms 1s91ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?, ?.?, ?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); ;-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 983821, '2021-07-26 01:30:00'::timestamp without time zone, 35050, 35061.5, 35046, 35050.5, 256, 0, '2021-07-26 01:00:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 983821 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone); ;
Date: 2021-07-26 01:00:22 Database: acaweb_fx User: postgres
46 1 1s3ms 1s3ms 1s3ms 1s3ms 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 919535, '2021-07-25 19:00:00'::timestamp without time zone, 1801, 1801.8, 1800.4, 1801.4, 420, 0, '2021-07-26 01:31:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 919535 AND pricedatetime = '2021-07-25 19:00:00'::timestamp without time zone); ;
Date: 2021-07-26 01:31:14 Database: acaweb_fx User: postgres
47 1 1s 1s 1s 1s select updateresultsmaterializedview ();-
select updateresultsmaterializedview ();
Date: 2021-07-26 01:55:54 Database: acaweb_fx User: postgres
-
select updateresultsmaterializedview ();
Date: 2021-07-26 01:47:32 Database: acaweb_fx User: postgres
Queries that waited the most
Rank Wait time Query 1 2m15s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';[ Date: 2021-07-26 01:04:18 - Database: acaweb_fx - User: postgres ]
2 2m15s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ADSSECURITIES - 1';[ Date: 2021-07-26 01:04:18 - Database: acaweb_fx - User: postgres ]
3 2m15s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';[ Date: 2021-07-26 01:04:18 - Database: acaweb_fx - User: postgres ]
4 2m15s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ADSSECURITIES - 2';[ Date: 2021-07-26 01:04:18 - Database: acaweb_fx - User: postgres ]
5 2m15s SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';[ Date: 2021-07-26 01:04:18 - Database: acaweb_fx - User: postgres ]
6 55s859ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';[ Date: 2021-07-26 01:18:15 - Database: acaweb_fx - User: postgres ]
7 55s859ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';[ Date: 2021-07-26 01:18:15 - Database: acaweb_fx - User: postgres ]
8 55s854ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';[ Date: 2021-07-26 01:18:15 - Database: acaweb_fx - User: postgres ]
9 30s474ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';[ Date: 2021-07-26 01:48:01 - Database: acaweb_fx - User: postgres ]
10 30s472ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';[ Date: 2021-07-26 01:48:01 - Database: acaweb_fx - User: postgres ]
11 30s470ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';[ Date: 2021-07-26 01:48:01 - Database: acaweb_fx - User: postgres ]
12 20s363ms SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 1';[ Date: 2021-07-26 01:04:18 - Database: acaweb_fx - User: postgres ]
13 17s46ms SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'GIVCAPITAL - 1';[ Date: 2021-07-26 01:18:15 - Database: acaweb_fx - User: postgres ]
14 13s6ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1';[ Date: 2021-07-26 01:32:28 - Database: acaweb_fx - User: postgres ]
15 12s707ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 2';[ Date: 2021-07-26 01:32:28 - Database: acaweb_fx - User: postgres ]
16 12s705ms SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1';[ Date: 2021-07-26 01:32:28 - Database: acaweb_fx - User: postgres ]
17 3s855ms INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002022, '2021-07-25 18:30:00'::timestamp without time zone, 7017.4, 7017.4, 7017.4, 7017.4, 2663, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1002022 AND pricedatetime = '2021-07-25 18:30:00'::timestamp without time zone); ;[ Date: 2021-07-26 01:05:16 - Database: acaweb_fx - User: postgres ]
18 3s769ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961933, '2021-07-26 00:00:00'::timestamp without time zone, 1.1773, 1.1773, 1.1769, 1.1773, 70, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 961933 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 01:05:16 - Database: acaweb_fx - User: postgres ]
19 3s678ms INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010176, '2021-07-26 01:45:00'::timestamp without time zone, 1800.94, 1801.06, 1800.65, 1800.82, 313, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1010176 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone); ;[ Date: 2021-07-26 01:05:16 - Database: acaweb_fx - User: postgres ]
20 3s644ms INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022886, '2021-07-26 01:00:00'::timestamp without time zone, 2153.22, 2170.3, 2153.22, 2169.09, 117355, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1022886 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone); ;[ Date: 2021-07-26 01:05:16 - Database: acaweb_fx - User: postgres ]
-
Queries
Queries by type
Key values
- 16,209 Total read queries
- 24,340 Total write queries
Queries by database
Key values
- acaweb_fx Main database
- 40,557 Requests
- 1d7h38m41s (acaweb_fx)
- Main time consuming database
Queries by user
Key values
- postgres Main user
- 39,346 Requests
User Request type Count Duration pgperfstats Total 1,211 56m23s insert 605 19m30s select 606 36m53s postgres Total 39,346 1d6h42m18s copy from 59 30s584ms copy to 26 1m16s cte 364 5h10m33s ddl 11 19s701ms delete 71 1m29s insert 20,235 3h1m19s others 8 18m50s select 15,603 21h47m36s update 2,969 20m21s Duration by user
Key values
- 1d6h42m18s (postgres) Main time consuming user
User Request type Count Duration pgperfstats Total 1,211 56m23s insert 605 19m30s select 606 36m53s postgres Total 39,346 1d6h42m18s copy from 59 30s584ms copy to 26 1m16s cte 364 5h10m33s ddl 11 19s701ms delete 71 1m29s insert 20,235 3h1m19s others 8 18m50s select 15,603 21h47m36s update 2,969 20m21s Queries by host
Key values
- unknown Main host
- 40,557 Requests
- 1d7h38m41s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 40,557 Requests
- 1d7h38m41s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 1 per second Cancelled query Peak
- 2021-07-26 01:03:28 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 16,468 100-500ms duration
Slowest individual queries
Rank Duration Query 1 1h30m28s select updateageforrelevantresults ();[ Date: 2021-07-26 01:47:31 - Database: acaweb_fx - User: postgres ]
2 44m37s 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 01:38:28 - Database: acaweb_fx - User: postgres - Bind query: yes ]
3 42m22s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4748 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4748 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:41:44 - Database: acaweb_fx - User: postgres ]
4 26m22s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4747 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4747 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:44 - Database: acaweb_fx - User: postgres ]
5 26m9s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:30 - Database: acaweb_fx - User: postgres ]
6 26m9s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4738 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4738 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:31 - Database: acaweb_fx - User: postgres ]
7 25m59s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4749 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4749 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:21 - Database: acaweb_fx - User: postgres ]
8 25m56s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4761 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4761 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:30 - Database: acaweb_fx - User: postgres ]
9 25m56s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4766 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4766 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:30 - Database: acaweb_fx - User: postgres ]
10 25m42s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 'cp' 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 = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:17 - Database: acaweb_fx - User: postgres ]
11 25m38s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4755 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4755 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:11 - Database: acaweb_fx - User: postgres ]
12 25m29s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4757 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4757 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:02 - Database: acaweb_fx - User: postgres ]
13 25m19s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 'cp' 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 = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:25:16 - Database: acaweb_fx - User: postgres ]
14 24m36s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4745 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4745 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:23:58 - Database: acaweb_fx - User: postgres ]
15 23m49s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4779 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4779 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:23:35 - Database: acaweb_fx - User: postgres ]
16 23m34s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4774 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4774 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:23:21 - Database: acaweb_fx - User: postgres ]
17 23m27s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4789 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4789 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:24:17 - Database: acaweb_fx - User: postgres ]
18 20m9s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:47:26 - Database: acaweb_fx - User: postgres ]
19 18m56s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:46:11 - Database: acaweb_fx - User: postgres ]
20 18m56s select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';[ Date: 2021-07-26 01:46:11 - Database: acaweb_fx - User: postgres ]
Time consuming queries
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 7h7m17s 67 73ms 42m22s 6m22s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, ?, ?) as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ? group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = ? and atbaridentified >= (current_timestamp - interval ?) and atbaridentified <= current_timestamp and type = ? and pattern not ilike ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 26 01 67 7h7m17s 6m22s [ User: postgres - Total duration: 7h7m17s - Times executed: 67 ]
-
select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4748 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4748 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:41:44 Duration: 42m22s Database: acaweb_fx User: postgres
-
select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4747 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4747 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:25:44 Duration: 26m22s Database: acaweb_fx User: postgres
-
select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:25:30 Duration: 26m9s Database: acaweb_fx User: postgres
2 4h44s 57 60ms 20m9s 4m13s 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 01 57 4h44s 4m13s [ User: postgres - Total duration: 4h44s - Times executed: 57 ]
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:47:26 Duration: 20m9s 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 = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:46:11 Duration: 18m56s 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 = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:46:11 Duration: 18m56s Database: acaweb_fx User: postgres
3 2h33m35s 55 102ms 44m37s 2m47s 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 #3
Day Hour Count Duration Avg duration Jul 26 01 55 2h33m35s 2m47s [ User: postgres - Total duration: 2h33m35s - Times executed: 55 ]
-
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 01:38:28 Duration: 44m37s 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 ('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 01:55:21 Duration: 15m10s 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 01:55:18 Duration: 15m7s Database: acaweb_fx User: postgres Bind query: yes
4 2h10m10s 58 7s208ms 10m48s 2m14s (( 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 01 58 2h10m10s 2m14s [ User: postgres - Total duration: 2h10m10s - Times executed: 58 ]
-
(( 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 = '558' 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 = '558' 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 = '558' 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 = '558' 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 = '558' 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 = '558' 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 01:04:50 Duration: 10m48s Database: acaweb_fx User: postgres Bind query: yes
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 01:07:38 Duration: 10m21s 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 = '692' 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 = '692' 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 = '692' 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 = '692' 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 = '692' 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 = '692' 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 01:07:46 Duration: 7m32s Database: acaweb_fx User: postgres Bind query: yes
5 1h59m59s 56 455ms 8m1s 2m8s 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 #5
Day Hour Count Duration Avg duration Jul 26 01 56 1h59m59s 2m8s [ User: postgres - Total duration: 1h59m59s - Times executed: 56 ]
-
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 = '637' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 01:03:14 Duration: 8m1s 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 = '627' 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 ('240' = 0 OR s.symbol in ('#ADBE', '#AIRF', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#BP', '#CAT', '#CBKG', '#DAIGn', '#DBKGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#MSFT', '#NFLX', '#RDSa', '#TSLA', '#TWTR', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCJPY', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHJPY', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'GER_30', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCJPY', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NOKSEK', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', '#BP', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NOKSEK', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCJPY', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHJPY', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCJPY', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#AIRF', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#DBKGn', '#RDSa', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', 'GER_30', 'HKG_50', 'NAS100', 'SPX500', 'US30', '#ADBE', '#AMZN', '#APPL', '#BA', '#BABA', '#CAT', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#MSFT', '#NFLX', '#TSLA', '#TWTR', '#WMT', '#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 01:31:01 Duration: 7m54s 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 = '643' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 01:02:53 Duration: 7m28s Database: acaweb_fx User: postgres Bind query: yes
6 1h30m28s 1 1h30m28s 1h30m28s 1h30m28s select updateageforrelevantresults ();Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 26 01 1 1h30m28s 1h30m28s [ User: postgres - Total duration: 1h30m28s - Times executed: 1 ]
-
select updateageforrelevantresults ();
Date: 2021-07-26 01:47:31 Duration: 1h30m28s Database: acaweb_fx User: postgres
7 55m8s 3,384 50ms 3s977ms 977ms 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 #7
Day Hour Count Duration Avg duration Jul 26 01 3,384 55m8s 977ms [ User: postgres - Total duration: 55m8s - Times executed: 3384 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002911, '2021-07-26 01:45:00'::timestamp without time zone, 6.31602, 6.31602, 6.31499, 6.31504, 130, 0, '2021-07-26 01:05:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002911 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone);
Date: 2021-07-26 01:05:17 Duration: 3s977ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1009926, '2021-07-26 02:00:00'::timestamp without time zone, 120.209, 120.213, 120.2, 120.207, 151, 0, '2021-07-26 01:16:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1009926 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 01:16:18 Duration: 3s850ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010176, '2021-07-26 01:45:00'::timestamp without time zone, 1800.94, 1801.06, 1800.65, 1800.82, 313, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1010176 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s831ms Database: acaweb_fx User: postgres
8 50m4s 1,833 50ms 58s938ms 1s639ms 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 01 1,833 50m4s 1s639ms [ User: postgres - Total duration: 50m4s - Times executed: 1833 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 619 AND groupid = 4262 AND patternclassid = '1' AND patternlengthbars >= '0' 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 01:10:27 Duration: 58s938ms 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 = 689 AND groupid = 5123 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '65516909' 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 01:05:21 Duration: 34s936ms 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 = 689 AND groupid = 5123 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '65517353' 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 01:05:21 Duration: 34s932ms Database: acaweb_fx User: postgres Bind query: yes
9 36m53s 605 133ms 3m48s 3s657ms select distinct pricedatetime, high, low from t15_ps where pricedatetime <= current_timestamp and pricedatetime >= current_timestamp - interval ? and symbolid = ? order by pricedatetime asc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 26 01 605 36m53s 3s657ms [ User: pgperfstats - Total duration: 36m53s - Times executed: 605 ]
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1020914order by pricedatetime asc;
Date: 2021-07-26 01:08:25 Duration: 3m48s Database: acaweb_fx User: pgperfstats
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1026969order by pricedatetime asc;
Date: 2021-07-26 01:48:29 Duration: 1m17s Database: acaweb_fx User: pgperfstats
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1020524order by pricedatetime asc;
Date: 2021-07-26 01:00:47 Duration: 1m6s Database: acaweb_fx User: pgperfstats
10 34m51s 1,838 51ms 4s66ms 1s138ms 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 #10
Day Hour Count Duration Avg duration Jul 26 01 1,838 34m51s 1s138ms [ User: postgres - Total duration: 34m51s - Times executed: 1838 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002022, '2021-07-25 18:30:00'::timestamp without time zone, 7017.4, 7017.4, 7017.4, 7017.4, 2663, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1002022 AND pricedatetime = '2021-07-25 18:30:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 4s66ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 983786, '2021-07-26 01:30:00'::timestamp without time zone, 71.55, 71.58, 71.5, 71.56, 61, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 983786 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s816ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022795, '2021-07-26 01:30:00'::timestamp without time zone, 1.05527, 1.05558, 1.05522, 1.0553, 253, 0, '2021-07-26 01:03:35'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1022795 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);
Date: 2021-07-26 01:03:38 Duration: 3s781ms Database: acaweb_fx User: postgres
11 32m36s 132 50ms 9m24s 14s819ms 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 #11
Day Hour Count Duration Avg duration Jul 26 01 132 32m36s 14s819ms [ User: postgres - Total duration: 32m36s - Times executed: 132 ]
-
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 01:04:41 Duration: 9m24s 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 01:27:39 Duration: 6m16s 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 01:04:41 Duration: 3m42s Database: acaweb_fx User: postgres Bind query: yes
12 29m14s 12 6s781ms 9m25s 2m26s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((s.symbol ilike ? and timegranularity <= ?)) or ((s.symbol ilike ? and timegranularity = ?)) or ((s.symbol ilike ? and timegranularity = ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 26 01 12 29m14s 2m26s [ User: postgres - Total duration: 29m14s - Times executed: 12 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:04:41 Duration: 9m25s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:27:39 Duration: 6m16s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:04:41 Duration: 3m43s Database: acaweb_fx User: postgres Bind query: yes
13 28m9s 107 258ms 54s166ms 15s790ms 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 01 107 28m9s 15s790ms [ User: postgres - Total duration: 28m9s - Times executed: 107 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '986532' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:03:36 Duration: 54s166ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '986532' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:03:36 Duration: 53s366ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1010898' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:04:07 Duration: 51s679ms Database: acaweb_fx User: postgres Bind query: yes
14 27m27s 904 50ms 1m20s 1s822ms select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and breakout = ? and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 26 01 904 27m27s 1s822ms [ User: postgres - Total duration: 27m27s - Times executed: 904 ]
-
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 01:06:32 Duration: 1m20s 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 01:50:34 Duration: 1m4s 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 01:33:12 Duration: 43s578ms Database: acaweb_fx User: postgres Bind query: yes
15 27m14s 938 50ms 42s254ms 1s742ms select distinct a.resultuid as ruid, s.symbolid as sid, symbol as sym, longname, shortname, exchange as e, timegranularity as tg, p.patternid as pid, direction as d, patternstarttime as pst, patternendtime as pet, patternstartprice as psp, patternendprice as pep, pricex as px, timex as tx, pricea as pa, timea as ta, priceb as pb, timeb as tb, pricec as pc, timec as tc, priced as pd, timed as td, averagequality as aq, timequality as tq, errormargin as rq, (? - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, patternlengthbars as l, temporarypattern as tp, bandwidth as bw, qtytp as qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join fibonacci_results a on a.symbolid = s.symbolid inner join fibonaccipatterns p on a.pattern = p.patternname left outer join relevance_fibonacci_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and patternlengthbars >= ? and averagequality >= ?.? and (timequality >= ?.? or timequality = ?) and errormargin >= ?.? and ? - noise >= ?.? and s.nonliquid = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, averagequality desc limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 26 01 938 27m14s 1s742ms [ User: postgres - Total duration: 27m14s - Times executed: 938 ]
-
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 = 5135 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 > 61321484 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:24:25 Duration: 42s254ms 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 > 61318721 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:24:20 Duration: 41s768ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:28:39 Duration: 37s906ms Database: acaweb_fx User: postgres Bind query: yes
16 24m40s 883 58ms 4s58ms 1s676ms insert into t60 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t60 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 26 01 883 24m40s 1s676ms [ User: postgres - Total duration: 24m40s - Times executed: 883 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961933, '2021-07-26 00:00:00'::timestamp without time zone, 1.1773, 1.1773, 1.1769, 1.1773, 70, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 961933 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 4s58ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022886, '2021-07-26 01:00:00'::timestamp without time zone, 2153.22, 2170.3, 2153.22, 2169.09, 117355, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1022886 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s833ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1009988, '2021-07-26 01:00:00'::timestamp without time zone, 12.886, 12.89, 12.883, 12.888, 228, 0, '2021-07-26 01:03:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1009988 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone);
Date: 2021-07-26 01:03:38 Duration: 3s816ms Database: acaweb_fx User: postgres
17 20m52s 4,919 50ms 2s248ms 254ms 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 #17
Day Hour Count Duration Avg duration Jul 26 01 4,919 20m52s 254ms [ User: postgres - Total duration: 20m52s - Times executed: 4919 ]
-
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 '975801-1|44400.6042|44403.0417|44400.4583|44403|0.9221|0.92|0.9189|0.919', 975801, 2.000000000000000000000000000000, 'Descending Triangle', 4, '2021-07-25 23:04:47'::timestamp without time zone, - 1, 0.064561819326174788020000000000, - 1.000000000000000000000000000000, 0.000000000000000000000000000000, 0.206437417972749198700000000000, 0.142830564185437963700000000000, 0.918096766184523849200000000000, 0.918851152576884988600000000000, '2021-07-26 01:30:00'::timestamp without time zone, '2021-07-27 08:45:00'::timestamp without time zone, '2021-07-23 11:00:00'::timestamp without time zone, '2021-07-26 01:30:00'::timestamp without time zone, 0.919640000000000013000000000000, 0.919359999999999955000000000000, '2021-07-23 14:30:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-23 11:00:00'::timestamp without time zone, '2021-07-26 00:00:00'::timestamp without time zone, 0.922109999999999985200000000000, 0.919960000000000000000000000000, 0.918880000000000030100000000000, 0.918950000000000044600000000000, 0.000002692307692308249680000000, - 0.000102380952380951682100000000, 1.500716566302210175000000000000, 0.333651655179621198200000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 01:30:00'::timestamp without time zone, 0.919390000000000040600000000000, 29, 0, 0.002119999999999955254000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 14:30:00'::timestamp without time zone and resx1 = '2021-07-26 01:00:00'::timestamp without time zone and supportx0 = '2021-07-23 11:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:00:00'::timestamp without time zone and resy0 = 0.922109999999999985200000000000 and resy1 = 0.919960000000000000000000000000 and supporty0 = 0.918880000000000030100000000000 and supporty1 = 0.918950000000000044600000000000 and symbolid = 975801) or resultid = '975801-1|44400.6042|44403.0417|44400.4583|44403|0.9221|0.92|0.9189|0.919') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:05:16 Duration: 2s248ms 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 '1003003-1|44400.2917|44400.7917|44400.0417|44400.5417|73.823|73.842|73.46|73.47', 1003003, 2.000000000000000000000000000000, 'Rectangle', 4, '2021-07-25 23:29:05'::timestamp without time zone, - 1, 0.694468237785203168500000000000, - 1.000000000000000000000000000000, 0.481376204052025247200000000000, 0.347127899610881918200000000000, 0.337462209886642661200000000000, 73.248366670021539450000000000000, 73.391069445842305180000000000000, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-27 13:00:00'::timestamp without time zone, '2021-07-23 01:00:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 73.923000000000001820000000000000, 73.486000000000004200000000000000, '2021-07-23 07:00:00'::timestamp without time zone, '2021-07-23 19:00:00'::timestamp without time zone, '2021-07-23 01:00:00'::timestamp without time zone, '2021-07-23 13:00:00'::timestamp without time zone, 73.822999999999993290000000000000, 73.841999999999998750000000000000, 73.459999999999993740000000000000, 73.469999999999998860000000000000, 0.000833333333333759695100000000, 0.001583333333333788008000000000, 2.281026317057569752000000000000, 0.561600849353654618600000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 01:00:00'::timestamp without time zone, 73.492999999999995000000000000000, 24, 0, 0.367499999999999715800000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 07:00:00'::timestamp without time zone and resx1 = '2021-07-23 19:00:00'::timestamp without time zone and supportx0 = '2021-07-23 01:00:00'::timestamp without time zone and supportx1 = '2021-07-23 13:00:00'::timestamp without time zone and resy0 = 73.822999999999993290000000000000 and resy1 = 73.841999999999998750000000000000 and supporty0 = 73.459999999999993740000000000000 and supporty1 = 73.469999999999998860000000000000 and symbolid = 1003003) or resultid = '1003003-1|44400.2917|44400.7917|44400.0417|44400.5417|73.823|73.842|73.46|73.47') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:29:34 Duration: 2s226ms 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 '975327-1|44399.8333|44400.5833|44400.0833|44403|110.233|110.591|110.104|110.492', 975327, 2.000000000000000000000000000000, 'Channel Up', 4, '2021-07-25 23:04:47'::timestamp without time zone, 1, 0.206315674053070052800000000000, - 1.000000000000000000000000000000, 0.000000000000000000000000000000, 0.140226058518436280700000000000, 0.337239987653038531000000000000, 110.591171586468547600000000000000, 110.633411807524495900000000000000, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-27 15:30:00'::timestamp without time zone, '2021-07-22 20:00:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 110.058999999999997500000000000000, 110.579999999999998300000000000000, '2021-07-22 20:00:00'::timestamp without time zone, '2021-07-23 14:00:00'::timestamp without time zone, '2021-07-23 02:00:00'::timestamp without time zone, '2021-07-26 00:00:00'::timestamp without time zone, 110.233000000000004100000000000000, 110.590999999999994000000000000000, 110.103999999999999200000000000000, 110.492000000000004400000000000000, 0.018476190476190725720000000000, 0.019888888888888327930000000000, 1.878910015485568907000000000000, 0.467776534395890786200000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 01:00:00'::timestamp without time zone, 110.561000000000007000000000000000, 28, 0, 0.113999999999997214700000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-22 20:00:00'::timestamp without time zone and resx1 = '2021-07-23 14:00:00'::timestamp without time zone and supportx0 = '2021-07-23 02:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:00:00'::timestamp without time zone and resy0 = 110.233000000000004100000000000000 and resy1 = 110.590999999999994000000000000000 and supporty0 = 110.103999999999999200000000000000 and supporty1 = 110.492000000000004400000000000000 and symbolid = 975327) or resultid = '975327-1|44399.8333|44400.5833|44400.0833|44403|110.233|110.591|110.104|110.492') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:05:16 Duration: 2s164ms Database: acaweb_fx User: postgres
18 19m42s 157 106ms 42s451ms 7s532ms select * from ( select pricedatetime, open, high, low, close, volume, bsf from t15 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 01 157 19m42s 7s532ms [ User: postgres - Total duration: 19m42s - Times executed: 157 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '1019244' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:00:40 Duration: 42s451ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '987990' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:01:37 Duration: 33s721ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '987990' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:01:37 Duration: 32s623ms Database: acaweb_fx User: postgres Bind query: yes
19 18m28s 106 50ms 5m4s 10s461ms 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 #19
Day Hour Count Duration Avg duration Jul 26 01 106 18m28s 10s461ms [ User: postgres - Total duration: 18m28s - Times executed: 106 ]
-
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 = 558 AND (((s.symbol ilike '%audnzd%' 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 > 516830650 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:01:42 Duration: 5m4s 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 = 558 AND (((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 > 516855835 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:01:42 Duration: 5m3s 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 = 558 AND (((s.symbol ilike '%audnzd%' 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 > 516830650 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:27:38 Duration: 1m51s Database: acaweb_fx User: postgres Bind query: yes
20 18m20s 675 50ms 1m18s 1s630ms 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 #20
Day Hour Count Duration Avg duration Jul 26 01 675 18m20s 1s630ms [ User: postgres - Total duration: 18m20s - Times executed: 675 ]
-
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 01:06:32 Duration: 1m18s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:50:34 Duration: 1m4s 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 = 643 AND sg.groupid = 4744 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 01:22:58 Duration: 51s471ms 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 4,919 20m52s 50ms 2s248ms 254ms 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 #1
Day Hour Count Duration Avg duration Jul 26 01 4,919 20m52s 254ms [ User: postgres - Total duration: 20m52s - Times executed: 4919 ]
-
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 '975801-1|44400.6042|44403.0417|44400.4583|44403|0.9221|0.92|0.9189|0.919', 975801, 2.000000000000000000000000000000, 'Descending Triangle', 4, '2021-07-25 23:04:47'::timestamp without time zone, - 1, 0.064561819326174788020000000000, - 1.000000000000000000000000000000, 0.000000000000000000000000000000, 0.206437417972749198700000000000, 0.142830564185437963700000000000, 0.918096766184523849200000000000, 0.918851152576884988600000000000, '2021-07-26 01:30:00'::timestamp without time zone, '2021-07-27 08:45:00'::timestamp without time zone, '2021-07-23 11:00:00'::timestamp without time zone, '2021-07-26 01:30:00'::timestamp without time zone, 0.919640000000000013000000000000, 0.919359999999999955000000000000, '2021-07-23 14:30:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-23 11:00:00'::timestamp without time zone, '2021-07-26 00:00:00'::timestamp without time zone, 0.922109999999999985200000000000, 0.919960000000000000000000000000, 0.918880000000000030100000000000, 0.918950000000000044600000000000, 0.000002692307692308249680000000, - 0.000102380952380951682100000000, 1.500716566302210175000000000000, 0.333651655179621198200000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 01:30:00'::timestamp without time zone, 0.919390000000000040600000000000, 29, 0, 0.002119999999999955254000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 14:30:00'::timestamp without time zone and resx1 = '2021-07-26 01:00:00'::timestamp without time zone and supportx0 = '2021-07-23 11:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:00:00'::timestamp without time zone and resy0 = 0.922109999999999985200000000000 and resy1 = 0.919960000000000000000000000000 and supporty0 = 0.918880000000000030100000000000 and supporty1 = 0.918950000000000044600000000000 and symbolid = 975801) or resultid = '975801-1|44400.6042|44403.0417|44400.4583|44403|0.9221|0.92|0.9189|0.919') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:05:16 Duration: 2s248ms 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 '1003003-1|44400.2917|44400.7917|44400.0417|44400.5417|73.823|73.842|73.46|73.47', 1003003, 2.000000000000000000000000000000, 'Rectangle', 4, '2021-07-25 23:29:05'::timestamp without time zone, - 1, 0.694468237785203168500000000000, - 1.000000000000000000000000000000, 0.481376204052025247200000000000, 0.347127899610881918200000000000, 0.337462209886642661200000000000, 73.248366670021539450000000000000, 73.391069445842305180000000000000, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-27 13:00:00'::timestamp without time zone, '2021-07-23 01:00:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 73.923000000000001820000000000000, 73.486000000000004200000000000000, '2021-07-23 07:00:00'::timestamp without time zone, '2021-07-23 19:00:00'::timestamp without time zone, '2021-07-23 01:00:00'::timestamp without time zone, '2021-07-23 13:00:00'::timestamp without time zone, 73.822999999999993290000000000000, 73.841999999999998750000000000000, 73.459999999999993740000000000000, 73.469999999999998860000000000000, 0.000833333333333759695100000000, 0.001583333333333788008000000000, 2.281026317057569752000000000000, 0.561600849353654618600000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 01:00:00'::timestamp without time zone, 73.492999999999995000000000000000, 24, 0, 0.367499999999999715800000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-23 07:00:00'::timestamp without time zone and resx1 = '2021-07-23 19:00:00'::timestamp without time zone and supportx0 = '2021-07-23 01:00:00'::timestamp without time zone and supportx1 = '2021-07-23 13:00:00'::timestamp without time zone and resy0 = 73.822999999999993290000000000000 and resy1 = 73.841999999999998750000000000000 and supporty0 = 73.459999999999993740000000000000 and supporty1 = 73.469999999999998860000000000000 and symbolid = 1003003) or resultid = '1003003-1|44400.2917|44400.7917|44400.0417|44400.5417|73.823|73.842|73.46|73.47') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:29:34 Duration: 2s226ms 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 '975327-1|44399.8333|44400.5833|44400.0833|44403|110.233|110.591|110.104|110.492', 975327, 2.000000000000000000000000000000, 'Channel Up', 4, '2021-07-25 23:04:47'::timestamp without time zone, 1, 0.206315674053070052800000000000, - 1.000000000000000000000000000000, 0.000000000000000000000000000000, 0.140226058518436280700000000000, 0.337239987653038531000000000000, 110.591171586468547600000000000000, 110.633411807524495900000000000000, '2021-07-26 01:00:00'::timestamp without time zone, '2021-07-27 15:30:00'::timestamp without time zone, '2021-07-22 20:00:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 110.058999999999997500000000000000, 110.579999999999998300000000000000, '2021-07-22 20:00:00'::timestamp without time zone, '2021-07-23 14:00:00'::timestamp without time zone, '2021-07-23 02:00:00'::timestamp without time zone, '2021-07-26 00:00:00'::timestamp without time zone, 110.233000000000004100000000000000, 110.590999999999994000000000000000, 110.103999999999999200000000000000, 110.492000000000004400000000000000, 0.018476190476190725720000000000, 0.019888888888888327930000000000, 1.878910015485568907000000000000, 0.467776534395890786200000000000, 'Continuation', 0.000000000000000000000000000000, '2021-07-26 01:00:00'::timestamp without time zone, 110.561000000000007000000000000000, 28, 0, 0.113999999999997214700000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = - 1.000000000000000000000000000000 and resx0 = '2021-07-22 20:00:00'::timestamp without time zone and resx1 = '2021-07-23 14:00:00'::timestamp without time zone and supportx0 = '2021-07-23 02:00:00'::timestamp without time zone and supportx1 = '2021-07-26 00:00:00'::timestamp without time zone and resy0 = 110.233000000000004100000000000000 and resy1 = 110.590999999999994000000000000000 and supporty0 = 110.103999999999999200000000000000 and supporty1 = 110.492000000000004400000000000000 and symbolid = 975327) or resultid = '975327-1|44399.8333|44400.5833|44400.0833|44403|110.233|110.591|110.104|110.492') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:05:16 Duration: 2s164ms Database: acaweb_fx User: postgres
2 3,384 55m8s 50ms 3s977ms 977ms 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 #2
Day Hour Count Duration Avg duration Jul 26 01 3,384 55m8s 977ms [ User: postgres - Total duration: 55m8s - Times executed: 3384 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002911, '2021-07-26 01:45:00'::timestamp without time zone, 6.31602, 6.31602, 6.31499, 6.31504, 130, 0, '2021-07-26 01:05:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002911 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone);
Date: 2021-07-26 01:05:17 Duration: 3s977ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1009926, '2021-07-26 02:00:00'::timestamp without time zone, 120.209, 120.213, 120.2, 120.207, 151, 0, '2021-07-26 01:16:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1009926 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 01:16:18 Duration: 3s850ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010176, '2021-07-26 01:45:00'::timestamp without time zone, 1800.94, 1801.06, 1800.65, 1800.82, 313, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1010176 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s831ms Database: acaweb_fx User: postgres
3 2,254 7m 50ms 2s86ms 186ms 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 01 2,254 7m 186ms [ User: postgres - Total duration: 7m - Times executed: 2254 ]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 00:30:00', reason = 'Emerging pattern broke out in the wrong direction.' WHERE uniqueIndex = '989286-1|44400.4375|44400.9167|44400.5625|44400.6875|1.1786|1.1776|1.1754|1.1755' and relevant = 1;
Date: 2021-07-26 01:05:16 Duration: 2s86ms Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 01:45:00', reason = 'Pattern is too old to be relevant.' WHERE uniqueIndex = '|982435|0.92558|2|2021-07-23 23:15:00|-1|1' and relevant = 1;
Date: 2021-07-26 01:16:16 Duration: 1s942ms Database: acaweb_fx User: postgres
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2021-07-26 00:00:00', reason = 'Pattern is too old to be relevant.' WHERE uniqueIndex = '|989286|1.17836|1|2021-07-23 19:00:00|2021-07-23 19:00:00|1|-1' and relevant = 1;
Date: 2021-07-26 01:05:16 Duration: 1s911ms Database: acaweb_fx User: postgres
4 1,943 14m20s 50ms 3s415ms 443ms 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 #4
Day Hour Count Duration Avg duration Jul 26 01 1,943 14m20s 443ms [ User: postgres - Total duration: 14m20s - Times executed: 1943 ]
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 9.000000000000000000000000000000, - 1, 2, '2021-07-25 23:28:38'::timestamp without time zone, '', 0.500000000000000000000000000000, 3, 41, 1.477570000000000050000000000000, '2021-07-25 17:30:00', '2021-07-23 08:00:00', '2021-07-23 06:45:00', '', '', '', '', '', '', '', 82, 1.477351999999999998000000000000, '2021-07-25 19:15:00'::timestamp without time zone, '2021-07-25 19:15:00', 0.000000000000000000000000000000, 0.000217999999999995974800000000, 1, 966840, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|966840|1.47757|2|2021-07-25 19:15:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-23 06:45:00', 1.477570000000000050000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|966840|1.47757|2|2021-07-25 19:15:00|1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:29:07 Duration: 3s415ms 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-25 23:04:47'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 26, 0.737175000000000024700000000000, '2021-07-26 01:00:00', '2021-07-23 23:15:00', '2021-07-23 22:30:00', '2021-07-23 18:30:00', '', '', '', '', '', '', 65, 0.737224250000000025400000000000, '2021-07-26 01:45:00'::timestamp without time zone, '2021-07-26 01:45:00', 0.000000000000000000000000000000, 0.000143250000000000337800000000, - 1, 988150, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|988150|0.737175|1|2021-07-26 01:45:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-23 18:30:00', 0.737290000000000000900000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|988150|0.737175|1|2021-07-26 01:45:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:05:16 Duration: 2s434ms Database: acaweb_fx User: postgres
-
INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, - 1, 1, '2021-07-25 23:04:47'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 26, 0.737175000000000024700000000000, '2021-07-26 01:00:00', '2021-07-23 23:15:00', '2021-07-23 22:30:00', '2021-07-23 18:30:00', '', '', '', '', '', '', 65, 0.737224250000000025400000000000, '2021-07-26 01:45:00'::timestamp without time zone, '2021-07-26 01:45:00', 0.000000000000000000000000000000, 0.000143250000000000337800000000, - 1, 988150, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|988150|0.737175|1|2021-07-26 01:45:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-23 18:30:00', 0.737290000000000000900000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|988150|0.737175|1|2021-07-26 01:45:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:05:16 Duration: 2s398ms Database: acaweb_fx User: postgres
5 1,838 34m51s 51ms 4s66ms 1s138ms 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 01 1,838 34m51s 1s138ms [ User: postgres - Total duration: 34m51s - Times executed: 1838 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002022, '2021-07-25 18:30:00'::timestamp without time zone, 7017.4, 7017.4, 7017.4, 7017.4, 2663, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1002022 AND pricedatetime = '2021-07-25 18:30:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 4s66ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 983786, '2021-07-26 01:30:00'::timestamp without time zone, 71.55, 71.58, 71.5, 71.56, 61, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 983786 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s816ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022795, '2021-07-26 01:30:00'::timestamp without time zone, 1.05527, 1.05558, 1.05522, 1.0553, 253, 0, '2021-07-26 01:03:35'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1022795 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);
Date: 2021-07-26 01:03:38 Duration: 3s781ms Database: acaweb_fx User: postgres
6 1,833 50m4s 50ms 58s938ms 1s639ms 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 #6
Day Hour Count Duration Avg duration Jul 26 01 1,833 50m4s 1s639ms [ User: postgres - Total duration: 50m4s - Times executed: 1833 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 619 AND groupid = 4262 AND patternclassid = '1' AND patternlengthbars >= '0' 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 01:10:27 Duration: 58s938ms 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 = 689 AND groupid = 5123 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '65516909' 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 01:05:21 Duration: 34s936ms 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 = 689 AND groupid = 5123 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '65517353' 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 01:05:21 Duration: 34s932ms Database: acaweb_fx User: postgres Bind query: yes
7 1,813 5m24s 50ms 1s530ms 178ms select upsert_t15 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 26 01 1,813 5m24s 178ms [ User: postgres - Total duration: 5m24s - Times executed: 1813 ]
-
SELECT upsert_t15 ('2021-07-26 01:45:00', '1.36017', '1.36017', '1.36015', '1.36016', '42', '988095', '0', '2021-07-26 01:00:02.208', '2021-07-26 01:00:02.185');
Date: 2021-07-26 01:00:03 Duration: 1s530ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t15 ('2021-07-26 02:15:00', '8.69498', '8.697955', '8.6912', '8.692735', '203', '987980', '0', '2021-07-26 01:30:07.112', '2021-07-26 01:30:06.767');
Date: 2021-07-26 01:30:08 Duration: 1s267ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t15 ('2021-07-26 02:00:00', '1.36024', '1.36064', '1.36006', '1.36006', '94', '1019209', '0', '2021-07-26 01:26:06.096', '2021-07-26 01:26:06.081');
Date: 2021-07-26 01:26:07 Duration: 1s167ms Database: acaweb_fx User: postgres Bind query: yes
8 1,313 3m13s 50ms 3s568ms 147ms select upsert_t30 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 26 01 1,313 3m13s 147ms [ User: postgres - Total duration: 3m13s - Times executed: 1313 ]
-
SELECT upsert_t30 ('2021-07-20 22:30:00', '181.7', '182.465', '181.01', '182.325', '3323', '1028827', '0', '2021-07-26 01:46:43.045', '2021-07-26 01:46:42.222');
Date: 2021-07-26 01:46:46 Duration: 3s568ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t30 ('2021-07-20 22:30:00', '181.7', '182.465', '181.01', '182.325', '3323', '1028827', '0', '2021-07-26 01:17:05.51', '2021-07-26 01:17:04.94');
Date: 2021-07-26 01:17:08 Duration: 3s478ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t30 ('2021-07-26 01:30:00', '6.47565', '6.47565', '6.4746', '6.4749', '255', '988156', '0', '2021-07-26 01:00:06.898', '2021-07-26 01:00:06.886');
Date: 2021-07-26 01:00:07 Duration: 953ms Database: acaweb_fx User: postgres Bind query: yes
9 1,146 4m1s 50ms 1s460ms 211ms select * from powerstatslatestprfprice (?, ?);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 26 01 1,146 4m1s 211ms [ User: postgres - Total duration: 4m1s - Times executed: 1146 ]
-
select * from PowerStatsLatestPRFPrice ('986710', '15');
Date: 2021-07-26 01:48:34 Duration: 1s460ms Database: acaweb_fx User: postgres Bind query: yes
-
select * from PowerStatsLatestPRFPrice ('986710', '15');
Date: 2021-07-26 01:48:34 Duration: 1s432ms Database: acaweb_fx User: postgres Bind query: yes
-
select * from PowerStatsLatestPRFPrice ('983400', '15');
Date: 2021-07-26 01:33:04 Duration: 1s224ms Database: acaweb_fx User: postgres Bind query: yes
10 1,051 1m35s 50ms 1s259ms 90ms select updatedatafeedslatestrun (?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 26 01 1,051 1m35s 90ms [ User: postgres - Total duration: 1m35s - Times executed: 1051 ]
-
select updateDatafeedsLatestRun ('AXIORY');
Date: 2021-07-26 01:35:16 Duration: 1s259ms Database: acaweb_fx User: postgres
-
select updateDatafeedsLatestRun ('SECONDBMFN');
Date: 2021-07-26 01:29:03 Duration: 556ms Database: acaweb_fx User: postgres
-
select updateDatafeedsLatestRun ('GO_MARKETS');
Date: 2021-07-26 01:59:01 Duration: 521ms Database: acaweb_fx User: postgres
11 938 27m14s 50ms 42s254ms 1s742ms 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 #11
Day Hour Count Duration Avg duration Jul 26 01 938 27m14s 1s742ms [ User: postgres - Total duration: 27m14s - Times executed: 938 ]
-
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 = 5135 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 > 61321484 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:24:25 Duration: 42s254ms 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 > 61318721 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:24:20 Duration: 41s768ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:28:39 Duration: 37s906ms Database: acaweb_fx User: postgres Bind query: yes
12 904 27m27s 50ms 1m20s 1s822ms 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 01 904 27m27s 1s822ms [ User: postgres - Total duration: 27m27s - Times executed: 904 ]
-
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 01:06:32 Duration: 1m20s 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 01:50:34 Duration: 1m4s 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 01:33:12 Duration: 43s578ms Database: acaweb_fx User: postgres Bind query: yes
13 883 24m40s 58ms 4s58ms 1s676ms 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 #13
Day Hour Count Duration Avg duration Jul 26 01 883 24m40s 1s676ms [ User: postgres - Total duration: 24m40s - Times executed: 883 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961933, '2021-07-26 00:00:00'::timestamp without time zone, 1.1773, 1.1773, 1.1769, 1.1773, 70, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 961933 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 4s58ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022886, '2021-07-26 01:00:00'::timestamp without time zone, 2153.22, 2170.3, 2153.22, 2169.09, 117355, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1022886 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s833ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1009988, '2021-07-26 01:00:00'::timestamp without time zone, 12.886, 12.89, 12.883, 12.888, 228, 0, '2021-07-26 01:03:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1009988 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone);
Date: 2021-07-26 01:03:38 Duration: 3s816ms Database: acaweb_fx User: postgres
14 721 1m39s 50ms 549ms 137ms select upsert_t60 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 26 01 721 1m39s 137ms [ User: postgres - Total duration: 1m39s - Times executed: 721 ]
-
SELECT upsert_t60 ('2021-07-26 01:00:00', '1.597875', '1.59836', '1.5974', '1.598245', '963', '974557', '0', '2021-07-26 01:00:07.724', '2021-07-26 01:00:06.547');
Date: 2021-07-26 01:00:08 Duration: 549ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t60 ('2021-07-26 01:00:00', '35048.05', '35062.05', '35033.05', '35052.05', '671', '1025776', '0', '2021-07-26 01:01:06.747', '2021-07-26 01:00:58.275');
Date: 2021-07-26 01:01:07 Duration: 525ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT upsert_t60 ('2021-07-26 01:00:00', '6.47585', '6.47865', '6.4743', '6.4749', '629', '988157', '0', '2021-07-26 01:00:08.183', '2021-07-26 01:00:06.897');
Date: 2021-07-26 01:00:08 Duration: 522ms Database: acaweb_fx User: postgres Bind query: yes
15 675 18m20s 50ms 1m18s 1s630ms 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 #15
Day Hour Count Duration Avg duration Jul 26 01 675 18m20s 1s630ms [ User: postgres - Total duration: 18m20s - Times executed: 675 ]
-
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 01:06:32 Duration: 1m18s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:50:34 Duration: 1m4s 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 = 643 AND sg.groupid = 4744 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 01:22:58 Duration: 51s471ms Database: acaweb_fx User: postgres Bind query: yes
16 605 36m53s 133ms 3m48s 3s657ms select distinct pricedatetime, high, low from t15_ps where pricedatetime <= current_timestamp and pricedatetime >= current_timestamp - interval ? and symbolid = ? order by pricedatetime asc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 26 01 605 36m53s 3s657ms [ User: pgperfstats - Total duration: 36m53s - Times executed: 605 ]
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1020914order by pricedatetime asc;
Date: 2021-07-26 01:08:25 Duration: 3m48s Database: acaweb_fx User: pgperfstats
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1026969order by pricedatetime asc;
Date: 2021-07-26 01:48:29 Duration: 1m17s Database: acaweb_fx User: pgperfstats
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1020524order by pricedatetime asc;
Date: 2021-07-26 01:00:47 Duration: 1m6s Database: acaweb_fx User: pgperfstats
17 579 59s211ms 50ms 1s462ms 102ms update datafeeds_latestrun set latestdbwritetime = current_timestamp where feedname ilike ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 26 01 579 59s211ms 102ms [ User: postgres - Total duration: 59s211ms - Times executed: 579 ]
-
UPDATE DataFeeds_LatestRun SET LatestDBWriteTime = Current_TimeStamp WHERE FeedName ilike 'VALBURYCAPITAL';
Date: 2021-07-26 01:16:16 Duration: 1s462ms Database: acaweb_fx User: postgres
-
UPDATE DataFeeds_LatestRun SET LatestDBWriteTime = Current_TimeStamp WHERE FeedName ilike 'AMANACAPITAL';
Date: 2021-07-26 01:05:15 Duration: 953ms Database: acaweb_fx User: postgres
-
UPDATE DataFeeds_LatestRun SET LatestDBWriteTime = Current_TimeStamp WHERE FeedName ilike 'ADSSECURITIES';
Date: 2021-07-26 01:35:16 Duration: 919ms Database: acaweb_fx User: postgres
18 552 14m34s 179ms 1m35s 1s584ms select open as _open, high as _high, low as _low, close "..." _close, volume as _volume, pricedatetime as _pricedatetime from ( select open, high, low, close, volume, pricedatetime from t15 where pricedatetime >= current_timestamp - interval ? and symbolid = ? union all select open, high, low, close, volume, pricedatetime from t15_ps where pricedatetime >= current_timestamp - interval ? and symbolid = ? order by pricedatetime desc limit ?) a order by _pricedatetime asc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 01 552 14m34s 1s584ms [ User: postgres - Total duration: 14m34s - Times executed: 552 ]
-
select open as _open, high as _high, low as _low, close as _close, volume as _volume, pricedatetime as _pricedatetime FROM ( select open, high, low, close, volume, pricedatetime FROM T15 WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 union all select open, high, low, close, volume, pricedatetime FROM T15_ps WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 order by pricedatetime desc limit 672) a order by _pricedatetime asc;
Date: 2021-07-26 01:03:13 Duration: 1m35s Database: acaweb_fx User: postgres
-
select open as _open, high as _high, low as _low, close as _close, volume as _volume, pricedatetime as _pricedatetime FROM ( select open, high, low, close, volume, pricedatetime FROM T15 WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 968670 union all select open, high, low, close, volume, pricedatetime FROM T15_ps WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 968670 order by pricedatetime desc limit 672) a order by _pricedatetime asc;
Date: 2021-07-26 01:03:33 Duration: 44s797ms Database: acaweb_fx User: postgres
-
select open as _open, high as _high, low as _low, close as _close, volume as _volume, pricedatetime as _pricedatetime FROM ( select open, high, low, close, volume, pricedatetime FROM T15 WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 union all select open, high, low, close, volume, pricedatetime FROM T15_ps WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 order by pricedatetime desc limit 672) a order by _pricedatetime asc;
Date: 2021-07-26 01:31:50 Duration: 43s832ms Database: acaweb_fx User: postgres
19 521 2m40s 50ms 2s132ms 308ms insert into fibonacci_results (bandwidth, pattern, gmttimefound, direction, patternstarttime, patternendtime, patternstartprice, patternendprice, qtytp, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, patternlengthbars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) select distinct ?.?, ?, ?::timestamp without time zone, ?, ?::timestamp without time zone, ?::timestamp without time zone, ?.?, ?.?, ?, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?.?, ?, ?.?, ?, ?, ?, ?, ?, current_timestamp::timestamp without time zone where not exists ( select ? from fibonacci_results where pattern ilike ? and direction = ? and patternstarttime = ?::timestamp without time zone and patternstartprice = ?.? and qtytp = ? and patternlengthbars = ? and ratiosfound = ? and temporarypattern = ? and symbolid = ? and timex = ?::timestamp without time zone and timea = ?::timestamp without time zone and timeb = ?::timestamp without time zone and timec = ?::timestamp without time zone and timed = ?::timestamp without time zone) limit ? on conflict do nothing;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 26 01 521 2m40s 308ms [ User: postgres - Total duration: 2m40s - Times executed: 521 ]
-
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-25 23:04:47'::timestamp without time zone, - 1, '2021-07-23 03:00:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 1.872300000000000075000000000000, - 1.000000000000000000000000000000, 5, 1.872300000000000075000000000000, '2021-07-23 03:00:00'::timestamp without time zone, 1.866060000000000052000000000000, '2021-07-23 11:00:00'::timestamp without time zone, 1.872149999999999981000000000000, '2021-07-23 18:00:00'::timestamp without time zone, 1.868530000000000024000000000000, '2021-07-26 00:00:00'::timestamp without time zone, 1.873997402612880059000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.768383841556051550000000000000, - 1.000000000000000000000000000000, 11.582778821417376140000000000000, 30, 1.868530000000000024000000000000, 1.870618361968213072000000000000, 1.865150959355333038000000000000, 1.869699196515777206000000000000, 1.867042759057569112000000000000, 1.871263701306439930000000000000, 1.871909040644667010000000000000, 986602, 0.463232316887896900000000000000, 'BC=0.618*AB (0.594) ', 0, 'Butterfly|-1|2021-07-23 03:00:00|1.8723|-1|5|30|BC=0.618*AB (0.594)|0|986602|2021-07-23 03:00:00|2021-07-23 11:00:00|2021-07-23 18:00:00|2021-07-26 00:00: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 03:00:00'::timestamp without time zone AND patternstartprice = 1.872300000000000075000000000000 AND qtytp = 5 AND patternlengthbars = 30 AND ratiosfound = 'BC=0.618*AB (0.594) ' AND temporarypattern = 0 AND symbolid = 986602 AND timex = '2021-07-23 03:00:00'::timestamp without time zone AND timea = '2021-07-23 11:00:00'::timestamp without time zone AND timeb = '2021-07-23 18:00:00'::timestamp without time zone AND timec = '2021-07-26 00:00: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 01:05:16 Duration: 2s132ms Database: acaweb_fx User: postgres
-
INSERT INTO Fibonacci_Results (Bandwidth, Pattern, GMTTimeFound, Direction, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, QtyTP, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, PatternLengthBars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, 'ABCD', '2021-07-25 23:30:00'::timestamp without time zone, 1, '2021-07-23 11:30:00'::timestamp without time zone, '2021-07-25 19:15:00'::timestamp without time zone, 1.595499999999999918000000000000, - 1.000000000000000000000000000000, 4, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 1.599569999999999936000000000000, '2021-07-23 16:45:00'::timestamp without time zone, 1.594079999999999942000000000000, '2021-07-25 17:00:00'::timestamp without time zone, 1.598510000000000098000000000000, '2021-07-25 19:00:00'::timestamp without time zone, 1.593020000000000103000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.667048346055953866800000000000, - 1.000000000000000000000000000000, 14.316402336383251990000000000000, 10, 1.598510000000000098000000000000, 1.596413006597963147000000000000, 1.601903006597963142000000000000, 1.597335971064122173000000000000, 1.600003387875755134000000000000, 1.595765000000000100000000000000, 1.595116993402037053000000000000, 919629, 0.665903307888092266200000000000, 'BC=0.786*AB (0.807) ', 0, 'ABCD|1|2021-07-23 11:30:00|1.5955|-1|4|10|BC=0.786*AB (0.807)|0|919629|1899-12-29 00:00:00|2021-07-23 16:45:00|2021-07-25 17:00:00|2021-07-25 19:00:00|1899-12-29 00:00:00', - 1, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Fibonacci_Results WHERE pattern ilike 'ABCD' AND direction = 1 AND patternstarttime = '2021-07-23 11:30:00'::timestamp without time zone AND patternstartprice = 1.595499999999999918000000000000 AND qtytp = 4 AND patternlengthbars = 10 AND ratiosfound = 'BC=0.786*AB (0.807) ' AND temporarypattern = 0 AND symbolid = 919629 AND timex = '1899-12-29 00:00:00'::timestamp without time zone AND timea = '2021-07-23 16:45:00'::timestamp without time zone AND timeb = '2021-07-25 17:00:00'::timestamp without time zone AND timec = '2021-07-25 19:00: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 01:30:28 Duration: 2s98ms Database: acaweb_fx User: postgres
-
INSERT INTO Fibonacci_Results (Bandwidth, Pattern, GMTTimeFound, Direction, PatternStartTime, PatternEndTime, PatternStartPrice, PatternEndPrice, QtyTP, pricex, timex, pricea, timea, priceb, timeb, pricec, timec, priced, timed, averagequality, timequality, errormargin, PatternLengthBars, target10, target06, target16, target07, target12, target05, target03, symbolid, noise, ratiosfound, temporarypattern, uniqueindex, completed, simulation, writtendatetime) SELECT DISTINCT 2.000000000000000000000000000000, '3 Point Extension', '2021-07-25 23:14:56'::timestamp without time zone, 1, '2021-07-23 16:45:00'::timestamp without time zone, '2021-07-26 01:00:00'::timestamp without time zone, 1.265220000000000011000000000000, 1.265169999999999906000000000000, 3, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 1.265220000000000011000000000000, '2021-07-23 16:45:00'::timestamp without time zone, 1.266969999999999930000000000000, '2021-07-23 17:45:00'::timestamp without time zone, 1.264219999999999899000000000000, '2021-07-23 21:45:00'::timestamp without time zone, 0.584386751162644158000000000000, - 1.000000000000000000000000000000, 0.576074638688927831400000000000, 20, 1.266969999999999930000000000000, 1.265919593468924909000000000000, 1.268669593468924939000000000000, 1.266381916288950027000000000000, 1.267718054036125030000000000000, 1.265594999999999804000000000000, 1.265270406531074920000000000000, 1016116, 0.407301136363639460000000000000, 'CD=1.618*BC (1.571) ', 0, '3 Point Extension|1|2021-07-23 16:45:00|1.26522|1.26517|3|20|CD=1.618*BC (1.571)|0|1016116|1899-12-29 00:00:00|1899-12-29 00:00:00|2021-07-23 16:45:00|2021-07-23 17:45:00|2021-07-23 21:45:00', 1, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Fibonacci_Results WHERE pattern ilike '3 Point Extension' AND direction = 1 AND patternstarttime = '2021-07-23 16:45:00'::timestamp without time zone AND patternstartprice = 1.265220000000000011000000000000 AND qtytp = 3 AND patternlengthbars = 20 AND ratiosfound = 'CD=1.618*BC (1.571) ' AND temporarypattern = 0 AND symbolid = 1016116 AND timex = '1899-12-29 00:00:00'::timestamp without time zone AND timea = '1899-12-29 00:00:00'::timestamp without time zone AND timeb = '2021-07-23 16:45:00'::timestamp without time zone AND timec = '2021-07-23 17:45:00'::timestamp without time zone AND timed = '2021-07-23 21:45:00'::timestamp without time zone) LIMIT 1 ON CONFLICT DO NOTHING;
Date: 2021-07-26 01:15:23 Duration: 1s518ms Database: acaweb_fx User: postgres
20 474 2m6s 50ms 5s18ms 267ms insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t30 where symbolid = ? and pricedatetime = ?::timestamp without time zone); insert into t30 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::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 #20
Day Hour Count Duration Avg duration Jul 26 01 474 2m6s 267ms [ User: postgres - Total duration: 2m6s - Times executed: 474 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 13:30:00'::timestamp without time zone, 1166.959, 1169.959, 1166.591, 1168.673, 1016, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 13:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 14:00:00'::timestamp without time zone, 1168.591, 1168.959, 1165.592, 1166.377, 1042, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 14:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 14:30:00'::timestamp without time zone, 1166.214, 1166.877, 1163.093, 1163.378, 1154, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 14:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 15:00:00'::timestamp without time zone, 1163.215, 1165.459, 1163.092, 1164.714, 1176, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 15:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 15:30:00'::timestamp without time zone, 1164.633, 1166.877, 1164.092, 1164.796, 1058, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 15:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 16:00:00'::timestamp without time zone, 1164.674, 1165.959, 1164.092, 1164.378, 974, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 16:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 16:30:00'::timestamp without time zone, 1164.255, 1164.459, 1157.594, 1158.716, 2354, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 16:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 17:00:00'::timestamp without time zone, 1158.635, 1158.959, 1152.596, 1155.96, 2356, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 17:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 17:30:00'::timestamp without time zone, 1155.798, 1157.459, 1155.095, 1156.878, 3358, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 17:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-16 18:00:00'::timestamp without time zone, 1156.716, 1160.959, 1155.595, 1159.756, 2462, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-16 18:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 10:00:00'::timestamp without time zone, 1150.177, 1163.459, 1145.598, 1159.338, 1650, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 10:30:00'::timestamp without time zone, 1159.256, 1165.959, 1157.216, 1164.418, 2086, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 10:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 11:00:00'::timestamp without time zone, 1164.459, 1175.918, 1164.092, 1172.836, 1626, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 11:30:00'::timestamp without time zone, 1172.63, 1173.459, 1158.094, 1159.134, 2478, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 11:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 12:00:00'::timestamp without time zone, 1159.459, 1163.592, 1159.094, 1160.959, 2104, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 12:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 12:30:00'::timestamp without time zone, 1160.837, 1165.459, 1160.175, 1164.378, 2002, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 12:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 13:00:00'::timestamp without time zone, 1164.255, 1164.918, 1157.095, 1160.175, 2214, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 13:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 13:30:00'::timestamp without time zone, 1160.337, 1164.378, 1158.094, 1163.837, 1560, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 13:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 14:00:00'::timestamp without time zone, 1163.796, 1166.459, 1161.093, 1165.837, 1650, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 14:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 14:30:00'::timestamp without time zone, 1165.755, 1165.959, 1159.135, 1164.337, 1904, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 14:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 15:00:00'::timestamp without time zone, 1164.378, 1164.459, 1153.095, 1157.756, 1712, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 15:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 15:30:00'::timestamp without time zone, 1157.878, 1159.919, 1155.095, 1156.797, 1888, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 15:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 16:00:00'::timestamp without time zone, 1156.959, 1156.959, 1153.096, 1153.177, 1312, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 16:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 16:30:00'::timestamp without time zone, 1153.379, 1155.46, 1144.599, 1147.92, 3296, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 16:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 17:00:00'::timestamp without time zone, 1147.219, 1149.46, 1143.599, 1148.46, 3972, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 17:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 17:30:00'::timestamp without time zone, 1148.42, 1152.96, 1145.098, 1149.218, 3500, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 17:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-19 18:00:00'::timestamp without time zone, 1150.339, 1153.96, 1148.098, 1149.637, 3478, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-19 18:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 10:00:00'::timestamp without time zone, 1146.637, 1161.459, 1146.637, 1160.593, 2330, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 10:30:00'::timestamp without time zone, 1160.675, 1163.715, 1159.094, 1161.337, 2034, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 10:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 11:00:00'::timestamp without time zone, 1161.378, 1163.459, 1161.093, 1162.919, 1292, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 11:30:00'::timestamp without time zone, 1162.878, 1162.959, 1157.594, 1158.757, 1554, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 11:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 12:00:00'::timestamp without time zone, 1158.878, 1158.959, 1148.638, 1150.637, 1598, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 12:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 12:30:00'::timestamp without time zone, 1150.678, 1151.96, 1142.76, 1146.96, 1500, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 12:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 13:00:00'::timestamp without time zone, 1146.839, 1153.919, 1142.6, 1153.798, 1578, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 13:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 13:30:00'::timestamp without time zone, 1153.636, 1153.96, 1145.719, 1147.638, 1700, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 13:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 14:00:00'::timestamp without time zone, 1147.678, 1151.96, 1144.759, 1151.798, 2212, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 14:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 14:30:00'::timestamp without time zone, 1151.677, 1153.46, 1149.097, 1152.218, 1436, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 14:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 15:00:00'::timestamp without time zone, 1152.298, 1154.419, 1146.098, 1147.879, 1492, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 15:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 15:30:00'::timestamp without time zone, 1147.96, 1148.46, 1144.599, 1146.219, 743, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 15:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 16:00:00'::timestamp without time zone, 1146.42, 1146.46, 1140.141, 1141.1, 967, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 16:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 16:30:00'::timestamp without time zone, 1141.14, 1149.879, 1139.601, 1149.339, 2070, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 16:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 17:00:00'::timestamp without time zone, 1149.178, 1152.96, 1147.598, 1152.879, 1379, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 17:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 17:30:00'::timestamp without time zone, 1152.596, 1163.459, 1150.097, 1161.959, 1295, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 17:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-20 18:00:00'::timestamp without time zone, 1161.593, 1167.418, 1156.594, 1159.837, 1283, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-20 18:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-21 10:00:00'::timestamp without time zone, 1162.833, 1170.459, 1162.591, 1168.631, 1276, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-21 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-21 10:30:00'::timestamp without time zone, 1168.836, 1180.959, 1168.591, 1179.17, 1117, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-21 10:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-21 11:00:00'::timestamp without time zone, 1179.417, 1181.376, 1175.088, 1179.793, 900, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-21 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-21 11:30:00'::timestamp without time zone, 1179.876, 1181.959, 1176.711, 1179.252, 848, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-21 11:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-21 12:00:00'::timestamp without time zone, 1179.211, 1186.958, 1177.587, 1185.292, 837, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-21 12:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-21 12:30:00'::timestamp without time zone, 1185.168, 1189.958, 1185.085, 1188.167, 516, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-21 12:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-21 13:00:00'::timestamp without time zone, 1188.334, 1193.458, 1185.085, 1191.875, 660, 0, '2021-07-26 01:01:41'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-21 13:00:00'::timestamp without time zone);
Date: 2021-07-26 01:01:46 Duration: 5s18ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 19:30:00'::timestamp without time zone, 0.93248, 0.93309, 0.93246, 0.93295, 2512, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 19:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 20:00:00'::timestamp without time zone, 0.93294, 0.93321, 0.93268, 0.93283, 3928, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 20:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 20:30:00'::timestamp without time zone, 0.93283, 0.93327, 0.93271, 0.93306, 3356, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 20:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 21:00:00'::timestamp without time zone, 0.93307, 0.93312, 0.93269, 0.93278, 4124, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 21:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 21:30:00'::timestamp without time zone, 0.93278, 0.93327, 0.9326, 0.93273, 5148, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 21:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 22:00:00'::timestamp without time zone, 0.93274, 0.93291, 0.93245, 0.93255, 3712, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 22:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 22:30:00'::timestamp without time zone, 0.93255, 0.93278, 0.93236, 0.93249, 4274, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 22:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 23:00:00'::timestamp without time zone, 0.9325, 0.93253, 0.93204, 0.93242, 2514, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 23:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-16 23:30:00'::timestamp without time zone, 0.93241, 0.93322, 0.93238, 0.93301, 1430, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-16 23:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 00:00:00'::timestamp without time zone, 0.9326, 0.93325, 0.93228, 0.93247, 476, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 00:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 00:30:00'::timestamp without time zone, 0.93267, 0.9332, 0.93238, 0.9326, 442, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 00:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 01:00:00'::timestamp without time zone, 0.93241, 0.93318, 0.93183, 0.93299, 2280, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 01:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 01:30:00'::timestamp without time zone, 0.93295, 0.93295, 0.93244, 0.93275, 1660, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 01:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 02:00:00'::timestamp without time zone, 0.93275, 0.93289, 0.93247, 0.93262, 1922, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 02:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 02:30:00'::timestamp without time zone, 0.93261, 0.93264, 0.93187, 0.93206, 2914, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 02:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 03:00:00'::timestamp without time zone, 0.93207, 0.93225, 0.9316, 0.9321, 3926, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 03:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 03:30:00'::timestamp without time zone, 0.9321, 0.9321, 0.93136, 0.93207, 3700, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 03:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 04:00:00'::timestamp without time zone, 0.93206, 0.93216, 0.93161, 0.93193, 3026, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 04:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 04:30:00'::timestamp without time zone, 0.93193, 0.93231, 0.9317, 0.93218, 3366, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 04:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 05:00:00'::timestamp without time zone, 0.93219, 0.93248, 0.93202, 0.93235, 3328, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 05:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 05:30:00'::timestamp without time zone, 0.93234, 0.93258, 0.93204, 0.93233, 2294, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 05:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 06:00:00'::timestamp without time zone, 0.93234, 0.93259, 0.93212, 0.93233, 1972, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 06:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 06:30:00'::timestamp without time zone, 0.93233, 0.93345, 0.93233, 0.9334, 1640, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 06:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 07:00:00'::timestamp without time zone, 0.93341, 0.93382, 0.93332, 0.93332, 1520, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 07:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 07:30:00'::timestamp without time zone, 0.93332, 0.93353, 0.93305, 0.93342, 1542, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 07:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 08:00:00'::timestamp without time zone, 0.93343, 0.93379, 0.93334, 0.93357, 1884, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 08:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 08:30:00'::timestamp without time zone, 0.93356, 0.9338, 0.93308, 0.93316, 2092, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 08:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 09:00:00'::timestamp without time zone, 0.93316, 0.93346, 0.93299, 0.93333, 3166, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 09:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 09:30:00'::timestamp without time zone, 0.93332, 0.93435, 0.93304, 0.93433, 2916, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 09:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 10:00:00'::timestamp without time zone, 0.93432, 0.93562, 0.93392, 0.93551, 6368, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 10:30:00'::timestamp without time zone, 0.93551, 0.93611, 0.93517, 0.93583, 6376, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 10:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 11:00:00'::timestamp without time zone, 0.93584, 0.93654, 0.93503, 0.93653, 5864, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 11:30:00'::timestamp without time zone, 0.93652, 0.9368, 0.93603, 0.93655, 6588, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 11:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 12:00:00'::timestamp without time zone, 0.93655, 0.93946, 0.93603, 0.93872, 6588, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 12:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 12:30:00'::timestamp without time zone, 0.93871, 0.94012, 0.93857, 0.93937, 5740, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 12:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 13:00:00'::timestamp without time zone, 0.93936, 0.94179, 0.93906, 0.94027, 7896, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 13:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 13:30:00'::timestamp without time zone, 0.94027, 0.94097, 0.93962, 0.93988, 5676, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 13:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 14:00:00'::timestamp without time zone, 0.93989, 0.94002, 0.93765, 0.93803, 6340, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 14:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 14:30:00'::timestamp without time zone, 0.93802, 0.93861, 0.93771, 0.93828, 7098, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 14:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 15:00:00'::timestamp without time zone, 0.93828, 0.93842, 0.93557, 0.93565, 9478, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 15:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 15:30:00'::timestamp without time zone, 0.93564, 0.93654, 0.93558, 0.93647, 8714, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 15:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 16:00:00'::timestamp without time zone, 0.93646, 0.93786, 0.93626, 0.93732, 8032, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 16:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 16:30:00'::timestamp without time zone, 0.93731, 0.9387, 0.93666, 0.93666, 16044, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 16:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 17:00:00'::timestamp without time zone, 0.93666, 0.93701, 0.93568, 0.93596, 16576, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 17:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 17:30:00'::timestamp without time zone, 0.93597, 0.93728, 0.93557, 0.93686, 14066, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 17:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 18:00:00'::timestamp without time zone, 0.93688, 0.93714, 0.9361, 0.93644, 11430, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 18:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 18:30:00'::timestamp without time zone, 0.93643, 0.93686, 0.9361, 0.93636, 8378, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 18:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 19:00:00'::timestamp without time zone, 0.93636, 0.93672, 0.93613, 0.93641, 6218, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 19:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 19:30:00'::timestamp without time zone, 0.9364, 0.93644, 0.93569, 0.93612, 7044, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 19:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 20:00:00'::timestamp without time zone, 0.9361, 0.93631, 0.93549, 0.93563, 7114, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 20:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1026375, '2021-07-19 20:30:00'::timestamp without time zone, 0.93563, 0.93571, 0.93475, 0.93484, 6688, 0, '2021-07-26 01:03:20'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1026375 AND pricedatetime = '2021-07-19 20:30:00'::timestamp without time zone);
Date: 2021-07-26 01:03:24 Duration: 4s116ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 13:30:00'::timestamp without time zone, 1176.582, 1182.876, 1174.465, 1182.494, 2612, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 13:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 14:00:00'::timestamp without time zone, 1182.317, 1182.994, 1175.964, 1176.141, 2222, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 14:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 14:30:00'::timestamp without time zone, 1176.259, 1177.494, 1173.965, 1174.818, 1904, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 14:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 15:00:00'::timestamp without time zone, 1174.935, 1179.494, 1172.025, 1179.435, 1996, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 15:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 15:30:00'::timestamp without time zone, 1179.317, 1179.994, 1174.465, 1175.964, 2484, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 15:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 16:00:00'::timestamp without time zone, 1176.082, 1185.494, 1175.465, 1182.639, 2290, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 16:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 16:30:00'::timestamp without time zone, 1182.698, 1183.876, 1173.465, 1175.818, 3322, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 16:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 17:00:00'::timestamp without time zone, 1175.641, 1176.994, 1165.969, 1172.642, 4374, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 17:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 17:30:00'::timestamp without time zone, 1172.701, 1173.494, 1166.469, 1171.084, 5766, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 17:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-08 18:00:00'::timestamp without time zone, 1171.26, 1178.935, 1170.525, 1177.935, 3630, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-08 18:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 10:00:00'::timestamp without time zone, 1155.468, 1189.994, 1155.468, 1182.317, 2454, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 10:30:00'::timestamp without time zone, 1182.376, 1191.256, 1181.961, 1187.756, 1446, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 10:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 11:00:00'::timestamp without time zone, 1187.637, 1194.494, 1187.459, 1190.256, 1524, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 11:30:00'::timestamp without time zone, 1190.196, 1194.494, 1189.958, 1193.375, 1294, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 11:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 12:00:00'::timestamp without time zone, 1193.494, 1198.994, 1193.076, 1195.955, 1660, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 12:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 12:30:00'::timestamp without time zone, 1196.135, 1198.314, 1194.456, 1195.575, 1654, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 12:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 13:00:00'::timestamp without time zone, 1195.874, 1195.994, 1191.017, 1192.755, 1550, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 13:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 13:30:00'::timestamp without time zone, 1192.815, 1194.494, 1190.957, 1191.934, 1148, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 13:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 14:00:00'::timestamp without time zone, 1191.696, 1194.494, 1190.636, 1193.934, 932, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 14:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 14:30:00'::timestamp without time zone, 1193.815, 1193.994, 1191.457, 1192.875, 1214, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 14:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 15:00:00'::timestamp without time zone, 1192.755, 1192.994, 1188.958, 1189.935, 970, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 15:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 15:30:00'::timestamp without time zone, 1189.815, 1192.494, 1189.458, 1190.994, 1072, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 15:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 16:00:00'::timestamp without time zone, 1190.696, 1192.494, 1188.637, 1189.935, 1620, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 16:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 16:30:00'::timestamp without time zone, 1189.696, 1191.577, 1187.459, 1190.875, 1604, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 16:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 17:00:00'::timestamp without time zone, 1190.994, 1193.494, 1189.958, 1192.994, 2154, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 17:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 17:30:00'::timestamp without time zone, 1192.815, 1193.994, 1191.315, 1193.994, 1248, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 17:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-09 18:00:00'::timestamp without time zone, 1193.875, 1199.494, 1193.456, 1199.494, 2854, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-09 18:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 10:00:00'::timestamp without time zone, 1174.459, 1200.494, 1174.459, 1193.956, 1868, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 10:30:00'::timestamp without time zone, 1194.434, 1194.494, 1188.458, 1192.136, 1550, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 10:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 11:00:00'::timestamp without time zone, 1192.076, 1195.994, 1191.957, 1193.636, 1126, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 11:30:00'::timestamp without time zone, 1193.576, 1196.494, 1193.456, 1194.195, 1462, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 11:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 12:00:00'::timestamp without time zone, 1194.076, 1194.994, 1192.957, 1193.755, 1278, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 12:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 12:30:00'::timestamp without time zone, 1193.457, 1195.934, 1192.957, 1193.576, 1064, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 12:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 13:00:00'::timestamp without time zone, 1193.934, 1194.494, 1189.696, 1192.755, 1616, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 13:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 13:30:00'::timestamp without time zone, 1192.457, 1195.494, 1192.076, 1194.635, 1412, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 13:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 14:00:00'::timestamp without time zone, 1194.516, 1197.994, 1194.456, 1196.494, 1358, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 14:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 14:30:00'::timestamp without time zone, 1196.255, 1199.494, 1195.955, 1198.994, 1052, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 14:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 15:00:00'::timestamp without time zone, 1198.754, 1199.314, 1194.874, 1198.514, 1394, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 15:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 15:30:00'::timestamp without time zone, 1198.874, 1204.494, 1198.454, 1204.132, 800, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 15:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 16:00:00'::timestamp without time zone, 1204.434, 1204.994, 1199.953, 1200.953, 1322, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 16:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 16:30:00'::timestamp without time zone, 1201.073, 1204.994, 1197.454, 1204.373, 2842, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 16:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 17:00:00'::timestamp without time zone, 1203.952, 1207.494, 1203.452, 1206.692, 1852, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 17:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 17:30:00'::timestamp without time zone, 1206.873, 1207.494, 1200.953, 1202.813, 1642, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 17:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-12 18:00:00'::timestamp without time zone, 1202.934, 1207.494, 1202.452, 1204.632, 1208, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-12 18:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-13 10:00:00'::timestamp without time zone, 1202.072, 1203.133, 1193.955, 1200.934, 1796, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-13 10:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-13 10:30:00'::timestamp without time zone, 1200.494, 1202.994, 1198.454, 1198.934, 854, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-13 10:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-13 11:00:00'::timestamp without time zone, 1198.874, 1200.994, 1197.454, 1200.633, 1014, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-13 11:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-13 11:30:00'::timestamp without time zone, 1200.694, 1200.994, 1198.954, 1199.994, 918, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-13 11:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-13 12:00:00'::timestamp without time zone, 1199.574, 1199.994, 1197.454, 1197.954, 984, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-13 12:00:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-13 12:30:00'::timestamp without time zone, 1198.434, 1199.934, 1197.454, 1199.434, 840, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-13 12:30:00'::timestamp without time zone); INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 968546, '2021-07-13 13:00:00'::timestamp without time zone, 1199.194, 1201.814, 1198.454, 1201.633, 696, 0, '2021-07-26 01:01:33'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 968546 AND pricedatetime = '2021-07-13 13:00:00'::timestamp without time zone);
Date: 2021-07-26 01:01:37 Duration: 3s822ms Database: acaweb_fx User: postgres
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 1h30m28s 1h30m28s 1h30m28s 1 1h30m28s select updateageforrelevantresults ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 26 01 1 1h30m28s 1h30m28s [ User: postgres - Total duration: 1h30m28s - Times executed: 1 ]
-
select updateageforrelevantresults ();
Date: 2021-07-26 01:47:31 Duration: 1h30m28s Database: acaweb_fx User: postgres
2 73ms 42m22s 6m22s 67 7h7m17s select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, ?, ?) as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 01 67 7h7m17s 6m22s [ User: postgres - Total duration: 7h7m17s - Times executed: 67 ]
-
select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4748 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4748 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:41:44 Duration: 42m22s Database: acaweb_fx User: postgres
-
select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality 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 = 4747 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4747 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:25:44 Duration: 26m22s Database: acaweb_fx User: postgres
-
select initialtrend, breakout, symmetry, clarity, qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified, quality from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4737 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'cp' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:25:30 Duration: 26m9s Database: acaweb_fx User: postgres
3 60ms 20m9s 4m13s 57 4h44s 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 #3
Day Hour Count Duration Avg duration Jul 26 01 57 4h44s 4m13s [ User: postgres - Total duration: 4h44s - Times executed: 57 ]
-
select qtytp, replace(symbol, '''', '''''') as symbol, pattern, direction, hourofday, interval, correct, atbaridentified from stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid inner join ( select min(atbaridentified) as min, max(atbaridentified) as max, statsid FROM stats_success t inner join stats_symbols ss on t.symbolid = ss.symbolid where statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4132 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:47:26 Duration: 20m9s 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 = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 3 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:46:11 Duration: 18m56s 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 = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%' group by statsid) minmax on ss.statsid = minmax.statsid where ss.statsid = 4 and atbaridentified >= (current_timestamp - interval '12 months') and atbaridentified <= current_timestamp and type = 'kl' and pattern not ilike '%NON_LIQUID%';
Date: 2021-07-26 01:46:11 Duration: 18m56s Database: acaweb_fx User: postgres
4 102ms 44m37s 2m47s 55 2h33m35s with rar_max as ( select resultuid from relevance_keylevels_results order by resultuid desc limit ? ), results as ( select distinct on (s.symbolid) kr.resultuid as resultuid, kr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, s.symbol as symbol_code, s.longname as symbol_name, s.timegranularity as interval, p.patternname as pattern_name, kr.breakout as breakout, kr.atbaridentified as identified, dtt.timezone as timezone, kr.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when rar.age is not null then rar.age when kr.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when kr.resultuid <= rm.resultuid then ? else ? end as relevant from keylevels_results kr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = kr.symbolid inner join symbols s on kr.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on kr.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join hrspatterns p on kr.patternid = p.patternid inner join downloadersymbolsettings dss on kr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join relevance_keylevels_results rar on rar.resultuid = kr.resultuid left join lateral calc_kl_signal_filter (kr.resultuid) newlevels on true where kr.gmttimefound > now() - interval ? and (kr.simulation = ? or kr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or s.symbol in (...)) and (? = ? or p.patternname in (...)) and (? = ? or kr.patternclassid in (...)) and (? = ? or kr.patternlengthbars <= ?) order by symbolid, identified desc, patternlengthbars desc ) select * from results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by identified desc, length desc;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 26 01 55 2h33m35s 2m47s [ User: postgres - Total duration: 2h33m35s - Times executed: 55 ]
-
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 01:38:28 Duration: 44m37s 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 ('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 01:55:21 Duration: 15m10s 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 01:55:18 Duration: 15m7s Database: acaweb_fx User: postgres Bind query: yes
5 6s781ms 9m25s 2m26s 12 29m14s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and (((s.symbol ilike ? and timegranularity <= ?)) or ((s.symbol ilike ? and timegranularity = ?)) or ((s.symbol ilike ? and timegranularity = ?))) and breakout >= ?.? and patternendtime = latestbaratbreakouttime and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 26 01 12 29m14s 2m26s [ User: postgres - Total duration: 29m14s - Times executed: 12 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:04:41 Duration: 9m25s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:27:39 Duration: 6m16s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 689 AND (((s.symbol ilike '%xauusd%' AND timegranularity <= 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 1440)) OR ((s.symbol ilike '%xauusd%' AND timegranularity = 15))) AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.3 AND initialtrend >= 0.0 AND symmetry >= 0.0 AND noise <= 1.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 516635479 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:04:41 Duration: 3m43s Database: acaweb_fx User: postgres Bind query: yes
6 7s208ms 10m48s 2m14s 58 2h10m10s (( 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 #6
Day Hour Count Duration Avg duration Jul 26 01 58 2h10m10s 2m14s [ User: postgres - Total duration: 2h10m10s - Times executed: 58 ]
-
(( 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 = '558' 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 = '558' 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 = '558' 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 = '558' 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 = '558' 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 = '558' 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 01:04:50 Duration: 10m48s Database: acaweb_fx User: postgres Bind query: yes
-
(( SELECT /*CPRelevantList*/ distinct 0 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_autochartist_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 0 as patterntype, ar.resultuid as resultuid, 0, 1 from autochartist_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_autochartist_results order by resultuid desc limit 1))) union all (( SELECT distinct 1 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_fibonacci_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 1 as patterntype, ar.resultuid as resultuid, 0, 1 from fibonacci_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_fibonacci_results order by resultuid desc limit 1))) union all (( SELECT distinct 2 as patterntype, ar.resultuid as resultuid, rar.age, rar.relevant FROM keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid inner join symbols s on s.symbolid = bsl.symbolid inner join relevance_keylevels_results rar on rar.resultuid = ar.resultuid where bsl.brokerid = '660' union select distinct 2 as patterntype, ar.resultuid as resultuid, 0, 1 from keylevels_results ar inner join brokersymbollist bsl on bsl.symbolid = ar.symbolid and bsl.brokerid = '660' inner join symbols s on s.symbolid = bsl.symbolid where resultuid > ( select resultuid from relevance_keylevels_results order by resultuid desc limit 1)));
Date: 2021-07-26 01:07:38 Duration: 10m21s 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 = '692' 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 = '692' 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 = '692' 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 = '692' 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 = '692' 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 = '692' 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 01:07:46 Duration: 7m32s Database: acaweb_fx User: postgres Bind query: yes
7 455ms 8m1s 2m8s 56 1h59m59s 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 #7
Day Hour Count Duration Avg duration Jul 26 01 56 1h59m59s 2m8s [ User: postgres - Total duration: 1h59m59s - Times executed: 56 ]
-
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 = '637' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 01:03:14 Duration: 8m1s 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 = '627' 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 ('240' = 0 OR s.symbol in ('#ADBE', '#AIRF', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#BP', '#CAT', '#CBKG', '#DAIGn', '#DBKGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#MSFT', '#NFLX', '#RDSa', '#TSLA', '#TWTR', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCJPY', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHJPY', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'GER_30', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCJPY', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NOKSEK', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', '#BP', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NOKSEK', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCJPY', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHJPY', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCJPY', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#AIRF', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#DBKGn', '#RDSa', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', 'GER_30', 'HKG_50', 'NAS100', 'SPX500', 'US30', '#ADBE', '#AMZN', '#APPL', '#BA', '#BABA', '#CAT', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#MSFT', '#NFLX', '#TSLA', '#TWTR', '#WMT', '#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 01:31:01 Duration: 7m54s 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 = '643' AND bsl.symbolid = ar.symbolid INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on ar.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = ar.resultuid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR s.symbol in ('')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false ORDER BY symbolid, identified DESC, patternlengthbars DESC ) SELECT * from results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY identified DESC, length DESC;
Date: 2021-07-26 01:02:53 Duration: 7m28s Database: acaweb_fx User: postgres Bind query: yes
8 258ms 54s166ms 15s790ms 107 28m9s 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 #8
Day Hour Count Duration Avg duration Jul 26 01 107 28m9s 15s790ms [ User: postgres - Total duration: 28m9s - Times executed: 107 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '986532' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:03:36 Duration: 54s166ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '986532' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:03:36 Duration: 53s366ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T60 WHERE symbolid = '1010898' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:04:07 Duration: 51s679ms Database: acaweb_fx User: postgres Bind query: yes
9 50ms 9m24s 14s819ms 132 32m36s 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 #9
Day Hour Count Duration Avg duration Jul 26 01 132 32m36s 14s819ms [ User: postgres - Total duration: 32m36s - Times executed: 132 ]
-
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 01:04:41 Duration: 9m24s 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 01:27:39 Duration: 6m16s 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 01:04:41 Duration: 3m42s Database: acaweb_fx User: postgres Bind query: yes
10 50ms 5m4s 10s461ms 106 18m28s 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 01 106 18m28s 10s461ms [ User: postgres - Total duration: 18m28s - Times executed: 106 ]
-
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 = 558 AND (((s.symbol ilike '%audnzd%' 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 > 516830650 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:01:42 Duration: 5m4s 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 = 558 AND (((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 > 516855835 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:01:42 Duration: 5m3s 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 = 558 AND (((s.symbol ilike '%audnzd%' 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 > 516830650 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:27:38 Duration: 1m51s Database: acaweb_fx User: postgres Bind query: yes
11 106ms 42s451ms 7s532ms 157 19m42s select * from ( select pricedatetime, open, high, low, close, volume, bsf from t15 where symbolid = ? and (bsf = ? or bsf is null) order by pricedatetime desc limit ?) a order by pricedatetime asc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 26 01 157 19m42s 7s532ms [ User: postgres - Total duration: 19m42s - Times executed: 157 ]
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '1019244' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:00:40 Duration: 42s451ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '987990' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:01:37 Duration: 33s721ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T15 WHERE symbolid = '987990' AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050) a ORDER BY PriceDateTime ASC;
Date: 2021-07-26 01:01:37 Duration: 32s623ms Database: acaweb_fx User: postgres Bind query: yes
12 133ms 3m48s 3s657ms 605 36m53s select distinct pricedatetime, high, low from t15_ps where pricedatetime <= current_timestamp and pricedatetime >= current_timestamp - interval ? and symbolid = ? order by pricedatetime asc;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 26 01 605 36m53s 3s657ms [ User: pgperfstats - Total duration: 36m53s - Times executed: 605 ]
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1020914order by pricedatetime asc;
Date: 2021-07-26 01:08:25 Duration: 3m48s Database: acaweb_fx User: pgperfstats
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1026969order by pricedatetime asc;
Date: 2021-07-26 01:48:29 Duration: 1m17s Database: acaweb_fx User: pgperfstats
-
select distinct pricedatetime, high, low FROM t15_ps WHERE pricedatetime <= current_timestamp AND pricedatetime >= current_timestamp - interval '6 months' and symbolid = 1020524order by pricedatetime asc;
Date: 2021-07-26 01:00:47 Duration: 1m6s Database: acaweb_fx User: pgperfstats
13 50ms 1m20s 1s822ms 904 27m27s select distinct patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzos, dftt.timezone as tz, longname, case when rar.age is not null then rar.age when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= ( select resultuid from relevance_autochartist_results order by resultuid desc limit ?) then ? else ? end as relevant from symbols s inner join brokersymbollist b on s.symbolid = b.symbolid inner join symbolgroup sg on s.symbolid = sg.symbolid inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dftt on dftt.classname = dss.classname inner join autochartist_results a on a.symbolid = s.symbolid inner join patterns p on a.pattern = p.patternname left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid where b.brokerid = ? and sg.groupid = ? and breakout = ? and patternlengthbars >= ? and patternquality >= ?.? and initialtrend >= ?.? and symmetry >= ?.? and noise <= ?.? and volumeincrease >= ?.? and temporarypattern = ? and patternid & ? > ? and s.nonliquid = ? and s.deleted = ? and dss.enabled = ? and a.resultuid > ? and s.nonliquid = ? and dftt.dayofweek = ? order by relevant desc, age asc, patternendtime desc, patternquality desc limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 26 01 904 27m27s 1s822ms [ User: postgres - Total duration: 27m27s - Times executed: 904 ]
-
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 01:06:32 Duration: 1m20s 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 01:50:34 Duration: 1m4s 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 01:33:12 Duration: 43s578ms Database: acaweb_fx User: postgres Bind query: yes
14 50ms 42s254ms 1s742ms 938 27m14s 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 #14
Day Hour Count Duration Avg duration Jul 26 01 938 27m14s 1s742ms [ User: postgres - Total duration: 27m14s - Times executed: 938 ]
-
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 = 5135 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 > 61321484 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:24:25 Duration: 42s254ms 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 > 61318721 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:24:20 Duration: 41s768ms Database: acaweb_fx User: postgres Bind query: yes
-
SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 5376 AND patternlengthbars >= 20 AND averagequality >= 0.3 AND (timequality >= 0.0 OR timequality = - 1) AND errormargin >= 0.0 AND 1 - noise >= 0.0 AND s.nonliquid = 0 AND PatternID & 39 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 61321780 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:28:39 Duration: 37s906ms Database: acaweb_fx User: postgres Bind query: yes
15 58ms 4s58ms 1s676ms 883 24m40s 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 #15
Day Hour Count Duration Avg duration Jul 26 01 883 24m40s 1s676ms [ User: postgres - Total duration: 24m40s - Times executed: 883 ]
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 961933, '2021-07-26 00:00:00'::timestamp without time zone, 1.1773, 1.1773, 1.1769, 1.1773, 70, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 961933 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 4s58ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022886, '2021-07-26 01:00:00'::timestamp without time zone, 2153.22, 2170.3, 2153.22, 2169.09, 117355, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1022886 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s833ms Database: acaweb_fx User: postgres
-
INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1009988, '2021-07-26 01:00:00'::timestamp without time zone, 12.886, 12.89, 12.883, 12.888, 228, 0, '2021-07-26 01:03:34'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T60 WHERE symbolid = 1009988 AND pricedatetime = '2021-07-26 01:00:00'::timestamp without time zone);
Date: 2021-07-26 01:03:38 Duration: 3s816ms Database: acaweb_fx User: postgres
16 50ms 58s938ms 1s639ms 1,833 50m4s 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 #16
Day Hour Count Duration Avg duration Jul 26 01 1,833 50m4s 1s639ms [ User: postgres - Total duration: 50m4s - Times executed: 1833 ]
-
SELECT DISTINCT a.ResultUID AS ruid, c.symbolid AS sid, c.symbol AS sym, c.longname as longname, c.shortname, c.Exchange AS e, c.timegranularity AS tg, p.PatternID AS pid, a.direction AS d, cast(atbaridentified as timestamp) AS pet, cast(patternstarttime as timestamp) AS pst, PatternPrice AS patp, breakoutprice as pE, breakoutbars as bE, errorMargin as erm, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, cast(x0 as timestamp) AS x0, cast(x1 as timestamp) AS x1, cast(x2 as timestamp) AS x2, cast(( case when x3 = '' then '1900-01-01' else x3 end) as timestamp) AS x3, cast((case when x4 = '' then '1900-01-01' else x4 end) as timestamp) AS x4, cast(( case when x5 = '' then '1900-01-01' else x5 end) as timestamp) AS x5, cast((case when x6 = '' then '1900-01-01' else x6 end) as timestamp) AS x6, cast(( case when x7 = '' then '1900-01-01' else x7 end) as timestamp) AS x7, cast((case when x8 = '' then '1900-01-01' else x8 end) as timestamp) AS x8, cast(( case when x9 = '' then '1900-01-01' else x9 end) as timestamp) AS x9, cast(atbaridentified as timestamp) as PatternEndTime, cast(atbaridentified as timestamp) as atBar, cast((case when approachingtimestamp = '' then '1900-01-01' else approachingtimestamp end) as timestamp) as apr, dftt.timezone as tz, dftt.absolutetimezoneoffset as tzOs, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant, cast(0.0 as double precision) as premium, cast(0 as bigint) as instrumentid, 0 as derivativeid, 0 as underlyingid, 0 as isunderlying FROM symbols c INNER JOIN brokersymbollist b ON c.symbolid = b.symbolid INNER JOIN symbolgroup sg ON c.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = c.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN keylevels_results a ON a.symbolid = c.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 619 AND groupid = 4262 AND patternclassid = '1' AND patternlengthbars >= '0' 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 01:10:27 Duration: 58s938ms 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 = 689 AND groupid = 5123 AND patternclassid = '1' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '65516909' 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 01:05:21 Duration: 34s936ms 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 = 689 AND groupid = 5123 AND patternclassid = '2' AND patternlengthbars >= '20' AND a.PatternID & '39' > 0 AND dftt.dayofweek = '3' AND a.qtytp >= '0' AND a.resultuid > '65517353' 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 01:05:21 Duration: 34s932ms Database: acaweb_fx User: postgres Bind query: yes
17 50ms 1m18s 1s630ms 675 18m20s 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 01 675 18m20s 1s630ms [ User: postgres - Total duration: 18m20s - Times executed: 675 ]
-
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 01:06:32 Duration: 1m18s Database: acaweb_fx User: postgres Bind query: yes
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3599 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:50:34 Duration: 1m4s 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 = 643 AND sg.groupid = 4744 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 01:22:58 Duration: 51s471ms Database: acaweb_fx User: postgres Bind query: yes
18 179ms 1m35s 1s584ms 552 14m34s select open as _open, high as _high, low as _low, close "..." _close, volume as _volume, pricedatetime as _pricedatetime from ( select open, high, low, close, volume, pricedatetime from t15 where pricedatetime >= current_timestamp - interval ? and symbolid = ? union all select open, high, low, close, volume, pricedatetime from t15_ps where pricedatetime >= current_timestamp - interval ? and symbolid = ? order by pricedatetime desc limit ?) a order by _pricedatetime asc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 26 01 552 14m34s 1s584ms [ User: postgres - Total duration: 14m34s - Times executed: 552 ]
-
select open as _open, high as _high, low as _low, close as _close, volume as _volume, pricedatetime as _pricedatetime FROM ( select open, high, low, close, volume, pricedatetime FROM T15 WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 union all select open, high, low, close, volume, pricedatetime FROM T15_ps WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 order by pricedatetime desc limit 672) a order by _pricedatetime asc;
Date: 2021-07-26 01:03:13 Duration: 1m35s Database: acaweb_fx User: postgres
-
select open as _open, high as _high, low as _low, close as _close, volume as _volume, pricedatetime as _pricedatetime FROM ( select open, high, low, close, volume, pricedatetime FROM T15 WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 968670 union all select open, high, low, close, volume, pricedatetime FROM T15_ps WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 968670 order by pricedatetime desc limit 672) a order by _pricedatetime asc;
Date: 2021-07-26 01:03:33 Duration: 44s797ms Database: acaweb_fx User: postgres
-
select open as _open, high as _high, low as _low, close as _close, volume as _volume, pricedatetime as _pricedatetime FROM ( select open, high, low, close, volume, pricedatetime FROM T15 WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 union all select open, high, low, close, volume, pricedatetime FROM T15_ps WHERE pricedatetime >= current_timestamp - interval '30 days' and symbolid = 1026374 order by pricedatetime desc limit 672) a order by _pricedatetime asc;
Date: 2021-07-26 01:31:50 Duration: 43s832ms Database: acaweb_fx User: postgres
19 51ms 4s66ms 1s138ms 1,838 34m51s 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 #19
Day Hour Count Duration Avg duration Jul 26 01 1,838 34m51s 1s138ms [ User: postgres - Total duration: 34m51s - Times executed: 1838 ]
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002022, '2021-07-25 18:30:00'::timestamp without time zone, 7017.4, 7017.4, 7017.4, 7017.4, 2663, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1002022 AND pricedatetime = '2021-07-25 18:30:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 4s66ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 983786, '2021-07-26 01:30:00'::timestamp without time zone, 71.55, 71.58, 71.5, 71.56, 61, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 983786 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s816ms Database: acaweb_fx User: postgres
-
INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1022795, '2021-07-26 01:30:00'::timestamp without time zone, 1.05527, 1.05558, 1.05522, 1.0553, 253, 0, '2021-07-26 01:03:35'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T30 WHERE symbolid = 1022795 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);
Date: 2021-07-26 01:03:38 Duration: 3s781ms Database: acaweb_fx User: postgres
20 50ms 3s977ms 977ms 3,384 55m8s insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) select ?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone where not exists ( select ? from t15 where symbolid = ? and pricedatetime = ?::timestamp without time zone);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 26 01 3,384 55m8s 977ms [ User: postgres - Total duration: 55m8s - Times executed: 3384 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1002911, '2021-07-26 01:45:00'::timestamp without time zone, 6.31602, 6.31602, 6.31499, 6.31504, 130, 0, '2021-07-26 01:05:13'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1002911 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone);
Date: 2021-07-26 01:05:17 Duration: 3s977ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1009926, '2021-07-26 02:00:00'::timestamp without time zone, 120.209, 120.213, 120.2, 120.207, 151, 0, '2021-07-26 01:16:14'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1009926 AND pricedatetime = '2021-07-26 02:00:00'::timestamp without time zone);
Date: 2021-07-26 01:16:18 Duration: 3s850ms Database: acaweb_fx User: postgres
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010176, '2021-07-26 01:45:00'::timestamp without time zone, 1800.94, 1801.06, 1800.65, 1800.82, 313, 0, '2021-07-26 01:05:12'::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM T15 WHERE symbolid = 1010176 AND pricedatetime = '2021-07-26 01:45:00'::timestamp without time zone);
Date: 2021-07-26 01:05:16 Duration: 3s831ms Database: acaweb_fx User: postgres
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 2s158ms 2 1s77ms 1s80ms 1s79ms 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 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 (((symbol ilike '%eurusd%' AND timegranularity = 15);Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Jul 26 01 2 2s158ms 1s79ms [ User: postgres - Total duration: 17s72ms - Times executed: 2 ]
-
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 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 (((symbol ilike '%eurusd%' AND timegranularity = 15);
Date: 2021-07-26 01:48:38 Duration: 1s80ms Database: postgres User: acaweb_fx Remote: postgres
-
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 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 (((symbol ilike '%eurusd%' AND timegranularity = 15);
Date: 2021-07-26 01:48:38 Duration: 1s77ms Database: postgres User: acaweb_fx Remote: postgres
2 2s145ms 2 1s67ms 1s78ms 1s72ms 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 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 (((symbol ilike '%usdchf%' AND timegranularity <= 1440);Times Reported Time consuming prepare #2
Day Hour Count Duration Avg duration 01 2 2s145ms 1s72ms [ User: postgres - Total duration: 24s908ms - Times executed: 2 ]
-
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 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 (((symbol ilike '%usdchf%' AND timegranularity <= 1440);
Date: 2021-07-26 01:48:38 Duration: 1s78ms Database: postgres User: acaweb_fx Remote: postgres
-
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 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 (((symbol ilike '%usdchf%' AND timegranularity <= 1440);
Date: 2021-07-26 01:48:38 Duration: 1s67ms Database: postgres User: acaweb_fx Remote: postgres
3 1s179ms 1 1s179ms 1s179ms 1s179ms SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 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 > 61303722 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;Times Reported Time consuming prepare #3
Day Hour Count Duration Avg duration 01 1 1s179ms 1s179ms [ User: postgres - Total duration: 6s386ms - 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 = 566 AND sg.groupid = 3600 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 > 61303722 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:48:34 Duration: 1s179ms Database: postgres User: acaweb_fx Remote: postgres
4 1s178ms 1 1s178ms 1s178ms 1s178ms SELECT DISTINCT a.ResultUID AS ruid, s.symbolid AS sid, symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, p.PatternID AS pid, Direction AS d, PatternStartTime AS pst, PatternEndTime AS pet, PatternStartPrice AS psp, PatternEndPrice AS pep, priceX as px, timeX as tx, priceA as pa, timeA as ta, priceB as pb, timeB as tb, priceC as pc, timeC as tc, priceD as pd, timeD as td, averagequality as aq, timequality as tq, errormargin as rq, (1 - noise) as c, target10 as t10, target06 as t06, target16 as t16, target07 as t07, target12 as t12, target03 as t03, target05 as t05, PatternLengthBars AS l, temporarypattern as tp, Bandwidth AS bw, QtyTP AS qtp, p.patternname as patternname, averagequality, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN fibonacci_results a ON a.symbolid = s.symbolid INNER JOIN FibonacciPatterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_fibonacci_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 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 > 61321873 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;Times Reported Time consuming prepare #4
Day Hour Count Duration Avg duration 01 1 1s178ms 1s178ms [ User: postgres - Total duration: 6s382ms - 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 = 566 AND sg.groupid = 3600 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 > 61321873 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:48:34 Duration: 1s178ms Database: postgres User: acaweb_fx Remote: postgres
5 1s68ms 5 54ms 612ms 213ms with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;Times Reported Time consuming prepare #5
Day Hour Count Duration Avg duration 01 5 1s68ms 213ms [ User: postgres - Total duration: 8s897ms - Times executed: 5 ]
-
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 01:48:53 Duration: 612ms Database: postgres User: acaweb_fx Remote: postgres
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 01:25:56 Duration: 175ms Database: postgres User: acaweb_fx Remote: postgres
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 01:55:56 Duration: 159ms Database: postgres User: acaweb_fx Remote: postgres
6 1s6ms 2 474ms 532ms 503ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND (((s.symbol ilike '%eurusd%' AND timegranularity = 240);Times Reported Time consuming prepare #6
Day Hour Count Duration Avg duration 01 2 1s6ms 503ms [ User: postgres - Total duration: 509ms - Times executed: 2 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND (((s.symbol ilike '%eurusd%' AND timegranularity = 240);
Date: 2021-07-26 01:48:47 Duration: 532ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND (((s.symbol ilike '%eurusd%' AND timegranularity = 240);
Date: 2021-07-26 01:48:42 Duration: 474ms Database: postgres User: acaweb_fx Remote: postgres
7 571ms 4 114ms 168ms 142ms 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 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 (((symbol ilike '%xauusd%' AND timegranularity <= 1440);Times Reported Time consuming prepare #7
Day Hour Count Duration Avg duration 01 4 571ms 142ms [ User: postgres - Total duration: 56s897ms - Times executed: 4 ]
-
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 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 (((symbol ilike '%xauusd%' AND timegranularity <= 1440);
Date: 2021-07-26 01:48:31 Duration: 168ms Database: postgres User: acaweb_fx Remote: postgres
-
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 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 (((symbol ilike '%xauusd%' AND timegranularity <= 1440);
Date: 2021-07-26 01:48:31 Duration: 165ms Database: postgres User: acaweb_fx Remote: postgres
-
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 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 (((symbol ilike '%xauusd%' AND timegranularity <= 1440);
Date: 2021-07-26 01:48:32 Duration: 123ms Database: postgres User: acaweb_fx Remote: postgres
8 550ms 2 215ms 335ms 275ms 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 prepare #8
Day Hour Count Duration Avg duration 01 2 550ms 275ms [ User: postgres - Total duration: 654ms - Times executed: 2 ]
-
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 01:48:26 Duration: 335ms Database: postgres User: acaweb_fx Remote: postgres
-
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 01:48:31 Duration: 215ms Database: postgres User: acaweb_fx Remote: postgres
9 444ms 4 61ms 233ms 111ms WITH rar_max as ( ;Times Reported Time consuming prepare #9
Day Hour Count Duration Avg duration 01 4 444ms 111ms [ User: postgres - Total duration: 5m13s - Times executed: 4 ]
-
WITH rar_max as ( ;
Date: 2021-07-26 01:23:37 Duration: 233ms Database: postgres User: acaweb_fx Remote: postgres
-
WITH rar_max as ( ;
Date: 2021-07-26 01:28:31 Duration: 78ms Database: postgres User: acaweb_fx Remote: postgres
-
WITH rar_max as ( ;
Date: 2021-07-26 01:27:03 Duration: 70ms Database: postgres User: acaweb_fx Remote: postgres
10 399ms 1 399ms 399ms 399ms 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 = 5400 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 > 517118119 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming prepare #10
Day Hour Count Duration Avg duration 01 1 399ms 399ms [ User: postgres - Total duration: 1s491ms - 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 = 566 AND sg.groupid = 5400 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 > 517118119 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:48:36 Duration: 399ms Database: postgres User: acaweb_fx Remote: postgres
11 370ms 1 370ms 370ms 370ms 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 = 665 AND sg.groupid = 4960 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 > 517279332 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming prepare #11
Day Hour Count Duration Avg duration 01 1 370ms 370ms [ User: postgres - Total duration: 2s117ms - 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 = 665 AND sg.groupid = 4960 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 > 517279332 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:48:43 Duration: 370ms Database: postgres User: acaweb_fx Remote: postgres
12 370ms 4 57ms 121ms 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 prepare #12
Day Hour Count Duration Avg duration 01 4 370ms 92ms [ User: postgres - Total duration: 20s882ms - Times executed: 4 ]
-
with rankedmt4 as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors ), last_feed_entry as ( select * from rankedmt4 where r = 1 ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = 'OK' ), earliest_entry_after_ok as ( select m.datafeedname, min(m.eventtimestamp) as eventtimestamp from mt4datafeederrors m left outer join ( select datafeedname, eventtimestamp from ok_entries where r = 1) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, '1900-01-01'::timestamp without time zone) group by m.datafeedname ), notified_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where notified is not null and notified <> '' ), broker as ( select *, row_number() over (partition by feedname order by brokerid) r from ( select distinct b.brokerid, b.name as brokername, dss.classname as feedname from downloadersymbolsettings dss inner join brokersymbollist bsl on dss.symbolid = bsl.symbolid inner join broker b on bsl.brokerid = b.brokerid where dss.enabled = 1) a ) select last.id, last.datafeedname, last.eventtimestamp, last.status, last.errordescription, last.serveraddress, last.username, note.notified, note.eventtimestamp, broker.brokername from last_feed_entry last inner join earliest_entry_after_ok after_ok on last.datafeedname = after_ok.datafeedname inner join broker on last.datafeedname = broker.feedname left outer join ok_entries ok on ok.datafeedname = last.datafeedname left outer join notified_entries note on note.datafeedname = last.datafeedname and note.r = 1 where (ok.r is null or ok.r = 1) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = 'OK') and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > 60 * 60 and last.eventtimestamp > current_timestamp - interval '1 day' and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval '10 hours') and last.eventtimestamp > current_timestamp - interval '1 hour' and broker.r = 1;
Date: 2021-07-26 01:20: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 01:00:02 Duration: 116ms 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 01:30:02 Duration: 75ms Database: postgres User: acaweb_fx Remote: postgres
13 292ms 1 292ms 292ms 292ms UPDATE whatshot_pref SET whatshotlimit = $1, whatshotpercent = $2, groupname = $3 WHERE clientid = $4;Times Reported Time consuming prepare #13
Day Hour Count Duration Avg duration 01 1 292ms 292ms [ User: postgres - Total duration: 53ms - Times executed: 1 ]
-
UPDATE whatshot_pref SET whatshotlimit = $1, whatshotpercent = $2, groupname = $3 WHERE clientid = $4;
Date: 2021-07-26 01:48:54 Duration: 292ms Database: postgres User: acaweb_fx Remote: postgres
14 275ms 2 137ms 137ms 137ms 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 = 622 AND sg.groupid = 4352 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 > 61321671 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;Times Reported Time consuming prepare #14
Day Hour Count Duration Avg duration 01 2 275ms 137ms [ User: postgres - Total duration: 5s435ms - Times executed: 2 ]
-
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 = 622 AND sg.groupid = 4352 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 > 61321671 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:48:17 Duration: 137ms Database: postgres User: acaweb_fx Remote: postgres
-
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 = 622 AND sg.groupid = 4352 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 > 61321671 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, averagequality DESC LIMIT 50;
Date: 2021-07-26 01:48:17 Duration: 137ms Database: postgres User: acaweb_fx Remote: postgres
15 270ms 1 270ms 270ms 270ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND sg.groupid = 3332 AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.5 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 > 517276860 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming prepare #15
Day Hour Count Duration Avg duration 01 1 270ms 270ms [ User: postgres - Total duration: 506ms - 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 = 529 AND sg.groupid = 3332 AND breakout >= 0.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.5 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 > 517276860 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:48:34 Duration: 270ms Database: postgres User: acaweb_fx Remote: postgres
16 268ms 1 268ms 268ms 268ms 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 = 666 AND groupid = 5014 AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.qtytp >= $5 AND a.resultuid > $6 AND c.nonliquid = $7 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;Times Reported Time consuming prepare #16
Day Hour Count Duration Avg duration 01 1 268ms 268ms [ User: postgres - Total duration: 542ms - Times executed: 1 ]
-
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 = 666 AND groupid = 5014 AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.qtytp >= $5 AND a.resultuid > $6 AND c.nonliquid = $7 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 01:48:39 Duration: 268ms Database: postgres User: acaweb_fx Remote: postgres
17 266ms 1 266ms 266ms 266ms 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 = 529 AND sg.groupid = 3344 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 > 61321341 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 prepare #17
Day Hour Count Duration Avg duration 01 1 266ms 266ms [ User: postgres - Total duration: 463ms - 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 = 529 AND sg.groupid = 3344 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 > 61321341 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 01:48:27 Duration: 266ms Database: postgres User: acaweb_fx Remote: postgres
18 266ms 2 85ms 180ms 133ms WITH last_candle AS ( ;Times Reported Time consuming prepare #18
Day Hour Count Duration Avg duration 01 2 266ms 133ms [ User: postgres - Total duration: 1s707ms - Times executed: 2 ]
-
WITH last_candle AS ( ;
Date: 2021-07-26 01:32:07 Duration: 180ms Database: postgres User: acaweb_fx Remote: postgres
-
WITH last_candle AS ( ;
Date: 2021-07-26 01:12:10 Duration: 85ms Database: postgres User: acaweb_fx Remote: postgres
19 257ms 2 99ms 158ms 128ms SELECT (cast(substring(tz.gmoffset from 1 for 3) as float) * 60 + cast(substring(tz.gmoffset from 5 for 2) as float)) / 60 as offset FROM timezones tz WHERE tz.timezone = $1;Times Reported Time consuming prepare #19
Day Hour Count Duration Avg duration 01 2 257ms 128ms [ User: postgres - Total duration: 1s569ms - Times executed: 2 ]
-
SELECT (cast(substring(tz.gmoffset from 1 for 3) as float) * 60 + cast(substring(tz.gmoffset from 5 for 2) as float)) / 60 as offset FROM timezones tz WHERE tz.timezone = $1;
Date: 2021-07-26 01:28:11 Duration: 158ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT (cast(substring(tz.gmoffset from 1 for 3) as float) * 60 + cast(substring(tz.gmoffset from 5 for 2) as float)) / 60 as offset FROM timezones tz WHERE tz.timezone = $1;
Date: 2021-07-26 01:23:40 Duration: 99ms Database: postgres User: acaweb_fx Remote: postgres
20 256ms 1 256ms 256ms 256ms 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 = 479 AND sg.groupid = 3001 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 > 517255089 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming prepare #20
Day Hour Count Duration Avg duration 01 1 256ms 256ms [ User: postgres - Total duration: 213ms - 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 = 479 AND sg.groupid = 3001 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 > 517255089 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:48:29 Duration: 256ms Database: postgres User: acaweb_fx Remote: postgres
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 5s343ms 11 67ms 1s373ms 485ms 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 #1
Day Hour Count Duration Avg duration Jul 26 01 11 5s343ms 485ms [ User: postgres - Total duration: 12s585ms - Times executed: 11 ]
-
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 01:25:57 Duration: 1s373ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125', $3 = '125', $4 = '125', $5 = '125', $6 = '125', $7 = '125', $8 = '125', $9 = '125'
-
with wh_patitioned as ( select row_number() over (partition by symbol, a.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset as timezoneoffset, ar.patternlengthbars as length, ar.patternquality as quality FROM whatshot_probability whp INNER JOIN autochartist_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_autochartist_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $1 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $2 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $3) AND interval >= 60 AND percent >= 60 AND type = 'cp' and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a ), wh_patitioned2 as ( select row_number() over (partition by symbol, a2.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $4 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $5 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $6) AND interval >= 60 AND percent >= 60 AND type = 'kl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a2 ), wh_patitioned3 as ( select row_number() over (partition by symbol, a3.basegroupname order by resultuid desc) as rn, * from ( SELECT whp.resultuid, g.basegroupname, type, whid, whp.exchange, whp.symbol, patternname, whp.direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime + (interval || ' minutes')::interval as patternendtime, patternprice as predictionpricefrom, patternprice as predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, rar.age, dftt.timezone, dftt.absolutetimezoneoffset, ar.patternlengthbars as length, ar.qtytp as quality FROM whatshot_probability whp INNER JOIN keylevels_results ar ON whp.resultuid = ar.resultuid INNER JOIN relevance_keylevels_results rar ON ar.resultuid = rar.resultuid INNER JOIN downloadersymbolsettings dss ON ar.symbolid = dss.symbolid INNER JOIN datafeedstimetable dftt ON dss.classname = dftt.classname INNER JOIN symbols s on whp.symbolid = s.symbolid INNER JOIN symbolgroup sg on s.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN whatshot_groups whg ON whg.groupid = g.groupid INNER JOIN brokersymbollist bsl ON bsl.symbolid = sg.symbolid AND bsl.brokerid = $7 INNER JOIN brokergroups bg ON bg.groupid = sg.groupid AND bg.brokerid = $8 WHERE whid = ( SELECT MAX(whid) FROM whatshot WHERE brokerid = $9) AND interval >= 60 AND percent >= 60 AND type = 'ekl' AND rar.relevant = 1 AND rar.age <= 10 and s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 and dftt.dayofweek = 3) a3 ) select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, timezoneoffset, length, quality from wh_patitioned where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned2 where rn = 1 UNION ALL select resultuid, basegroupname, type, whid, exchange, symbol, patternname, direction, hod, interval, symbol_percent, pattern_percent, hod_percent, percent, new, patternendtime, predictionpricefrom, predictionpriceto, pattern_correct, pattern_total, hod_correct, hod_total, symbol_correct, symbol_total, age, timezone, absolutetimezoneoffset, length, quality from wh_patitioned3 where rn = 1;
Date: 2021-07-26 01:46:42 Duration: 636ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '637', $2 = '637', $3 = '637', $4 = '637', $5 = '637', $6 = '637', $7 = '637', $8 = '637', $9 = '637'
-
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 01:03:45 Duration: 626ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '642', $2 = '642', $3 = '642', $4 = '642', $5 = '642', $6 = '642', $7 = '642', $8 = '642', $9 = '642'
2 3s889ms 5 160ms 1s675ms 777ms 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 #2
Day Hour Count Duration Avg duration 01 5 3s889ms 777ms [ User: postgres - Total duration: 815ms - Times executed: 5 ]
-
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 01:03:52 Duration: 1s675ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986915', $2 = '558'
-
SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;
Date: 2021-07-26 01:28:50 Duration: 940ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986695', $2 = '558'
-
SELECT dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, hour, (psh.ave - psh.stddev / 2.0) AS low, psh.ave, (psh.ave + psh.stddev / 2.0) AS high, psh.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM brokersymbollist bsl INNER JOIN powerstats_symboldata psd ON bsl.symbolid = psd.symbolid INNER JOIN powerstats_hourly psh ON psd.hourlysymbolID = psh.symbolid INNER JOIN symbols s ON psh.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN mat_ps_hourly_symbolid_max_enddate e ON psh.enddate = e.enddate AND psh.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 GROUP BY dss.downloadersymbol, psh.symbolid, s.symbol, s.longname, s.exchange, psh.hour, (psh.ave - psh.stddev / 2.0), psh.ave, (psh.ave + psh.stddev / 2.0), psh.enddate, dtt.absolutetimezoneoffset, dtt.timezone ORDER BY hour ASC;
Date: 2021-07-26 01:49:10 Duration: 756ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986917', $2 = '558'
3 3s111ms 11 54ms 615ms 282ms WITH last_candle AS ( ;Times Reported Time consuming bind #3
Day Hour Count Duration Avg duration 01 11 3s111ms 282ms [ User: postgres - Total duration: 49s593ms - Times executed: 11 ]
-
WITH last_candle AS ( ;
Date: 2021-07-26 01:20:05 Duration: 615ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
-
WITH last_candle AS ( ;
Date: 2021-07-26 01:48:18 Duration: 420ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
-
WITH last_candle AS ( ;
Date: 2021-07-26 01:24:35 Duration: 418ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '125', $2 = '125'
4 2s752ms 4 329ms 1s225ms 688ms 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 #4
Day Hour Count Duration Avg duration 01 4 2s752ms 688ms [ User: postgres - Total duration: 1s567ms - Times executed: 4 ]
-
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 01:03:52 Duration: 1s225ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986915', $2 = '558'
-
SELECT DISTINCT dss.downloadersymbol, pssd.symbolid, s.symbol, s.longname, s.exchange, day, (pssd.ave - pssd.stddev / 2.0) AS low, pssd.ave, (pssd.ave + pssd.stddev / 2.0) AS high, pssd.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM powerstats_daily pssd INNER JOIN downloadersymbolsettings dss ON pssd.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN powerstats_symboldata psd ON psd.DailySymbolID = pssd.symbolid INNER JOIN symbols s ON psd.DailySymbolID = s.symbolid and s.symbolid = dss.symbolid INNER JOIN brokersymbollist bsl ON s.symbolid = bsl.symbolid INNER JOIN mat_ps_daily_symbolid_max_enddate e ON pssd.enddate = e.enddate AND pssd.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 ORDER BY day ASC;
Date: 2021-07-26 01:28:50 Duration: 710ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986695', $2 = '558'
-
SELECT DISTINCT dss.downloadersymbol, pssd.symbolid, s.symbol, s.longname, s.exchange, day, (pssd.ave - pssd.stddev / 2.0) AS low, pssd.ave, (pssd.ave + pssd.stddev / 2.0) AS high, pssd.enddate, dtt.absolutetimezoneoffset datafeedtimezoneoffset, dtt.timezone datafeedtimezonename FROM powerstats_daily pssd INNER JOIN downloadersymbolsettings dss ON pssd.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN powerstats_symboldata psd ON psd.DailySymbolID = pssd.symbolid INNER JOIN symbols s ON psd.DailySymbolID = s.symbolid and s.symbolid = dss.symbolid INNER JOIN brokersymbollist bsl ON s.symbolid = bsl.symbolid INNER JOIN mat_ps_daily_symbolid_max_enddate e ON pssd.enddate = e.enddate AND pssd.symbolid = e.symbolid WHERE psd.symbolid = $1 AND bsl.brokerid = $2 AND dtt.dayofweek = 3 ORDER BY day ASC;
Date: 2021-07-26 01:49:10 Duration: 486ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986917', $2 = '558'
5 2s486ms 18 52ms 337ms 138ms WITH rar_max as ( ;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 01 18 2s486ms 138ms [ User: postgres - Total duration: 14m6s - Times executed: 18 ]
-
WITH rar_max as ( ;
Date: 2021-07-26 01:05:18 Duration: 337ms 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 = '0', $45 = '', $46 = '0', $47 = '0', $48 = '0', $49 = '0', $50 = '0', $51 = 't', $52 = '10', $53 = '10'
-
WITH rar_max as ( ;
Date: 2021-07-26 01:48:30 Duration: 251ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '627', $2 = '7', $3 = '15', $4 = '30', $5 = '60', $6 = '120', $7 = '240', $8 = '480', $9 = '1440', $10 = '0', $11 = '', $12 = '240', $13 = '#ADBE', $14 = '#AIRF', $15 = '#ALVG', $16 = '#AMZN', $17 = '#APPL', $18 = '#BA', $19 = '#BABA', $20 = '#BAYGn', $21 = '#BMWG', $22 = '#BNPP', $23 = '#BP', $24 = '#CAT', $25 = '#CBKG', $26 = '#DAIGn', $27 = '#DBKGn', $28 = '#DIS', $29 = '#EA', $30 = '#FB', $31 = '#FDX', $32 = '#GE', $33 = '#GM', $34 = '#GOOGL', $35 = '#GS', $36 = '#INTC', $37 = '#JPM', $38 = '#KO', $39 = '#MSFT', $40 = '#NFLX', $41 = '#RDSa', $42 = '#TSLA', $43 = '#TWTR', $44 = '#VOWG', $45 = '#WMT', $46 = '#XOM', $47 = 'AUDCAD', $48 = 'AUDCHF', $49 = 'AUDJPY', $50 = 'AUDNZD', $51 = 'AUDUSD', $52 = 'AUS_200', $53 = 'BTCEUR', $54 = 'BTCGBP', $55 = 'BTCJPY', $56 = 'BTCUSD', $57 = 'CADCHF', $58 = 'CADJPY', $59 = 'CHFJPY', $60 = 'CL_BRENT', $61 = 'DASHUSD', $62 = 'EOSUSD', $63 = 'ESP_35', $64 = 'ETHEUR', $65 = 'ETHGBP', $66 = 'ETHJPY', $67 = 'ETHUSD', $68 = 'EURAUD', $69 = 'EURCAD', $70 = 'EURCHF', $71 = 'EURGBP', $72 = 'EURHUF', $73 = 'EURJPY', $74 = 'EURMXN', $75 = 'EURNOK', $76 = 'EURNZD', $77 = 'EURPLN', $78 = 'EURSEK', $79 = 'EURTRY', $80 = 'EURUSD', $81 = 'EUR_50', $82 = 'FRA_40', $83 = 'GBPAUD', $84 = 'GBPCAD', $85 = 'GBPCHF', $86 = 'GBPJPY', $87 = 'GBPNZD', $88 = 'GBPUSD', $89 = 'GBPZAR', $90 = 'GBR_100', $91 = 'GER_30', $92 = 'HKDJPY', $93 = 'HKG_50', $94 = 'IOTAUSD', $95 = 'LTCEUR', $96 = 'LTCJPY', $97 = 'LTCUSD', $98 = 'NAS100', $99 = 'NEOUSD', $100 = 'NOKJPY', $101 = 'NOKSEK', $102 = 'NZDCAD', $103 = 'NZDCHF', $104 = 'NZDJPY', $105 = 'NZDUSD', $106 = 'OMGUSD', $107 = 'SPX500', $108 = 'TRXUSD', $109 = 'US30', $110 = 'USDCAD', $111 = 'USDCHF', $112 = 'USDCNH', $113 = 'USDCZK', $114 = 'USDDKK', $115 = 'USDHUF', $116 = 'USDJPY', $117 = 'USDMXN', $118 = 'USDNOK', $119 = 'USDPLN', $120 = 'USDSEK', $121 = 'USDSGD', $122 = 'USDTRY', $123 = 'USDZAR', $124 = 'USOIL', $125 = 'XAGUSD', $126 = 'XAUEUR', $127 = 'XAUUSD', $128 = 'XMRUSD', $129 = 'XPTUSD', $130 = 'XRPUSD', $131 = 'ZARJPY', $132 = 'ZECUSD', $133 = '#BP', $134 = 'AUDCAD', $135 = 'AUDCHF', $136 = 'AUDJPY', $137 = 'AUDNZD', $138 = 'AUDUSD', $139 = 'CADCHF', $140 = 'CADJPY', $141 = 'CHFJPY', $142 = 'EURAUD', $143 = 'EURCAD', $144 = 'EURCHF', $145 = 'EURGBP', $146 = 'EURHUF', $147 = 'EURJPY', $148 = 'EURMXN', $149 = 'EURNOK', $150 = 'EURNZD', $151 = 'EURPLN', $152 = 'EURSEK', $153 = 'EURTRY', $154 = 'EURUSD', $155 = 'GBPAUD', $156 = 'GBPCAD', $157 = 'GBPCHF', $158 = 'GBPJPY', $159 = 'GBPNZD', $160 = 'GBPUSD', $161 = 'GBPZAR', $162 = 'HKDJPY', $163 = 'NOKJPY', $164 = 'NOKSEK', $165 = 'NZDCAD', $166 = 'NZDCHF', $167 = 'NZDJPY', $168 = 'NZDUSD', $169 = 'USDCAD', $170 = 'USDCHF', $171 = 'USDCNH', $172 = 'USDCZK', $173 = 'USDDKK', $174 = 'USDHUF', $175 = 'USDJPY', $176 = 'USDMXN', $177 = 'USDNOK', $178 = 'USDPLN', $179 = 'USDSEK', $180 = 'USDSGD', $181 = 'USDTRY', $182 = 'USDZAR', $183 = 'ZARJPY', $184 = 'BTCEUR', $185 = 'BTCGBP', $186 = 'BTCJPY', $187 = 'BTCUSD', $188 = 'DASHUSD', $189 = 'EOSUSD', $190 = 'ETHEUR', $191 = 'ETHGBP', $192 = 'ETHJPY', $193 = 'ETHUSD', $194 = 'IOTAUSD', $195 = 'LTCEUR', $196 = 'LTCJPY', $197 = 'LTCUSD', $198 = 'NEOUSD', $199 = 'OMGUSD', $200 = 'TRXUSD', $201 = 'XMRUSD', $202 = 'XRPUSD', $203 = 'ZECUSD', $204 = 'XAGUSD', $205 = 'XAUEUR', $206 = 'XAUUSD', $207 = 'XPTUSD', $208 = 'CL_BRENT', $209 = 'USOIL', $210 = '#AIRF', $211 = '#ALVG', $212 = '#BAYGn', $213 = '#BMWG', $214 = '#BNPP', $215 = '#CBKG', $216 = '#DAIGn', $217 = '#DBKGn', $218 = '#RDSa', $219 = '#VOWG', $220 = 'AUS_200', $221 = 'ESP_35', $222 = 'EUR_50', $223 = 'FRA_40', $224 = 'GBR_100', $225 = 'GER_30', $226 = 'HKG_50', $227 = 'NAS100', $228 = 'SPX500', $229 = 'US30', $230 = '#ADBE', $231 = '#AMZN', $232 = '#APPL', $233 = '#BA', $234 = '#BABA', $235 = '#CAT', $236 = '#DIS', $237 = '#EA', $238 = '#FB', $239 = '#FDX', $240 = '#GE', $241 = '#GM', $242 = '#GOOGL', $243 = '#GS', $244 = '#INTC', $245 = '#JPM', $246 = '#KO', $247 = '#MSFT', $248 = '#NFLX', $249 = '#TSLA', $250 = '#TWTR', $251 = '#WMT', $252 = '#XOM', $253 = '0', $254 = '', $255 = '0', $256 = '0', $257 = '0', $258 = '400', $259 = '400', $260 = 't', $261 = '10', $262 = '10'
-
WITH rar_max as ( ;
Date: 2021-07-26 01:41:05 Duration: 235ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '700', $2 = '7', $3 = '15', $4 = '30', $5 = '60', $6 = '120', $7 = '240', $8 = '480', $9 = '1440', $10 = '0', $11 = '', $12 = '250', $13 = '#C-BRENT', $14 = '#C-COCOA', $15 = '#C-COFFEE', $16 = '#C-COPPER', $17 = '#C-CORN', $18 = '#C-COTTON', $19 = '#C-FCATTLE', $20 = '#C-HEATOIL', $21 = '#C-LCATTLE', $22 = '#C-LHOG', $23 = '#C-NATGAS', $24 = '#C-OATS', $25 = '#C-ORANGE', $26 = '#C-RICE', $27 = '#C-ROBUSTA', $28 = '#C-SOYB', $29 = '#C-SOYBM', $30 = '#C-SUGAR', $31 = '#C-WHEAT', $32 = '#S-AA', $33 = '#S-AAL', $34 = '#S-AAPL', $35 = '#S-AIG', $36 = '#S-AMD', $37 = '#S-AMGN', $38 = '#S-AMZN', $39 = '#S-ATVI', $40 = '#S-BA', $41 = '#S-BABA', $42 = '#S-BP', $43 = '#S-C', $44 = '#S-CAT', $45 = '#S-CL', $46 = '#S-COST', $47 = '#S-CRM', $48 = '#S-CSCO', $49 = '#S-CX', $50 = '#S-DAL', $51 = '#S-DE', $52 = '#S-DIS', $53 = '#S-DUK', $54 = '#S-EA', $55 = '#S-EBAY', $56 = '#S-F', $57 = '#S-FB', $58 = '#S-GE', $59 = '#S-GIS', $60 = '#S-GM', $61 = '#S-GOOG', $62 = '#S-IBM', $63 = '#S-INTC', $64 = '#S-KO', $65 = '#S-MMM', $66 = '#S-MO', $67 = '#S-MSFT', $68 = '#S-NOK', $69 = '#S-OXY', $70 = '#S-TSLA', $71 = '#S-TWTR', $72 = '#S-USB', $73 = '#S-V', $74 = '#S-VLO', $75 = '#S-VZ', $76 = '#S-WBA', $77 = '#S-WDC', $78 = '#S-XOM', $79 = 'AU200', $80 = 'AUDCAD', $81 = 'AUDCHF', $82 = 'AUDJPY', $83 = 'AUDNZD', $84 = 'AUDUSD', $85 = 'CADCHF', $86 = 'CADJPY', $87 = 'CHFJPY', $88 = 'DE30', $89 = 'DJI', $90 = 'EURAUD', $91 = 'EURCAD', $92 = 'EURCHF', $93 = 'EURGBP', $94 = 'EURJPY', $95 = 'EURNZD', $96 = 'EURRUB', $97 = 'EURSEK', $98 = 'EURUSD', $99 = 'EURZAR', $100 = 'GB100', $101 = 'GBPAUD', $102 = 'GBPCAD', $103 = 'GBPCHF', $104 = 'GBPJPY', $105 = 'GBPNZD', $106 = 'GBPSEK', $107 = 'GBPUSD', $108 = 'HK50', $109 = 'JP2000', $110 = 'NIKKEI', $111 = 'NZDCAD', $112 = 'NZDCHF', $113 = 'NZDJPY', $114 = 'NZDUSD', $115 = 'Nd100', $116 = 'OIL', $117 = 'RUT2000', $118 = 'SP500', $119 = 'USDCAD', $120 = 'USDCHF', $121 = 'USDHKD', $122 = 'USDIDX', $123 = 'USDJPY', $124 = 'USDMXN', $125 = 'USDRUB', $126 = 'USDSEK', $127 = 'USDSGD', $128 = 'USDTRY', $129 = 'USDZAR', $130 = 'USVIX', $131 = 'XAGEUR', $132 = 'XAGUSD', $133 = 'XAUEUR', $134 = 'XAUOIL', $135 = 'XAUSnP', $136 = 'XAUUSD', $137 = 'XAUXAG', $138 = 'AUDCAD', $139 = 'AUDCHF', $140 = 'AUDJPY', $141 = 'AUDNZD', $142 = 'AUDUSD', $143 = 'CADCHF', $144 = 'CADJPY', $145 = 'CHFJPY', $146 = 'EURAUD', $147 = 'EURCAD', $148 = 'EURCHF', $149 = 'EURGBP', $150 = 'EURJPY', $151 = 'EURNZD', $152 = 'EURRUB', $153 = 'EURSEK', $154 = 'EURUSD', $155 = 'EURZAR', $156 = 'GBPAUD', $157 = 'GBPCAD', $158 = 'GBPCHF', $159 = 'GBPJPY', $160 = 'GBPNZD', $161 = 'GBPSEK', $162 = 'GBPUSD', $163 = 'NZDCAD', $164 = 'NZDCHF', $165 = 'NZDJPY', $166 = 'NZDUSD', $167 = 'USDCAD', $168 = 'USDCHF', $169 = 'USDHKD', $170 = 'USDJPY', $171 = 'USDMXN', $172 = 'USDRUB', $173 = 'USDSEK', $174 = 'USDSGD', $175 = 'USDTRY', $176 = 'USDZAR', $177 = 'XAGEUR', $178 = 'XAGUSD', $179 = 'XAUEUR', $180 = 'XAUOIL', $181 = 'XAUSnP', $182 = 'XAUUSD', $183 = 'XAUXAG', $184 = '#S-AA', $185 = '#S-AAL', $186 = '#S-AAPL', $187 = '#S-AIG', $188 = '#S-AMD', $189 = '#S-AMGN', $190 = '#S-AMZN', $191 = '#S-ATVI', $192 = '#S-BA', $193 = '#S-BABA', $194 = '#S-BP', $195 = '#S-C', $196 = '#S-CAT', $197 = '#S-CL', $198 = '#S-COST', $199 = '#S-CRM', $200 = '#S-CSCO', $201 = '#S-CX', $202 = '#S-DAL', $203 = '#S-DE', $204 = '#S-DIS', $205 = '#S-DUK', $206 = '#S-EA', $207 = '#S-EBAY', $208 = '#S-F', $209 = '#S-FB', $210 = '#S-GE', $211 = '#S-GIS', $212 = '#S-GM', $213 = '#S-GOOG', $214 = '#S-IBM', $215 = '#S-INTC', $216 = '#S-KO', $217 = '#S-MMM', $218 = '#S-MO', $219 = '#S-MSFT', $220 = '#S-NOK', $221 = '#S-OXY', $222 = '#S-TSLA', $223 = '#S-TWTR', $224 = '#S-USB', $225 = '#S-V', $226 = '#S-VLO', $227 = '#S-VZ', $228 = '#S-WBA', $229 = '#S-WDC', $230 = '#S-XOM', $231 = 'AU200', $232 = 'DE30', $233 = 'DJI', $234 = 'GB100', $235 = 'HK50', $236 = 'JP2000', $237 = 'NIKKEI', $238 = 'Nd100', $239 = 'RUT2000', $240 = 'SP500', $241 = 'USDIDX', $242 = 'USVIX', $243 = '#C-BRENT', $244 = '#C-COCOA', $245 = '#C-COFFEE', $246 = '#C-COPPER', $247 = '#C-CORN', $248 = '#C-COTTON', $249 = '#C-FCATTLE', $250 = '#C-HEATOIL', $251 = '#C-LCATTLE', $252 = '#C-LHOG', $253 = '#C-NATGAS', $254 = '#C-OATS', $255 = '#C-ORANGE', $256 = '#C-RICE', $257 = '#C-ROBUSTA', $258 = '#C-SOYB', $259 = '#C-SOYBM', $260 = '#C-SUGAR', $261 = '#C-WHEAT', $262 = 'OIL', $263 = '400', $264 = '400', $265 = 't', $266 = '10', $267 = '10'
6 2s36ms 4 352ms 650ms 509ms SELECT ns.nspname, a.typname, a.oid, a.typrelid, a.typbasetype, ;Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 01 4 2s36ms 509ms [ User: postgres - Total duration: 6s597ms - Times executed: 4 ]
-
SELECT ns.nspname, a.typname, a.oid, a.typrelid, a.typbasetype, ;
Date: 2021-07-26 01:30:44 Duration: 650ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT ns.nspname, a.typname, a.oid, a.typrelid, a.typbasetype, ;
Date: 2021-07-26 01:15:13 Duration: 516ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT ns.nspname, a.typname, a.oid, a.typrelid, a.typbasetype, ;
Date: 2021-07-26 01:45:13 Duration: 515ms Database: postgres User: acaweb_fx Remote: postgres
7 1s496ms 6 93ms 355ms 249ms 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 #7
Day Hour Count Duration Avg duration 01 6 1s496ms 249ms [ User: postgres - Total duration: 27s258ms - 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 01:00:03 Duration: 355ms 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 01:30:02 Duration: 278ms 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 01:20:02 Duration: 263ms Database: postgres User: acaweb_fx Remote: postgres
8 1s288ms 6 50ms 354ms 214ms SELECT ;Times Reported Time consuming bind #8
Day Hour Count Duration Avg duration 01 6 1s288ms 214ms [ User: postgres - Total duration: 29s402ms - Times executed: 6 ]
-
SELECT ;
Date: 2021-07-26 01:27:34 Duration: 354ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986627'
-
SELECT ;
Date: 2021-07-26 01:27:34 Duration: 354ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986523'
-
SELECT ;
Date: 2021-07-26 01:27:34 Duration: 340ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986868'
9 809ms 1 809ms 809ms 809ms 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 = 495 AND groupid = 3165 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;Times Reported Time consuming bind #9
Day Hour Count Duration Avg duration 01 1 809ms 809ms [ User: postgres - Total duration: 544ms - Times executed: 1 ]
-
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 = 495 AND groupid = 3165 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 01:48:47 Duration: 809ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1', $2 = '20', $3 = '3', $4 = '3', $5 = '65516553', $6 = '0'
10 684ms 4 59ms 284ms 171ms 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;Times Reported Time consuming bind #10
Day Hour Count Duration Avg duration 01 4 684ms 171ms [ User: postgres - Total duration: 3m26s - Times executed: 4 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 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 01:32:28 Duration: 284ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 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 01:05:12 Duration: 251ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 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 01:49:30 Duration: 89ms Database: postgres User: acaweb_fx Remote: postgres
11 564ms 2 119ms 444ms 282ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming bind #11
Day Hour Count Duration Avg duration 01 2 564ms 282ms [ User: postgres - Total duration: 1m8s - Times executed: 2 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:17:57 Duration: 444ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout >= 1.0 AND patternendtime = LatestBarAtBreakoutTime AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:26:35 Duration: 119ms Database: postgres User: acaweb_fx Remote: postgres
12 504ms 3 88ms 284ms 168ms 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;Times Reported Time consuming bind #12
Day Hour Count Duration Avg duration 01 3 504ms 168ms [ User: postgres - Total duration: 2m5s - Times executed: 3 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 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 01:32:28 Duration: 284ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 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 01:41:12 Duration: 132ms Database: postgres User: acaweb_fx Remote: postgres
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 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 01:49:30 Duration: 88ms Database: postgres User: acaweb_fx Remote: postgres
13 445ms 1 445ms 445ms 445ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN symbolgroup sg ON s.symbolid = sg.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 566 AND sg.groupid = 3600 AND breakout = - 1 AND patternlengthbars >= 20 AND patternquality >= 0.6 AND initialtrend >= 1.0 AND symmetry >= 1.0 AND noise <= 0.0 AND volumeincrease >= 0.0 AND TemporaryPattern = 0 AND PatternID & 65535 > 0 AND s.nonliquid = 0 AND s.deleted = 0 AND dss.enabled = 1 AND a.resultuid > 0 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;Times Reported Time consuming bind #13
Day Hour Count Duration Avg duration 01 1 445ms 445ms [ User: postgres - Total duration: 37s89ms - 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 = 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 01:17:57 Duration: 445ms Database: postgres User: acaweb_fx Remote: postgres
14 421ms 1 421ms 421ms 421ms 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 = 700 AND groupid = 5346 AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.qtytp >= $5 AND a.resultuid > $6 AND c.nonliquid = $7 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;Times Reported Time consuming bind #14
Day Hour Count Duration Avg duration 01 1 421ms 421ms [ User: postgres - Total duration: 286ms - Times executed: 1 ]
-
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 = 700 AND groupid = 5346 AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.qtytp >= $5 AND a.resultuid > $6 AND c.nonliquid = $7 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50;
Date: 2021-07-26 01:48:31 Duration: 421ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '1', $2 = '20', $3 = '39', $4 = '3', $5 = '0', $6 = '65522405', $7 = '0'
15 419ms 3 66ms 194ms 139ms SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;Times Reported Time consuming bind #15
Day Hour Count Duration Avg duration 01 3 419ms 139ms [ User: postgres - Total duration: 9s964ms - Times executed: 3 ]
-
SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;
Date: 2021-07-26 01:15:47 Duration: 194ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '986805'
-
SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;
Date: 2021-07-26 01:47:25 Duration: 159ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = 'suavemillennial@gmail.com'
-
SELECT whatshotlimit, whatshotpercent, groupname FROM whatshot_pref WHERE clientid = $1;
Date: 2021-07-26 01:20:55 Duration: 66ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '38793786'
16 415ms 1 415ms 415ms 415ms SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND (((s.symbol ilike '%eurusd%' AND timegranularity = 240);Times Reported Time consuming bind #16
Day Hour Count Duration Avg duration 01 1 415ms 415ms [ User: postgres - Total duration: 387ms - Times executed: 1 ]
-
SELECT /*server.CPResultList*/ DISTINCT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, s.symbol, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, a.resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, gmttimefound, dftt.absolutetimezoneoffset as tzOs, dftt.timezone as tz, longname, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1) THEN 0 ELSE 1 END as relevant FROM symbols s INNER JOIN brokersymbollist b ON s.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dftt ON dftt.classname = dss.classname INNER JOIN autochartist_results a ON a.symbolid = s.symbolid INNER JOIN Patterns p ON a.pattern = p.patternname LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid WHERE b.brokerid = 529 AND (((s.symbol ilike '%eurusd%' AND timegranularity = 240);
Date: 2021-07-26 01:48:42 Duration: 415ms Database: postgres User: acaweb_fx Remote: postgres
17 413ms 1 413ms 413ms 413ms 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 = 5400 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 > 517118119 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 #17
Day Hour Count Duration Avg duration 01 1 413ms 413ms [ User: postgres - Total duration: 1s491ms - 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 = 566 AND sg.groupid = 5400 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 > 517118119 AND s.nonliquid = 0 AND dftt.dayofweek = 3 ORDER BY relevant DESC, age asc, PatternEndTime DESC, PatternQuality DESC LIMIT 50;
Date: 2021-07-26 01:48:37 Duration: 413ms Database: postgres User: acaweb_fx Remote: postgres
18 382ms 3 118ms 135ms 127ms Select id, description, searchstring, clientid, brokerid from cpsearches where clientid = $1 and brokerid = $2 order by description;Times Reported Time consuming bind #18
Day Hour Count Duration Avg duration 01 3 382ms 127ms [ User: postgres - Total duration: 593ms - Times executed: 3 ]
-
Select id, description, searchstring, clientid, brokerid from cpsearches where clientid = $1 and brokerid = $2 order by description;
Date: 2021-07-26 01:16:03 Duration: 135ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = 'silverstonebluefx@gmail.com', $2 = '558'
-
Select id, description, searchstring, clientid, brokerid from cpsearches where clientid = $1 and brokerid = $2 order by description;
Date: 2021-07-26 01:26:02 Duration: 128ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '38985973', $2 = '643'
-
Select id, description, searchstring, clientid, brokerid from cpsearches where clientid = $1 and brokerid = $2 order by description;
Date: 2021-07-26 01:32:18 Duration: 118ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = 'paulo_xtrail@hotmail.com', $2 = '558'
19 331ms 2 110ms 220ms 165ms SELECT distinct g.basegroupname, s.symbol;Times Reported Time consuming bind #19
Day Hour Count Duration Avg duration 01 2 331ms 165ms [ User: postgres - Total duration: 8s559ms - Times executed: 2 ]
-
SELECT distinct g.basegroupname, s.symbol;
Date: 2021-07-26 01:17:13 Duration: 220ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '621'
-
SELECT distinct g.basegroupname, s.symbol;
Date: 2021-07-26 01:40:55 Duration: 110ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '660'
20 324ms 1 324ms 324ms 324ms SELECT s.statsid, s.description, s.groupingname FROM stats s LEFT OUTER JOIN stats_summary ss ON ss.statsid = s.statsid WHERE brokerid = $1 AND ss.total > 0 GROUP BY s.statsid, s.description, s.brokerid, s.latestupdate, s.groupingname, s.calcfrom, s.calcto, ss.statsid;Times Reported Time consuming bind #20
Day Hour Count Duration Avg duration 01 1 324ms 324ms [ User: postgres - Total duration: 175ms - Times executed: 1 ]
-
SELECT s.statsid, s.description, s.groupingname FROM stats s LEFT OUTER JOIN stats_summary ss ON ss.statsid = s.statsid WHERE brokerid = $1 AND ss.total > 0 GROUP BY s.statsid, s.description, s.brokerid, s.latestupdate, s.groupingname, s.calcfrom, s.calcto, ss.statsid;
Date: 2021-07-26 01:32:57 Duration: 324ms Database: postgres User: acaweb_fx Remote: postgres parameters: $1 = '558'
-
Events
Log levels
Key values
- 66,307 Log entries
Events distribution
Key values
- 0 PANIC entries
- 23 FATAL entries
- 3535 ERROR entries
- 281 WARNING entries
Most Frequent Errors/Events
Key values
- 3,414 Max number of times the same event was reported
- 3,839 Total events found
Rank Times reported Error 1 3,414 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 01 3,414 - LOG: process 29301 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.041 ms
- LOG: process 25139 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.033 ms
- LOG: process 15863 still waiting for AccessExclusiveLock on object 0 of class 1262 of database 0 after 1000.034 ms
Detail: Process holding the lock: 2536. Wait queue: 29301, 32270, 25139, 15863, 26292, 13104, 6454, 9383, 13176, 29113, 20093.
Statement: INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 1010532, '2021-07-26 01:30:00'::timestamp without time zone, 0.64162, 0.64175, 0.64133, 0.64142, 185, 0,'2021-07-26 01:00:13'::timestamp without time zone WHERE NOT EXISTS (SELECT 1 FROM T30 WHERE symbolid = 1010532 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);;Date: 2021-07-26 01:00:15 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 32270. Wait queue: 25139, 15863, 26292, 13104, 6454, 9383, 13176, 29113, 20093, 8981.
Statement: INSERT INTO T60 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 962193, '2021-07-26 00:00:00'::timestamp without time zone, 7.7689, 7.769, 7.7688, 7.769, 124, 0,'2021-07-26 01:00:14'::timestamp without time zone WHERE NOT EXISTS (SELECT 1 FROM T60 WHERE symbolid = 962193 AND pricedatetime = '2021-07-26 00:00:00'::timestamp without time zone);;Date: 2021-07-26 01:00:15 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 32270. Wait queue: 25139, 15863, 26292, 13104, 6454, 9383, 13176, 29113, 20093, 8981.
Statement: INSERT INTO T30 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) SELECT 982541, '2021-07-26 01:30:00'::timestamp without time zone, 17.43585, 17.44158, 17.43395, 17.43695, 295, 0,'2021-07-26 01:00:14'::timestamp without time zone WHERE NOT EXISTS (SELECT 1 FROM T30 WHERE symbolid = 982541 AND pricedatetime = '2021-07-26 01:30:00'::timestamp without time zone);;Date: 2021-07-26 01:00:15 Database: acaweb_fx Application: User: postgres Remote:
2 281 WARNING: there is no transaction in progress
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 26 01 281 - WARNING: there is no transaction in progress
Date: 2021-07-26 01:00:46 Database: acaweb_fx Application: User: postgres Remote:
3 46 ERROR: canceling statement due to user request
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 26 01 46 - ERROR: canceling statement due to user request
Statement: 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 = 643 AND groupid = 4732 AND patternclassid = $1 AND patternlengthbars >= $2 AND a.PatternID & $3 > 0 AND dftt.dayofweek = $4 AND a.qtytp >= $5 AND a.resultuid > $6 AND c.nonliquid = $7 AND c.deleted = 0 AND dss.enabled = 1 ORDER BY relevant DESC, age asc, PatternEndTime DESC, qtp DESC LIMIT 50
Date: 2021-07-26 01:01:28 Database: acaweb_fx Application: User: postgres Remote:
4 36 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 26 01 36 - ERROR: duplicate key value violates unique constraint "idx_firstemerging_chartpattern"
- ERROR: duplicate key value violates unique constraint "idx_keylevels_uniquepointsvalue"
- ERROR: duplicate key value violates unique constraint "ix_fibonacci_unique"
Detail: Key (breakout, resx0, resx1, supportx0, supportx1, resy0, resy1, supporty0, supporty1, symbolid)=(-1, 2021-07-22 21:45:00, 2021-07-23 14:00:00, 2021-07-23 06:00:00, 2021-07-23 20:45:00, 0.9292, 0.92867, 0.92549, 0.92468, 960516) 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 '960516-1|44399.9062|44400.5833|44400.25|44400.8646|0.9292|0.9287|0.9255|0.9247', 960516, 4.000000, 'Channel Down', 4, '2021-07-25 23:01:51'::timestamp without time zone, 1, 0.632891, -1.000000, 0.000000, 0.578630, 0.419285, 0.926671, 0.927947, '2021-07-25 22:45:00'::timestamp without time zone, '2021-07-27 11:15:00'::timestamp without time zone, '2021-07-22 21:45:00'::timestamp without time zone, '2021-07-25 22:45:00'::timestamp without time zone, 0.925510, 0.925760, '2021-07-22 21:45:00'::timestamp without time zone, '2021-07-23 14:00:00'::timestamp without time zone, '2021-07-23 06:00:00'::timestamp without time zone, '2021-07-23 20:45:00'::timestamp without time zone, 0.929200, 0.928670, 0.925490, 0.924680, -0.000014, -0.000008, 1.965339, 0.491182, 'Continuation', 0.000000, '2021-07-25 22:45:00'::timestamp without time zone, 0.925760, 96, 0, 0.003850, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM Autochartist_Results WHERE (breakout = -1.000000 and resx0 = '2021-07-22 21:45:00'::timestamp without time zone and resx1 = '2021-07-23 14:00:00'::timestamp without time zone and supportx0 = '2021-07-23 06:00:00'::timestamp without time zone and supportx1 = '2021-07-23 20:45:00'::timestamp without time zone and resy0 = 0.929200 and resy1 = 0.928670 and supporty0 = 0.925490 and supporty1 = 0.924680 and symbolid = 960516) or resultid = '960516-1|44399.9062|44400.5833|44400.25|44400.8646|0.9292|0.9287|0.9255|0.9247') LIMIT 1;;Date: 2021-07-26 01:02:18 Database: acaweb_fx Application: User: postgres Remote:
Detail: Key (uniquepointsvalue)=(|960557|1.05427|2|2021-07-25 22:30: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 4.000000, -1, 2, '2021-07-25 23:02:26'::timestamp without time zone, '', 0.500000, 3, 100, 1.054270, '2021-07-23 20:30:00', '2021-07-21 21:00:00', '2021-07-21 18:30:00', '', '', '', '', '', '', '', 200, 1.054002, '2021-07-25 22:30:00'::timestamp without time zone, '2021-07-25 22:30:00', 0.000000, 0.000267, 1, 960557, 0.000000, 0.000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|960557|1.05427|2|2021-07-25 22:30:00|1|-1', 0.000000, 0.000000, 3, '2021-07-21 18:30:00', 1.054270, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|960557|1.05427|2|2021-07-25 22:30:00|1|-1') LIMIT 1; ;Date: 2021-07-26 01:02:53 Database: acaweb_fx Application: User: postgres Remote:
Detail: Key (pattern, direction, patternstarttime, patternstartprice, qtytp, patternlengthbars, ratiosfound, temporarypattern, symbolid, timex, timea, timeb, timec, timed)=(Gartley, 1, 2021-07-23 14:00:00, 0.73046, 5, 20, BC=0.618*AB (0.619) , 0, 960560, 2021-07-23 14:00:00, 2021-07-23 16:00:00, 2021-07-23 18:30:00, 2021-07-23 20:00:00, 1899-12-29 00:00: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, 'Gartley', '2021-07-25 23:02:27'::timestamp without time zone, 1, '2021-07-23 14:00:00'::timestamp without time zone, '2021-07-25 22:30:00'::timestamp without time zone, 0.730460, -1.000000, 5, 0.730460, '2021-07-23 14:00:00'::timestamp without time zone, 0.732540, '2021-07-23 16:00:00'::timestamp without time zone, 0.731490, '2021-07-23 18:30:00'::timestamp without time zone, 0.732140, '2021-07-23 20:00:00'::timestamp without time zone, 0.731254, '1899-12-29 00:00:00'::timestamp without time zone, 0.897332, -1.000000, 3.664080, 20, 0.732140, 0.731802, 0.732687, 0.731951, 0.732381, 0.731697, 0.731593, 960560, 0.205336, 'BC=0.618*AB (0.619) ', 0, 'Gartley|1|2021-07-23 14:00:00|0.73046|-1|5|20|BC=0.618*AB (0.619)|0|960560|2021-07-23 14:00:00|2021-07-23 16:00:00|2021-07-23 18:30:00|2021-07-23 20:00: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-23 14:00:00'::timestamp without time zone AND patternstartprice = 0.730460 AND qtytp = 5 AND patternlengthbars = 20 AND ratiosfound = 'BC=0.618*AB (0.619) ' AND temporarypattern = 0 AND symbolid = 960560 AND timex = '2021-07-23 14:00:00'::timestamp without time zone AND timea = '2021-07-23 16:00:00'::timestamp without time zone AND timeb = '2021-07-23 18:30:00'::timestamp without time zone AND timec = '2021-07-23 20:00:00'::timestamp without time zone AND timed = '1899-12-29 00:00:00'::timestamp without time zone) LIMIT 1;;Date: 2021-07-26 01:02:57 Database: acaweb_fx Application: User: postgres Remote:
5 23 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 26 01 23 - FATAL: connection to client lost
Date: 2021-07-26 01:01:32 Database: acaweb_fx Application: User: postgres Remote:
6 22 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 26 01 22 - LOG: process 18310 still waiting for AccessShareLock on relation 52515 of database 51448 after 1000.039 ms at character 28
- LOG: process 21383 still waiting for AccessShareLock on relation 52515 of database 51448 after 1000.036 ms at character 28
- LOG: process 10755 still waiting for AccessShareLock on relation 52515 of database 51448 after 1000.037 ms at character 28
Detail: Process holding the lock: 16659. Wait queue: 18310, 21383, 10755, 20365, 27174.
Statement: SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'GIVCAPITAL - 1'Date: 2021-07-26 01:02:04 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 16659. Wait queue: 18310, 21383, 10755, 20365, 27174.
Statement: SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ADSSECURITIES - 1'Date: 2021-07-26 01:02:04 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 16659. Wait queue: 18310, 21383, 10755, 20365, 27174.
Statement: SELECT datetimeupdate FROM latest_candle_datetime_per_receng WHERE recognitionengine ILIKE 'ATFX - 1'Date: 2021-07-26 01:02:04 Database: acaweb_fx Application: User: postgres Remote:
7 6 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 26 01 6 - ERROR: column "waiting" does not exist at character 103
Statement: select pid, datname, client_addr, query_start, query from pg_stat_activity where (state = 'active' or waiting = true) and query_start < current_timestamp - INTERVAL '10 minute' and query not like 'autovacuum%' order by query_start asc
Date: 2021-07-26 01:01:01 Database: acaweb_fx Application: User: postgres Remote:
8 5 ERROR: canceling statement due to statement timeout
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 26 01 5 - ERROR: canceling statement due to statement timeout
Statement: SELECT extract(epoch from datetimeupdate) FROM latest_candle_datetime_per_receng WHERE recognitionengine ilike 'ADSSECURITIES - 1'
Date: 2021-07-26 01:02:58 Database: acaweb_fx Application: User: postgres Remote:
9 2 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 26 01 2 - ERROR: relation "t0" does not exist at character 83
- ERROR: relation "timezones_vi_vn" does not exist at character 191
Statement: SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T0 WHERE symbolid = $1 AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050 ) a ORDER BY PriceDateTime ASC
Date: 2021-07-26 01:08:15 Database: acaweb_fx Application: User: postgres Remote:
Statement: SELECT tl.timezone langTimezone, t.timezone as timezone, (cast(substring(t.gmoffset,0,4) as double precision)*60 + cast(substring(t.gmoffset,5,2) as double precision))/60 as gmoffset FROM timezones_vi_VN tl INNER JOIN timezones t ON tl.timezoneid = t.timezoneid ORDER BY t.timezone
Date: 2021-07-26 01:39:12 Database: acaweb_fx Application: User: postgres Remote:
10 2 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 26 01 2 - LOG: process 12270 still waiting for ShareLock on transaction 98914829 after 1000.036 ms
- LOG: process 32337 still waiting for ShareLock on transaction 98939993 after 1000.034 ms
Detail: Process holding the lock: 12269. Wait queue: 12270.
Context: while inserting index tuple (134192,7) 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 3.000000000000000000000000000000, -1, 1, '2021-07-25 23:04:47'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 26, 0.737175000000000024700000000000, '2021-07-26 01:00:00', '2021-07-23 23:15:00', '2021-07-23 22:30:00', '2021-07-23 18:30:00', '', '', '', '', '', '', 65, 0.737224250000000025400000000000, '2021-07-26 01:45:00'::timestamp without time zone, '2021-07-26 01:45:00', 0.000000000000000000000000000000, 0.000143250000000000337800000000, -1, 988150, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|988150|0.737175|1|2021-07-26 01:45:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-23 18:30:00', 0.737290000000000000900000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|988150|0.737175|1|2021-07-26 01:45:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;Date: 2021-07-26 01:05:15 Database: acaweb_fx Application: User: postgres Remote:
Detail: Process holding the lock: 32338. Wait queue: 32337.
Context: while inserting index tuple (134362,15) in relation "keylevels_results"
Statement: INSERT INTO keylevels_results (bandwidth, breakout, patternid, gmttimefound, approachingtimestamp, approachingregion, qtytp, patternlengthbars, patternprice, x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, breakoutbars, breakoutprice, patternendtime, atbaridentified, atpriceidentified, errorMargin, direction, symbolid, predictionpricefrom, predictionpriceto, predictiontimefrom, predictiontimebars, uniquepointsvalue, furthestPrice, relevancestartdistance, patternclassid, patternstarttime, stoplosslevel, simulation, writtendatetime) SELECT DISTINCT 9.000000000000000000000000000000, -1, 1, '2021-07-25 23:45:47'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 132, 2681.000000000000000000000000000000, '2021-07-25 18:15:00', '2021-07-23 14:15:00', '2021-07-23 12:00:00', '2021-07-21 21:45:00', '', '', '', '', '', '', 330, 2685.025000000000091000000000000000, '2021-07-25 19:00:00'::timestamp without time zone, '2021-07-25 19:00:00', 0.000000000000000000000000000000, 4.100000000000000533000000000000, -1, 920601, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|920601|2681|1|2021-07-25 19:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2021-07-21 21:45:00', 2740.000000000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone WHERE NOT EXISTS ( SELECT 1 FROM keylevels_results WHERE uniquepointsvalue = '|920601|2681|1|2021-07-25 19:00:00|-1|-1') LIMIT 1 ON CONFLICT DO NOTHING; ;Date: 2021-07-26 01:46:14 Database: acaweb_fx Application: User: postgres Remote:
11 1 ERROR: canceling autovacuum task
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 26 01 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 01:47:32
12 1 LOG: process ... still waiting for ExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #12
Day Hour Count Jul 26 01 1 - LOG: process 13054 still waiting for ExclusiveLock on relation 52717 of database 51448 after 1000.046 ms
Detail: Processes holding the lock: 29180, 12687, 12701, 31564, 11461, 12983, 26972, 12493, 10692, 12980, 1344, 12932, 13047, 13052, 13049. Wait queue: 13054.
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 01:47:32 Database: acaweb_fx Application: User: postgres Remote: