-
Global information
- Generated on Fri Aug 15 06:01:33 2025
- Log file: /home/postgres/pg_data/data/pg_log/postgresql-2025-08-15_070000.log, ..., /home/postgres/pg_data/data/pg_log/postgresql-2025-08-15_073017.log
- Parsed 4,318,945 log entries in 2m32s
- Log start from 2025-08-15 07:00:00 to 2025-08-15 08:00:00
-
Overview
Global Stats
- 2,252 Number of unique normalized queries
- 257,241 Number of queries
- 2h12m27s Total query duration
- 2025-08-15 07:00:00 First query
- 2025-08-15 08:00:00 Last query
- 2,686 queries/s at 2025-08-15 07:45:04 Query peak
- 2h12m27s Total query duration
- 8s708ms Prepare/parse total duration
- 1m28s Bind total duration
- 2h10m50s Execute total duration
- 0 Number of events
- 0 Number of unique normalized events
- 0 Max number of times the same event was reported
- 0 Number of cancellation
- 44 Total number of automatic vacuums
- 53 Total number of automatic analyzes
- 573 Number temporary file
- 157.32 MiB Max size of temporary file
- 7.80 MiB Average size of temporary file
- 3,817 Total number of sessions
- 7 sessions at 2025-08-15 07:53:38 Session peak
- 7d15h3m47s Total duration of sessions
- 2m52s Average duration of sessions
- 67 Average queries per session
- 2s82ms Average queries duration per session
- 2m50s Average idle time per session
- 3,802 Total number of connections
- 66 connections/s at 2025-08-15 07:15:31 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 2,686 queries/s Query Peak
- 2025-08-15 07:45:04 Date
SELECT Traffic
Key values
- 2,664 queries/s Query Peak
- 2025-08-15 07:45:04 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 212 queries/s Query Peak
- 2025-08-15 07:45:23 Date
Queries duration
Key values
- 2h12m27s 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) Aug 15 07 257,240 0ms 39s627ms 30ms 3m57s 4m38s 5m14s 08 1 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 15 07 208,613 26 1ms 6s627ms 16s167ms 18s691ms 08 1 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 15 07 31,755 2,188 16 96 2ms 1s332ms 1s642ms 4s971ms 08 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Aug 15 07 27,811 232,921 8.38 11.06% 08 0 1 1.00 0.00% Day Hour Count Average / Second Aug 15 07 3,802 1.06/s 08 0 0.00/s Day Hour Count Average Duration Average idle time Aug 15 07 3,817 2m52s 2m50s 08 0 0ms 0ms -
Connections
Established Connections
Key values
- 66 connections Connection Peak
- 2025-08-15 07:15:31 Date
Connections per database
Key values
- acaweb_fx Main Database
- 3,802 connections Total
Connections per user
Key values
- postgres Main User
- 3,802 connections Total
Connections per host
Key values
- 192.168.4.142 Main host with 1292 connections
- 3,802 Total connections
Host Count 127.0.0.1 114 192.168.0.216 100 192.168.0.74 926 192.168.1.145 114 192.168.1.15 136 192.168.1.20 142 192.168.1.231 1 192.168.1.239 12 192.168.1.90 65 192.168.2.126 63 192.168.2.182 12 192.168.2.205 12 192.168.2.82 52 192.168.3.199 36 192.168.4.100 1 192.168.4.108 4 192.168.4.142 1,292 192.168.4.144 4 192.168.4.150 10 192.168.4.238 12 192.168.4.33 90 192.168.4.98 330 [local] 274 -
Sessions
Simultaneous sessions
Key values
- 7 sessions Session Peak
- 2025-08-15 07:53:38 Date
Histogram of session times
Key values
- 2,790 0-500ms duration
Sessions per database
Key values
- acaweb_fx Main Database
- 3,817 sessions Total
Sessions per user
Key values
- postgres Main User
- 3,817 sessions Total
Sessions per host
Key values
- 192.168.4.142 Main Host
- 3,817 sessions Total
Host Count Total Duration Average Duration 127.0.0.1 114 11s948ms 104ms 192.168.0.216 100 43s158ms 431ms 192.168.0.236 3 2d21h12m45s 23h4m15s 192.168.0.74 925 5h34m53s 21s722ms 192.168.1.145 114 6h46m15s 3m33s 192.168.1.15 136 6h3m22s 2m40s 192.168.1.20 142 13h54m8s 5m52s 192.168.1.231 11 4h35m59s 25m5s 192.168.1.239 12 116ms 9ms 192.168.1.90 65 36s938ms 568ms 192.168.1.97 3 2d6h34m11s 18h11m23s 192.168.2.126 63 6s157ms 97ms 192.168.2.182 12 858ms 71ms 192.168.2.205 12 501ms 41ms 192.168.2.82 52 1h44m59s 2m1s 192.168.3.199 36 1s153ms 32ms 192.168.4.100 1 244ms 244ms 192.168.4.108 4 35ms 8ms 192.168.4.142 1,292 10m18s 478ms 192.168.4.144 4 34ms 8ms 192.168.4.150 10 20h16m32s 2h1m39s 192.168.4.238 12 20s991ms 1s749ms 192.168.4.33 90 5m1s 3s353ms 192.168.4.98 330 13s172ms 39ms [local] 274 3m2s 665ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 17,732 buffers Checkpoint Peak
- 2025-08-15 07:09:14 Date
- 209.944 seconds Highest write time
- 0.005 seconds Sync time
Checkpoints Wal files
Key values
- 7 files Wal files usage Peak
- 2025-08-15 07:09:14 Date
Checkpoints distance
Key values
- 206.06 Mo Distance Peak
- 2025-08-15 07:09:14 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Aug 15 07 65,447 1,943.273s 0.036s 1,943.64s 08 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Aug 15 07 0 0 24 2,060 0.005s 0s 08 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Aug 15 07 0 0s 08 0 0s Day Hour Mean distance Mean estimate Aug 15 07 32,528.67 kB 72,773.75 kB 08 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 170.73 MiB Temp Files size Peak
- 2025-08-15 07:50:07 Date
Number of temporary files
Key values
- 30 per second Temp Files Peak
- 2025-08-15 07:32:08 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Aug 15 07 573 4.37 GiB 7.80 MiB 08 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 121 523.77 MiB 3.20 MiB 9.27 MiB 4.33 MiB with rar_max as ( ;-
WITH rar_max as ( ;
Date: 2025-08-15 07:30:21 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver
2 40 1.67 GiB 2.58 MiB 157.32 MiB 42.74 MiB 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 = ? ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = ? ), 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 = ?) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, ?::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 = ?) 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 = ? where (ok.r is null or ok.r = ?) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = ?) and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > ? * ? and last.eventtimestamp > current_timestamp - interval ? and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval ?) and last.eventtimestamp > current_timestamp - interval ? and broker.r = ?;-
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: 2025-08-15 07:30:11 Duration: 8s43ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown]
-
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: 2025-08-15 07:00:10 Duration: 6s899ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown]
-
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: 2025-08-15 07:50:07 Duration: 5s70ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown]
3 16 489.75 MiB 30.61 MiB 30.61 MiB 30.61 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: 2025-08-15 07:33:14 Duration: 2s32ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:03:13 Duration: 1s683ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:31:13 Duration: 1s426ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
4 16 878.98 MiB 54.93 MiB 54.94 MiB 54.94 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: 2025-08-15 07:33:17 Duration: 3s355ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:31:16 Duration: 2s699ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:01:15 Duration: 2s101ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
5 8 541.53 MiB 67.69 MiB 67.70 MiB 67.69 MiB select updateresultsmaterializedview ();-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:20:37 Duration: 4s575ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:02:15 Duration: 2s928ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:47:16 Duration: 2s780ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
6 4 328.22 MiB 81.99 MiB 82.19 MiB 82.05 MiB select updateageforrelevantresults ();-
select updateageforrelevantresults ();
Date: 2025-08-15 07:32:13 Duration: 10s530ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:47:13 Duration: 10s522ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:17:12 Duration: 10s508ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
Queries generating the largest temporary files
Rank Size Query 1 157.32 MiB 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: 2025-08-15 07:00:07 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
2 131.77 MiB 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: 2025-08-15 07:50:05 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
3 109.88 MiB 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: 2025-08-15 07:20:03 ]
4 109.59 MiB 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: 2025-08-15 07:10:05 ]
5 103.07 MiB 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: 2025-08-15 07:10:04 ]
6 101.26 MiB 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: 2025-08-15 07:30:05 ]
7 99.91 MiB 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: 2025-08-15 07:40:04 ]
8 82.98 MiB 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: 2025-08-15 07:20:04 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
9 82.19 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 07:02:04 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
10 82.04 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 07:32:04 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
11 81.99 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 07:47:05 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
12 81.99 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 07:17:04 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
13 78.30 MiB 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: 2025-08-15 07:30:07 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
14 73.52 MiB 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: 2025-08-15 07:40:05 ]
15 67.70 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 07:32:13 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
16 67.70 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 07:02:12 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
17 67.69 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 07:47:14 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
18 67.69 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 07:17:13 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
19 67.69 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 07:50:32 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
20 67.69 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 07:05:32 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Analyzes per table
Key values
- public.solr_relevance_old (16) Main table analyzed (database acaweb_fx)
- 53 analyzes Total
Table Number of analyzes acaweb_fx.public.solr_relevance_old 16 acaweb_fx.pg_catalog.pg_attribute 6 acaweb_fx.pg_catalog.pg_type 4 acaweb_fx.public.relevance_keylevels_results 4 acaweb_fx.pg_catalog.pg_class 4 acaweb_fx.public.relevance_fibonacci_results 4 acaweb_fx.public.datafeeds_latestrun 3 acaweb_fx.public.relevance_autochartist_results 3 acaweb_fx.pg_catalog.pg_index 2 acaweb_fx.public.latest_t15_candle_view 2 acaweb_fx.public.autochartist_symbolupdates 1 socialmedia.public.processes 1 acaweb_fx.public.relevance_consecutivecandles_results 1 acaweb_fx.pg_catalog.pg_depend 1 acaweb_fx.public.latest_candle_datetime_per_receng 1 Total 53 Vacuums per table
Key values
- public.solr_relevance_old (22) Main table vacuumed on database acaweb_fx
- 44 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes acaweb_fx.public.solr_relevance_old 22 17 16,217 0 54 0 65 8,923 16 1,602,928 acaweb_fx.public.datafeeds_latestrun 3 0 365 0 7 0 0 47 7 45,769 acaweb_fx.pg_toast.pg_toast_2619 2 2 345 0 50 0 0 204 46 196,286 acaweb_fx.pg_catalog.pg_attribute 2 2 1,787 0 299 0 134 757 295 1,748,113 acaweb_fx.public.relevance_keylevels_results 2 2 8,131 0 407 2 183 2,105 394 1,322,928 acaweb_fx.pg_catalog.pg_class 2 2 730 0 86 0 80 245 85 372,350 acaweb_fx.public.relevance_autochartist_results 2 2 7,036 0 159 0 504 1,289 464 1,394,591 acaweb_fx.public.relevance_fibonacci_results 2 2 2,641 0 58 0 104 468 43 137,997 acaweb_fx.pg_catalog.pg_index 1 1 113 0 16 0 0 31 13 92,685 acaweb_fx.pg_catalog.pg_type 1 1 146 0 19 0 0 54 14 96,221 acaweb_fx.public.autochartist_symbolupdates 1 1 24,600 0 1,391 0 38,545 6,832 3,148 964,096 acaweb_fx.pg_catalog.pg_statistic 1 1 927 0 206 0 665 493 197 726,240 acaweb_fx.public.relevance_consecutivecandles_results 1 1 81 0 4 0 0 20 9 42,793 acaweb_fx.public.symbollatestupdatetime 1 1 1,769 0 79 0 655 1,104 197 533,205 acaweb_fx.public.latest_t15_candle_view 1 1 66 0 1 0 0 6 1 9,055 Total 44 36 64,954 44,669 2,836 2 40,935 22,578 4,929 9,285,257 Tuples removed per table
Key values
- public.solr_relevance_old (51566) Main table with removed tuples on database acaweb_fx
- 83375 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain acaweb_fx.public.solr_relevance_old 22 17 51,566 161,770 36,728 0 4,326 acaweb_fx.public.symbollatestupdatetime 1 1 18,758 91,486 0 0 1,714 acaweb_fx.public.autochartist_symbolupdates 1 1 4,880 44,440 0 0 40,691 acaweb_fx.public.relevance_keylevels_results 2 2 3,135 25,252 0 0 558 acaweb_fx.pg_catalog.pg_attribute 2 2 2,572 18,911 165 0 500 acaweb_fx.public.relevance_fibonacci_results 2 2 595 2,915 0 0 204 acaweb_fx.pg_catalog.pg_statistic 1 1 565 4,348 0 0 1,194 acaweb_fx.public.relevance_autochartist_results 2 2 450 17,543 0 0 760 acaweb_fx.pg_catalog.pg_class 2 2 298 3,954 60 0 300 acaweb_fx.public.datafeeds_latestrun 3 0 168 42 0 0 48 acaweb_fx.pg_catalog.pg_type 1 1 133 1,376 38 0 38 acaweb_fx.pg_toast.pg_toast_2619 2 2 132 340 0 3 100 acaweb_fx.public.latest_t15_candle_view 1 1 63 14 0 0 1 acaweb_fx.public.relevance_consecutivecandles_results 1 1 46 288 0 0 7 acaweb_fx.pg_catalog.pg_index 1 1 14 813 0 1 22 Total 44 36 83,375 373,492 36,991 4 50,463 Pages removed per table
Key values
- pg_toast.pg_toast_2619 (3) Main table with removed pages on database acaweb_fx
- 4 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed acaweb_fx.pg_toast.pg_toast_2619 2 2 132 3 acaweb_fx.pg_catalog.pg_index 1 1 14 1 acaweb_fx.pg_catalog.pg_type 1 1 133 0 acaweb_fx.public.datafeeds_latestrun 3 0 168 0 acaweb_fx.public.autochartist_symbolupdates 1 1 4880 0 acaweb_fx.pg_catalog.pg_statistic 1 1 565 0 acaweb_fx.pg_catalog.pg_attribute 2 2 2572 0 acaweb_fx.public.relevance_consecutivecandles_results 1 1 46 0 acaweb_fx.public.symbollatestupdatetime 1 1 18758 0 acaweb_fx.public.latest_t15_candle_view 1 1 63 0 acaweb_fx.public.relevance_keylevels_results 2 2 3135 0 acaweb_fx.pg_catalog.pg_class 2 2 298 0 acaweb_fx.public.solr_relevance_old 22 17 51566 0 acaweb_fx.public.relevance_autochartist_results 2 2 450 0 acaweb_fx.public.relevance_fibonacci_results 2 2 595 0 Total 44 36 83,375 4 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Aug 15 07 44 53 08 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 208,614 Total read queries
- 42,834 Total write queries
Queries by database
Key values
- acaweb_fx Main database
- 249,242 Requests
- 2h10m40s (acaweb_fx)
- Main time consuming database
Database Request type Count Duration acaweb_fx Total 249,242 2h10m40s copy from 96 6s228ms copy to 26 11s172ms cte 8,077 2h3m7s ddl 16 503ms delete 16 24ms insert 24,227 30s678ms others 5,793 7s61ms select 208,254 6m12s tcl 660 184ms update 2,077 25s665ms socialmedia Total 7,999 9s215ms insert 7,528 8s705ms select 360 294ms update 111 215ms Queries by user
Key values
- postgres Main user
- 257,241 Requests
User Request type Count Duration postgres Total 257,241 2h10m50s copy from 96 6s228ms copy to 26 11s172ms cte 8,077 2h3m7s ddl 16 503ms delete 16 24ms insert 31,755 39s383ms others 5,793 7s61ms select 208,614 6m12s tcl 660 184ms update 2,188 25s881ms Duration by user
Key values
- 2h10m50s (postgres) Main time consuming user
User Request type Count Duration postgres Total 257,241 2h10m50s copy from 96 6s228ms copy to 26 11s172ms cte 8,077 2h3m7s ddl 16 503ms delete 16 24ms insert 31,755 39s383ms others 5,793 7s61ms select 208,614 6m12s tcl 660 184ms update 2,188 25s881ms Queries by host
Key values
- 192.168.0.74 Main host
- 173,686 Requests
- 31m6s (192.168.1.145)
- Main time consuming host
Host Request type Count Duration 127.0.0.1 Total 10,080 48s912ms copy to 26 11s172ms cte 24 236ms insert 7,693 11s416ms select 783 24s752ms update 1,554 1s335ms 182.165.1.42 Total 186 6m31s cte 60 6m31s select 126 157ms 192.168.0.216 Total 400 339ms others 200 20ms select 192 212ms update 8 106ms 192.168.0.239 Total 337 569ms select 337 569ms 192.168.0.42 Total 1,484 1s118ms insert 495 51ms select 989 1s66ms 192.168.0.74 Total 173,686 29m54s cte 4,972 26m52s others 1,852 28ms select 166,862 3m1s 192.168.1.135 Total 94 341ms cte 6 77ms select 88 263ms 192.168.1.145 Total 16,856 31m6s cte 1,048 30m49s others 228 2ms select 15,580 17s224ms 192.168.1.15 Total 3,656 26m48s cte 806 26m45s others 272 3ms select 2,578 2s596ms 192.168.1.20 Total 17,373 30m53s cte 1,046 30m36s others 284 5ms select 16,043 17s668ms 192.168.1.201 Total 1,352 2s101ms select 1,352 2s101ms 192.168.1.23 Total 1,309 1s781ms select 1,309 1s781ms 192.168.1.231 Total 2 0ms others 2 0ms 192.168.1.239 Total 48 29ms others 24 2ms select 24 26ms 192.168.1.45 Total 74 205ms select 74 205ms 192.168.1.90 Total 121 34s676ms cte 6 34s563ms others 32 0ms select 83 113ms 192.168.2.126 Total 81 86ms others 18 0ms select 63 85ms 192.168.2.182 Total 48 282ms others 24 2ms select 12 11ms update 12 268ms 192.168.2.205 Total 138 131ms insert 90 7ms others 24 2ms select 20 20ms update 4 100ms 192.168.2.82 Total 4,218 9s338ms insert 3,656 7s203ms others 104 10ms select 355 1s506ms update 103 618ms 192.168.3.199 Total 144 227ms others 72 7ms select 60 61ms update 12 158ms 192.168.4.100 Total 3 115ms cte 1 115ms others 2 0ms 192.168.4.108 Total 12 0ms others 8 0ms select 4 0ms 192.168.4.142 Total 16,136 13s176ms insert 12,293 11s998ms others 2,584 29ms select 1,259 1s148ms 192.168.4.144 Total 12 1ms others 8 0ms select 4 1ms 192.168.4.150 Total 22 2s390ms others 21 0ms select 1 2s389ms 192.168.4.238 Total 36 20s127ms cte 12 20s127ms others 24 0ms 192.168.4.33 Total 7,999 9s215ms insert 7,528 8s705ms select 360 294ms update 111 215ms 192.168.4.98 Total 996 7s518ms others 6 6s683ms select 6 25ms tcl 660 184ms update 324 625ms [local] Total 338 3m1s copy from 96 6s228ms cte 96 36s56ms ddl 16 503ms delete 16 24ms others 4 262ms select 50 1m56s update 60 22s452ms Queries by application
Key values
- PostgreSQL JDBC Driver Main application
- 229,850 Requests
- 1h59m25s (PostgreSQL JDBC Driver)
- Main time consuming application
Application Request type Count Duration PostgreSQL JDBC Driver Total 229,850 1h59m25s cte 7,891 1h55m24s insert 12,788 12s49ms others 2,655 45ms select 206,516 3m49s [unknown] Total 26,939 8m10s cte 66 7m6s insert 18,967 27s333ms others 3,134 6s753ms select 1,996 27s62ms tcl 660 184ms update 2,116 3s404ms psql Total 452 3m13s copy from 96 6s228ms copy to 26 11s172ms cte 120 36s292ms ddl 16 503ms delete 16 24ms others 4 262ms select 102 1m56s update 72 22s476ms Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-08-15 07:35:35 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 149,199 0-1ms duration
Slowest individual queries
Rank Duration Query 1 39s627ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:38:07 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
2 38s294ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:56:36 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
3 37s200ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:07:20 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
4 36s864ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:17:27 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
5 36s654ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:31:02 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
6 36s487ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:24:02 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
7 36s315ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:45:56 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
8 36s159ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:31:15 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
9 36s76ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:24:18 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
10 35s896ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:07:12 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
11 35s714ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:16:25 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
12 35s382ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:39:15 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
13 34s858ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:53:05 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
14 34s727ms WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 07:44:30 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
15 22s44ms WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#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 ('500' = 0 OR ar.patternlengthbars <= '500') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;[ Date: 2025-08-15 07:59:45 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.20 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
16 20s154ms WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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 AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;[ Date: 2025-08-15 07:24:47 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
17 18s939ms WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('31' = 0 OR coalesce(bim.code, s.symbol) in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNZD', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'JPN225', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGUSD', 'XAUUSD')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;[ Date: 2025-08-15 07:59:31 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
18 18s492ms WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('31' = 0 OR coalesce(bim.code, s.symbol) in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNZD', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'JPN225', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGUSD', 'XAUUSD')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;[ Date: 2025-08-15 07:33:38 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
19 17s877ms WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 ('183' = 0 OR coalesce(bim.code, s.symbol) in ('AUDUSD', 'EURUSD', 'GBPUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGAUD', 'XAGEUR', 'XAGUSD', 'XAUAUD', 'XAUCHF', 'XAUEUR', 'XAUGBP', 'XAUJPY', 'XAUUSD', 'XPDUSD', 'XPTUSD', 'AUS200', 'CA60', 'CHINAH', 'CN50', 'EUSTX50', 'FRA40', 'GER40', 'GERTEC30', 'HK50', 'JPN225', 'MidDE50', 'NAS100', 'NETH25', 'NOR25', 'SA40', 'SCI25', 'SPA35', 'SWI20', 'UK100', 'US2000', 'US30', 'US500', 'VIX', 'AUDCAD', 'AUDCHF', 'AUDNZD', 'AUDSGD', 'EURAUD', 'EURCHF', 'EURGBP', 'GBPAUD', 'GBPCHF', 'NZDUSD', 'CHFSGD', 'EURCZK', 'EURHUF', 'EURMXN', 'EURNOK', 'EURPLN', 'EURSEK', 'EURSGD', 'EURTRY', 'EURZAR', 'GBPMXN', 'GBPNOK', 'GBPSEK', 'GBPSGD', 'GBPTRY', 'NOKJPY', 'NOKSEK', 'NZDCAD', 'NZDCHF', 'SEKJPY', 'SGDJPY', 'USDCNH', 'USDCZK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTHB', 'USDTRY', 'USDZAR', 'ZARJPY', 'ADAUSD', 'AVAXUSD', 'BCHUSD', 'BNBUSD', 'BTCUSD', 'Crypto10', 'Crypto20', 'Crypto30', 'DOGEUSD', 'DOTUSD', 'EOSUSD', 'ETHUSD', 'LINKUSD', 'LTCUSD', 'MATICUSD', 'SOLUSD', 'UNIUSD', 'XLMUSD', 'XRPUSD', 'XTZUSD', 'EURX', 'JPYX', 'USDX', 'Gasoline', 'NatGas', 'SpotBrent', 'SpotCrude', 'AAPL.US', 'ABNB.US', 'AMD.US', 'AMZN.US', 'AXP.US', 'BA.US', 'BABA.US', 'BIDU.US', 'BYND.US', 'C.US', 'COIN.US', 'CRM.US', 'DIS.US', 'EA.US', 'GOOG.US', 'GS.US', 'IBM.US', 'JPM.US', 'LMT.US', 'MA.US', 'MCD.US', 'META.US', 'MRNA.US', 'MSFT.US', 'NFLX.US', 'NKE.US', 'NVDA.US', 'ORCL.US', 'PFE.US', 'PG.US', 'PLTR.US', 'PTON.US', 'PYPL.US', 'QCOM.US', 'SNAP.US', 'SPCE.US', 'SPY.US', 'T.US', 'TMUS.US', 'TSLA.US', 'UBER.US', 'V.US', 'WMT.US', 'ZM.US', 'Cattle', 'Cocoa', 'Coffee', 'Corn', 'Cotton', 'LDSugar', 'LeanHogs', 'LondonSugar', 'Lumber', 'OJ', 'Oats', 'RghRice', 'SoyMeal', 'SoyOil', 'Soybeans', 'Sugar', 'Wheat', 'AUDJPY', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURCAD', 'EURJPY', 'EURNZD', 'GBPCAD', 'GBPJPY', 'GBPNZD', 'NZDJPY')) 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 ('500' = 0 OR ar.patternlengthbars <= '500') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;[ Date: 2025-08-15 07:56:43 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.20 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
20 17s254ms WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('31' = 0 OR coalesce(bim.code, s.symbol) in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNZD', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'JPN225', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGUSD', 'XAUUSD')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;[ Date: 2025-08-15 07:33:27 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.145 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
Time consuming queries
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 54m35s 417 178ms 39s627ms 7s855ms with rar_max as ( select resultuid from relevance_keylevels_results order by resultuid desc limit ? ), kr as ( select a.*, rr.age, rr.relevant from keylevels_results a left outer join relevance_keylevels_results rr on a.resultuid = rr.resultuid where case when false = ? then true else a.resultuid > ( select min(resultuid) from relevance_keylevels_results) end ), all_results as ( select kr.resultuid as resultuid, kr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, coalesce(bim.code, 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 kr.age is not null then kr.age when kr.resultuid <= rm.resultuid then ? else ? end as age, case when kr.relevant is not null then kr.relevant when kr.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip from kr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = kr.symbolid inner join symbols s on bsl.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on s.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 s.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join autochartist_symbolupdates au on dss.symbolid = au.symbolid left outer join relevance_keylevels_results rar on rar.resultuid = kr.resultuid left join lateral calc_kl_signal_filter (kr.resultuid) newlevels on true left join currencypips cps on cps.symbol = s.symbol left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where kr.gmttimefound > now() - interval ? and dss.enabled = ? and s.deleted = ? and (kr.simulation = ? or kr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, s.symbol) in (...)) and (? = ? or p.patternname in (...)) and (? = ? or kr.patternclassid in (...)) and (? = ? or kr.patternlengthbars <= ?) and kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, ?::timestamp without time zone) -- to make sure patternstarttime is in our t-tables ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 15 07 417 54m35s 7s855ms [ User: postgres - Total duration: 54m35s - Times executed: 417 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 51m52s - Times executed: 405 ]
[ Application: [unknown] - Total duration: 2m43s - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;
Date: 2025-08-15 07:38:07 Duration: 39s627ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;
Date: 2025-08-15 07:56:36 Duration: 38s294ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;
Date: 2025-08-15 07:07:20 Duration: 37s200ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
2 48m37s 418 361ms 22s44ms 6s979ms with rar_max as ( select resultuid from relevance_autochartist_results order by resultuid desc limit ? ), ar as ( select a.*, rr.age, rr.relevant from autochartist_results a left outer join relevance_autochartist_results rr on a.resultuid = rr.resultuid where case when false = ? then true else a.resultuid > ( select min(resultuid) from relevance_autochartist_results) end ), all_results as ( select 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, coalesce(bim.code, 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 ar.age is not null then ar.age when ar.resultuid <= rm.resultuid then ? else ? end as age, case when ar.relevant is not null then ar.relevant when ar.resultuid <= rm.resultuid then ? else ? end as relevant from ar inner join symbols s on ar.symbolid = s.symbolid and s.nonliquid = ? inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = s.symbolid inner join symbolgroup sg on bsl.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 sg.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join autochartist_symbolupdates au on dss.symbolid = au.symbolid left outer join currencypips cp on s.symbol = cp.symbol left join lateral calc_cp_signal (ar.resultuid) newlevels on true left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where ar.gmttimefound > now() - interval ? and dss.enabled = ? and s.deleted = ? and (ar.simulation = ? or ar.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, 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 and ar.patternstarttime >= coalesce(au.earliestpricedatetime, ?::timestamp without time zone) -- to make sure patternstarttime is in our t-tables ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Aug 15 07 418 48m37s 6s979ms [ User: postgres - Total duration: 48m37s - Times executed: 418 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 45m52s - Times executed: 406 ]
[ Application: [unknown] - Total duration: 2m44s - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#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 ('500' = 0 OR ar.patternlengthbars <= '500') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:45 Duration: 22s44ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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 AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:24:47 Duration: 20s154ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('31' = 0 OR coalesce(bim.code, s.symbol) in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNZD', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'JPN225', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGUSD', 'XAUUSD')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:31 Duration: 18s939ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
3 16m13s 376 558ms 7s291ms 2s588ms with rar_max as ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ? ), fr as ( select a.*, rr.age, rr.relevant from fibonacci_results a left outer join relevance_fibonacci_results rr on a.resultuid = rr.resultuid where case when false = ? then true else a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) end ), all_results as ( select fr.resultuid as resultuid, fr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, coalesce(bim.code, s.symbol) as symbol_code, s.longname as symbol_name, s.timegranularity as interval, fr.pattern as pattern_name, fr.timed as timed, fr.patternendtime as identified, dtt.timezone as timezone, fr.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when fr.age is not null then fr.age when fr.resultuid <= rm.resultuid then ? else ? end as age, case when fr.relevant is not null then fr.relevant when fr.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip from fr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = fr.symbolid inner join symbols s on fr.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on fr.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join downloadersymbolsettings dss on fr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left join lateral calc_fib_signal_filter (fr.resultuid) newlevels on true left join currencypips cps on cps.symbol = s.symbol left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where fr.gmttimefound > now() - interval ? and dss.enabled = ? and s.deleted = ? and (fr.simulation = ? or fr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, s.symbol) in (...)) and (? = ? or fr.pattern in (...)) and (? = ? or fr.patternlengthbars <= ?) and (? = ? or (? = ? and fr.timed > cast(? as timestamp)) or (? = ? and fr.timed < cast(? as timestamp))) ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Aug 15 07 376 16m13s 2s588ms [ User: postgres - Total duration: 16m13s - Times executed: 376 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 15m15s - Times executed: 364 ]
[ Application: [unknown] - Total duration: 57s406ms - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1 ), fr AS ( SELECT a.*, rr.age, rr.relevant from fibonacci_results a LEFT OUTER JOIN relevance_fibonacci_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) END ), all_results AS ( SELECT fr.resultuid AS resultuid, fr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, fr.pattern AS pattern_name, fr.timed AS timed, fr.patternendtime AS identified, dtt.timezone AS timezone, fr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN fr.age IS NOT NULL THEN fr.age WHEN fr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN fr.relevant IS NOT NULL THEN fr.relevant WHEN fr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM fr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = fr.symbolid INNER JOIN symbols s ON fr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on fr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON fr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT JOIN LATERAL calc_fib_signal_filter (fr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE fr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (fr.simulation = 0 OR fr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('500' = 0 OR fr.patternlengthbars <= '500') AND ('0' = 0 OR ('0' = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ('0' = 2 AND fr.timed < cast('1970-01-01' as timestamp))) ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:52 Duration: 7s291ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1 ), fr AS ( SELECT a.*, rr.age, rr.relevant from fibonacci_results a LEFT OUTER JOIN relevance_fibonacci_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) END ), all_results AS ( SELECT fr.resultuid AS resultuid, fr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, fr.pattern AS pattern_name, fr.timed AS timed, fr.patternendtime AS identified, dtt.timezone AS timezone, fr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN fr.age IS NOT NULL THEN fr.age WHEN fr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN fr.relevant IS NOT NULL THEN fr.relevant WHEN fr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM fr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = fr.symbolid INNER JOIN symbols s ON fr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on fr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON fr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT JOIN LATERAL calc_fib_signal_filter (fr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE fr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (fr.simulation = 0 OR fr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('500' = 0 OR fr.patternlengthbars <= '500') AND ('0' = 0 OR ('0' = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ('0' = 2 AND fr.timed < cast('1970-01-01' as timestamp))) ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:27:47 Duration: 7s280ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1 ), fr AS ( SELECT a.*, rr.age, rr.relevant from fibonacci_results a LEFT OUTER JOIN relevance_fibonacci_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) END ), all_results AS ( SELECT fr.resultuid AS resultuid, fr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, fr.pattern AS pattern_name, fr.timed AS timed, fr.patternendtime AS identified, dtt.timezone AS timezone, fr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN fr.age IS NOT NULL THEN fr.age WHEN fr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN fr.relevant IS NOT NULL THEN fr.relevant WHEN fr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM fr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = fr.symbolid INNER JOIN symbols s ON fr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on fr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON fr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT JOIN LATERAL calc_fib_signal_filter (fr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE fr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (fr.simulation = 0 OR fr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('500' = 0 OR fr.patternlengthbars <= '500') AND ('0' = 0 OR ('0' = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ('0' = 2 AND fr.timed < cast('1970-01-01' as timestamp))) ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:44 Duration: 7s33ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
4 2m4s 53,115 0ms 22ms 2ms select s.symbolid as id, s.symbol as name, s.exchange as exchange, s.timegranularity as interval, dtt.timezone as timezone from symbols s inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join brokersymbollist bsl on bsl.symbolid = s.symbolid where bsl.brokerid = ? and (? = ? or s.timegranularity = ?) and (s.symbol = ? or dss.downloadersymbol = ?) and dss.enabled = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Aug 15 07 53,115 2m4s 2ms [ User: postgres - Total duration: 2m4s - Times executed: 53115 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2m4s - Times executed: 53115 ]
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '558' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'SEKJPY' OR dss.downloadersymbol = 'SEKJPY') AND dss.enabled = 1;
Date: 2025-08-15 07:00:05 Duration: 22ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '529' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'Coffee' OR dss.downloadersymbol = 'Coffee') AND dss.enabled = 1;
Date: 2025-08-15 07:30:06 Duration: 21ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '538' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'BARC' OR dss.downloadersymbol = 'BARC') AND dss.enabled = 1;
Date: 2025-08-15 07:59:19 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
5 1m23s 66,996 0ms 37ms 1ms select distinct on (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone from symbols s inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable df on df.classname ilike dss.classname left join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = s.symbolid left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = ? and bim.type = ? where s.symbolid = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Aug 15 07 66,996 1m23s 1ms [ User: postgres - Total duration: 1m23s - Times executed: 66996 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m23s - Times executed: 66996 ]
-
SELECT DISTINCT ON (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable df ON df.classname ILIKE dss.classname LEFT JOIN brokersymbollist bsl ON bsl.brokerid = '558' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '558' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840243207374300';
Date: 2025-08-15 07:00:04 Duration: 37ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT DISTINCT ON (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable df ON df.classname ILIKE dss.classname LEFT JOIN brokersymbollist bsl ON bsl.brokerid = '558' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '558' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840243203999300';
Date: 2025-08-15 07:00:05 Duration: 17ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT DISTINCT ON (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable df ON df.classname ILIKE dss.classname LEFT JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '689' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840245930067300';
Date: 2025-08-15 07:45:23 Duration: 16ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
6 1m13s 241 84ms 900ms 303ms with rar_max as ( select resultuid from relevance_consecutivecandles_results order by resultuid desc limit ? ), all_results as ( select ccr.resultuid as resultuid, ccr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, coalesce(bim.code, s.symbol) as symbol_code, s.longname as symbol_name, s.timegranularity as interval, ccr.patternendtime as identified, dtt.timezone as timezone, ccr.qtyconsecutivecandles as length, g.basegroupname, case when rcr.age is not null then rcr.age when ccr.resultuid <= rm.resultuid then ? else ? end as age, case when rcr.relevant is not null then rcr.relevant when ccr.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip, newlevels.filtered from consecutivecandles_results ccr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = ccr.symbolid inner join symbols s on ccr.symbolid = s.symbolid and s.nonliquid = ? inner join downloadersymbolsettings dss on ccr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join symbolgroup sg on ccr.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 rar_max rm on ? = ? left outer join relevance_consecutivecandles_results rcr on rcr.resultuid = ccr.resultuid left join currencypips cps on cps.symbol = s.symbol left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? left join lateral calc_cc_signal_filter (ccr.resultuid) newlevels on true where ccr.gmttimefound > now() - interval ? and s.deleted = ? and (ccr.simulation = ? or ccr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, s.symbol) in (...)) and (? = ? or ccr.patternlengthbars <= ?) ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Aug 15 07 241 1m13s 303ms [ User: postgres - Total duration: 1m13s - Times executed: 241 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m7s - Times executed: 229 ]
[ Application: [unknown] - Total duration: 5s925ms - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_consecutivecandles_results ORDER BY resultuid DESC LIMIT 1 ), all_results AS ( SELECT ccr.resultuid AS resultuid, ccr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ccr.patternendtime AS identified, dtt.timezone AS timezone, ccr.qtyconsecutivecandles AS length, g.basegroupname, CASE WHEN rcr.age IS NOT NULL THEN rcr.age WHEN ccr.resultuid <= rm.resultuid THEN 1 ELSE 0 END as age, CASE WHEN rcr.relevant IS NOT NULL THEN rcr.relevant WHEN ccr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip, newLevels.filtered FROM consecutivecandles_results ccr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = ccr.symbolid INNER JOIN symbols s ON ccr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN downloadersymbolsettings dss ON ccr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN symbolgroup sg on ccr.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 rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_consecutivecandles_results rcr ON rcr.resultuid = ccr.resultuid LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' LEFT JOIN LATERAL calc_cc_signal_filter (ccr.resultuid) newLevels on true WHERE ccr.gmttimefound > now() - INTERVAL '7 DAYS' AND s.deleted = 0 AND (ccr.simulation = 0 OR ccr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('500' = 0 OR ccr.patternlengthbars <= '500') ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:59 Duration: 900ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_consecutivecandles_results ORDER BY resultuid DESC LIMIT 1 ), all_results AS ( SELECT ccr.resultuid AS resultuid, ccr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ccr.patternendtime AS identified, dtt.timezone AS timezone, ccr.qtyconsecutivecandles AS length, g.basegroupname, CASE WHEN rcr.age IS NOT NULL THEN rcr.age WHEN ccr.resultuid <= rm.resultuid THEN 1 ELSE 0 END as age, CASE WHEN rcr.relevant IS NOT NULL THEN rcr.relevant WHEN ccr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip, newLevels.filtered FROM consecutivecandles_results ccr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = ccr.symbolid INNER JOIN symbols s ON ccr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN downloadersymbolsettings dss ON ccr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN symbolgroup sg on ccr.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 rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_consecutivecandles_results rcr ON rcr.resultuid = ccr.resultuid LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' LEFT JOIN LATERAL calc_cc_signal_filter (ccr.resultuid) newLevels on true WHERE ccr.gmttimefound > now() - INTERVAL '7 DAYS' AND s.deleted = 0 AND (ccr.simulation = 0 OR ccr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('500' = 0 OR ccr.patternlengthbars <= '500') ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:06:23 Duration: 887ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_consecutivecandles_results ORDER BY resultuid DESC LIMIT 1 ), all_results AS ( SELECT ccr.resultuid AS resultuid, ccr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ccr.patternendtime AS identified, dtt.timezone AS timezone, ccr.qtyconsecutivecandles AS length, g.basegroupname, CASE WHEN rcr.age IS NOT NULL THEN rcr.age WHEN ccr.resultuid <= rm.resultuid THEN 1 ELSE 0 END as age, CASE WHEN rcr.relevant IS NOT NULL THEN rcr.relevant WHEN ccr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip, newLevels.filtered FROM consecutivecandles_results ccr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ccr.symbolid INNER JOIN symbols s ON ccr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN downloadersymbolsettings dss ON ccr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN symbolgroup sg on ccr.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 rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_consecutivecandles_results rcr ON rcr.resultuid = ccr.resultuid LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' LEFT JOIN LATERAL calc_cc_signal_filter (ccr.resultuid) newLevels on true WHERE ccr.gmttimefound > now() - INTERVAL '7 DAYS' AND s.deleted = 0 AND (ccr.simulation = 0 OR ccr.simulation IS NULL) AND ('0' = 0 OR s.timegranularity in ('0')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR coalesce(bim.code, s.symbol) in ('')) AND ('0' = 0 OR ccr.patternlengthbars <= '0') ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:56:37 Duration: 853ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
7 48s604ms 150 89ms 881ms 324ms with last_candle as ( select acs.symbolid as symbolid, acs.latestpricedatetime as latest_candle_time, bsl.brokerid as broker_id, coalesce(bim.code, s.symbol) as symbol, bim.code as symbol_mapping, s.exchange as exchange, s.timegranularity as timegranularity from autochartist_symbolupdates acs inner join brokersymbollist bsl on acs.symbolid = bsl.symbolid inner join symbols s on acs.symbolid = s.symbolid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where bsl.brokerid = ? and s.deleted = ? and s.nonliquid = ? and acs.latestpricedatetime is not null ) select * from ( select lc.broker_id as brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / ?) + ? as sast_hh, mod(cast(psp.fromtime as int), ?) as sast_mm, current_timestamp as datetime, (powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice as closingprice, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / ?.?) as low_15, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / ?.?) as high_15, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / ?.?) as low_30, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / ?.?) as high_30, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / ?.?) as low_60, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / ?.?) as high_60, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / ?.?) as low_240, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / ?.?) as high_240, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / ?.?) as low_1440, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / ?.?) as high_1440, dtt.absolutetimezoneoffset as datafeedtimezoneoffset, dtt.timezone as datafeedtimezonename, (round((cast(? as float) - rank) / ? * ?)) as rank_rounded, ((cast(? as float) - rank) / ? * ?) as rank from last_candle lc inner join downloadersymbolsettings dss on lc.symbolid = dss.symbolid inner join datafeedstimetable dtt on trim(dss.classname) = trim(dtt.classname) and dtt.dayofweek = ? -- assuming timezone is same for whole week. inner join powerstats_symboldata psd on psd.symbolid = lc.symbolid left outer join powerstats_trumpet psp on psd.trumpetsymbolid = psp.symbolid and psp.dayofweek = extract(dow from lc.latest_candle_time) and psp.fromtime = cast(extract(? from lc.latest_candle_time) as integer) * ? + extract(? from (cast(extract(? from lc.latest_candle_time) as integer) / ?) * ? * interval ?) inner join prfsymboltree prf on psd.symbolid = prf.symbolid and date_trunc(?, prf.enddate) = date_trunc(?, psp.enddate) left join lateral ( select ph.hour, (ave + stddev) as volatility, rank() over (order by (ave + stddev) desc) as rank from powerstats_hourly ph where ph.symbolid = psd.hourlysymbolid and date_trunc(?,ph.enddate) = date_trunc(?, prf.enddate) ) rank_query on true where prf.brokerid = ? and rank_query.hour = floor((psp.fromtime) / ?) and volatility > ? order by rank desc, rank_rounded desc, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Aug 15 07 150 48s604ms 324ms [ User: postgres - Total duration: 48s604ms - Times executed: 150 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 48s604ms - Times executed: 150 ]
-
WITH last_candle AS ( SELECT acs.symbolid AS symbolid, acs.latestpricedatetime AS latest_candle_time, bsl.brokerid AS broker_id, coalesce(bim.code, s.symbol) AS symbol, bim.code AS symbol_mapping, s.exchange AS exchange, s.timegranularity AS timegranularity FROM autochartist_symbolupdates acs INNER JOIN brokersymbollist bsl ON acs.symbolid = bsl.symbolid INNER JOIN symbols s ON acs.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE bsl.brokerid = '529' AND s.deleted = 0 AND s.nonliquid = 0 AND acs.latestpricedatetime IS NOT NULL ) SELECT * FROM ( SELECT lc.broker_id AS brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / 60) + 6 as SAST_HH, mod(cast(psp.fromtime as int), 60) as SAST_MM, current_timestamp AS datetime, (PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice AS closingprice, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / 2.0) AS low_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / 2.0) AS high_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / 2.0) AS low_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / 2.0) AS high_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / 2.0) AS low_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / 2.0) AS high_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / 2.0) AS low_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / 2.0) AS high_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / 2.0) AS low_1440, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / 2.0) AS high_1440, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, (round((cast(25 as float) - rank) / 24 * 10)) as rank_rounded, ((cast(25 as float) - rank) / 24 * 10) as rank FROM last_candle lc INNER JOIN downloadersymbolsettings dss ON lc.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON TRIM(dss.classname) = TRIM(dtt.classname) and dtt.dayofweek = 3 -- assuming timezone is same for whole week. INNER JOIN powerstats_symboldata psd ON psd.symbolid = lc.symbolid LEFT OUTER JOIN powerstats_trumpet psp ON psd.trumpetsymbolid = psp.symbolid AND psp.dayofweek = extract(dow from lc.latest_candle_time) AND psp.fromtime = cast(extract('hour' from lc.latest_candle_time) as integer) * 60 + extract('minute' from (cast(extract('minute' from lc.latest_candle_time) as integer) / 15) * 15 * interval '1 minutes') INNER JOIN prfsymboltree prf ON psd.symbolid = prf.symbolid and DATE_TRUNC('day', prf.enddate) = DATE_TRUNC('day', psp.enddate) LEFT JOIN LATERAL ( SELECT ph.hour, (ave + stddev) AS volatility, rank() over (ORDER BY (ave + stddev) DESC) AS rank FROM powerstats_hourly ph WHERE ph.symbolid = psd.hourlysymbolid AND DATE_TRUNC('day', ph.enddate) = DATE_TRUNC('day', prf.enddate)) rank_query ON true WHERE prf.brokerid = '529' AND rank_query.hour = floor((psp.fromtime) / 60) AND volatility > 0 ORDER BY rank DESC, rank_rounded DESC, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;
Date: 2025-08-15 07:48:13 Duration: 881ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH last_candle AS ( SELECT acs.symbolid AS symbolid, acs.latestpricedatetime AS latest_candle_time, bsl.brokerid AS broker_id, coalesce(bim.code, s.symbol) AS symbol, bim.code AS symbol_mapping, s.exchange AS exchange, s.timegranularity AS timegranularity FROM autochartist_symbolupdates acs INNER JOIN brokersymbollist bsl ON acs.symbolid = bsl.symbolid INNER JOIN symbols s ON acs.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE bsl.brokerid = '529' AND s.deleted = 0 AND s.nonliquid = 0 AND acs.latestpricedatetime IS NOT NULL ) SELECT * FROM ( SELECT lc.broker_id AS brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / 60) + 6 as SAST_HH, mod(cast(psp.fromtime as int), 60) as SAST_MM, current_timestamp AS datetime, (PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice AS closingprice, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / 2.0) AS low_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / 2.0) AS high_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / 2.0) AS low_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / 2.0) AS high_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / 2.0) AS low_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / 2.0) AS high_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / 2.0) AS low_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / 2.0) AS high_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / 2.0) AS low_1440, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / 2.0) AS high_1440, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, (round((cast(25 as float) - rank) / 24 * 10)) as rank_rounded, ((cast(25 as float) - rank) / 24 * 10) as rank FROM last_candle lc INNER JOIN downloadersymbolsettings dss ON lc.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON TRIM(dss.classname) = TRIM(dtt.classname) and dtt.dayofweek = 3 -- assuming timezone is same for whole week. INNER JOIN powerstats_symboldata psd ON psd.symbolid = lc.symbolid LEFT OUTER JOIN powerstats_trumpet psp ON psd.trumpetsymbolid = psp.symbolid AND psp.dayofweek = extract(dow from lc.latest_candle_time) AND psp.fromtime = cast(extract('hour' from lc.latest_candle_time) as integer) * 60 + extract('minute' from (cast(extract('minute' from lc.latest_candle_time) as integer) / 15) * 15 * interval '1 minutes') INNER JOIN prfsymboltree prf ON psd.symbolid = prf.symbolid and DATE_TRUNC('day', prf.enddate) = DATE_TRUNC('day', psp.enddate) LEFT JOIN LATERAL ( SELECT ph.hour, (ave + stddev) AS volatility, rank() over (ORDER BY (ave + stddev) DESC) AS rank FROM powerstats_hourly ph WHERE ph.symbolid = psd.hourlysymbolid AND DATE_TRUNC('day', ph.enddate) = DATE_TRUNC('day', prf.enddate)) rank_query ON true WHERE prf.brokerid = '529' AND rank_query.hour = floor((psp.fromtime) / 60) AND volatility > 0 ORDER BY rank DESC, rank_rounded DESC, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;
Date: 2025-08-15 07:48:13 Duration: 880ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH last_candle AS ( SELECT acs.symbolid AS symbolid, acs.latestpricedatetime AS latest_candle_time, bsl.brokerid AS broker_id, coalesce(bim.code, s.symbol) AS symbol, bim.code AS symbol_mapping, s.exchange AS exchange, s.timegranularity AS timegranularity FROM autochartist_symbolupdates acs INNER JOIN brokersymbollist bsl ON acs.symbolid = bsl.symbolid INNER JOIN symbols s ON acs.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE bsl.brokerid = '529' AND s.deleted = 0 AND s.nonliquid = 0 AND acs.latestpricedatetime IS NOT NULL ) SELECT * FROM ( SELECT lc.broker_id AS brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / 60) + 6 as SAST_HH, mod(cast(psp.fromtime as int), 60) as SAST_MM, current_timestamp AS datetime, (PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice AS closingprice, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / 2.0) AS low_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / 2.0) AS high_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / 2.0) AS low_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / 2.0) AS high_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / 2.0) AS low_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / 2.0) AS high_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / 2.0) AS low_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / 2.0) AS high_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / 2.0) AS low_1440, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / 2.0) AS high_1440, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, (round((cast(25 as float) - rank) / 24 * 10)) as rank_rounded, ((cast(25 as float) - rank) / 24 * 10) as rank FROM last_candle lc INNER JOIN downloadersymbolsettings dss ON lc.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON TRIM(dss.classname) = TRIM(dtt.classname) and dtt.dayofweek = 3 -- assuming timezone is same for whole week. INNER JOIN powerstats_symboldata psd ON psd.symbolid = lc.symbolid LEFT OUTER JOIN powerstats_trumpet psp ON psd.trumpetsymbolid = psp.symbolid AND psp.dayofweek = extract(dow from lc.latest_candle_time) AND psp.fromtime = cast(extract('hour' from lc.latest_candle_time) as integer) * 60 + extract('minute' from (cast(extract('minute' from lc.latest_candle_time) as integer) / 15) * 15 * interval '1 minutes') INNER JOIN prfsymboltree prf ON psd.symbolid = prf.symbolid and DATE_TRUNC('day', prf.enddate) = DATE_TRUNC('day', psp.enddate) LEFT JOIN LATERAL ( SELECT ph.hour, (ave + stddev) AS volatility, rank() over (ORDER BY (ave + stddev) DESC) AS rank FROM powerstats_hourly ph WHERE ph.symbolid = psd.hourlysymbolid AND DATE_TRUNC('day', ph.enddate) = DATE_TRUNC('day', prf.enddate)) rank_query ON true WHERE prf.brokerid = '529' AND rank_query.hour = floor((psp.fromtime) / 60) AND volatility > 0 ORDER BY rank DESC, rank_rounded DESC, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;
Date: 2025-08-15 07:52:08 Duration: 837ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
8 46s346ms 34 19ms 14s317ms 1s363ms select fixcandlegaps (?, false);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Aug 15 07 34 46s346ms 1s363ms [ User: postgres - Total duration: 46s346ms - Times executed: 34 ]
[ Application: psql - Total duration: 46s346ms - Times executed: 34 ]
-
select fixcandlegaps ('ICMARKETS-AU-MT5', false);
Date: 2025-08-15 07:06:48 Duration: 14s317ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('ATFX', false);
Date: 2025-08-15 07:06:16 Duration: 6s940ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('AXIORY', false);
Date: 2025-08-15 07:06:21 Duration: 5s38ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
9 41s827ms 4 10s265ms 10s530ms 10s456ms select updateageforrelevantresults ();Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 15 07 4 41s827ms 10s456ms [ User: postgres - Total duration: 41s827ms - Times executed: 4 ]
[ Application: psql - Total duration: 41s827ms - Times executed: 4 ]
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:32:13 Duration: 10s530ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:47:13 Duration: 10s522ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:17:12 Duration: 10s508ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
10 34s563ms 6 4s648ms 8s43ms 5s760ms 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 = ? ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = ? ), 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 = ?) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, ?::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 = ?) 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 = ? where (ok.r is null or ok.r = ?) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = ?) and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > ? * ? and last.eventtimestamp > current_timestamp - interval ? and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval ?) and last.eventtimestamp > current_timestamp - interval ? and broker.r = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Aug 15 07 6 34s563ms 5s760ms [ User: postgres - Total duration: 34s563ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 34s563ms - 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: 2025-08-15 07:30:11 Duration: 8s43ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
-
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: 2025-08-15 07:00:10 Duration: 6s899ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
-
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: 2025-08-15 07:50:07 Duration: 5s70ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
11 34s41ms 16 1s952ms 3s355ms 2s127ms 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;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Aug 15 07 16 34s41ms 2s127ms [ User: postgres - Total duration: 34s41ms - Times executed: 16 ]
[ Application: psql - Total duration: 34s41ms - Times executed: 16 ]
-
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: 2025-08-15 07:33:17 Duration: 3s355ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:31:16 Duration: 2s699ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:01:15 Duration: 2s101ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
12 23s927ms 8 2s699ms 4s575ms 2s990ms select updateresultsmaterializedview ();Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Aug 15 07 8 23s927ms 2s990ms [ User: postgres - Total duration: 23s927ms - Times executed: 8 ]
[ Application: psql - Total duration: 23s927ms - Times executed: 8 ]
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:20:37 Duration: 4s575ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:02:15 Duration: 2s928ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:47:16 Duration: 2s780ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
13 22s 16 1s260ms 2s32ms 1s375ms 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;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Aug 15 07 16 22s 1s375ms [ User: postgres - Total duration: 22s - Times executed: 16 ]
[ Application: psql - Total duration: 22s - Times executed: 16 ]
-
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: 2025-08-15 07:33:14 Duration: 2s32ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:03:13 Duration: 1s683ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:31:13 Duration: 1s426ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
14 20s127ms 12 1s362ms 2s187ms 1s677ms with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = ? left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bg.brokerid and bim.type = ? where bg.brokerid = ? and basegroupname = ? and g.designation = ? and s.nonliquid = ? ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval ?) as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= ? and patternquality >= ?.? and patternendtime >= current_timestamp - interval ? and patternlengthbars < ?) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval ?) as predictiontimefrom, predictionpricefrom, case when direction > ? then ? else ? end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (...) and patternendtime >= current_timestamp - interval ? and patternlengthbars < ?) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= ? and _tmp.qtycandlesapart <= ? and ((cpresultuid > ( select coalesce(max(cpresultuid), ?) from correlating_signals acs where acs.basegroupname = ? and acs.brokerid = ?)) or (klresultuid > ( select coalesce(max(klresultuid), ?) from correlating_signals acs where acs.basegroupname = ? and acs.brokerid = ?))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = ? and cs.basegroupname = ? and date_trunc(?, cs.gmttimefound) = date_trunc(?, now()) and sent is true and filtered is false ) <= ( select case when coalesce(daily_max, ?) < ? then ? else coalesce(daily_max,?) end from corr_sigs_config_v where broker_id = ? limit ? ) and extract(epoch from age(current_timestamp at time zone ?, max_patternendtime - absolutetimezoneoffset * interval ?))/? < mint*? ), maxstats as ( select max(statsid) as maxid , st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = ? then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * ? as numeric), ?) as percent, round(cast((kl_correct) / (kl_total) * ? as numeric), ?) as klpercent, round(cast((cp_correct ) / (cp_total ) * ? as numeric), ?) as cppercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), ?) as openprice, round(cast(sig.forecastprice as numeric), ?) as forecastprice, cast(round(cast(abs(sig.forecastprice - sig.openprice)/pip as numeric), ?)as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname , si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = ? then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = ? and date_part(?, sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = ? and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = ? and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = ? and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = ? and date_part(?, sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = ? and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = ? and kl_sym.name ilike si.symbol ) as tmp order by tmp.gmttimefound desc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Aug 15 07 12 20s127ms 1s677ms [ User: postgres - Total duration: 20s127ms - Times executed: 12 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 20s127ms - Times executed: 12 ]
-
with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = 3 LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bg.brokerid AND bim.TYPE = 'OUTBOUND' where bg.brokerid = '627' and basegroupname = 'Forex' and g.designation = '(All Intraday)' and s.nonliquid = 0 ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= 0 and patternquality >= 0.3 and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, case when direction > 0 then 'Resistance' else 'Support' end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (1, 2) and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= 20 and _tmp.qtycandlesapart <= 5 and ((cpresultuid > ( SELECT COALESCE(MAX(cpresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '627')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '627'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '627' and cs.basegroupname = 'Forex' and date_trunc('day', cs.gmttimefound) = date_trunc('day', now()) and sent is true and filtered is false) <= ( select case when coalesce(daily_max, 5) < 1 then 1000 else coalesce(daily_max, 5) end from corr_sigs_config_v where broker_id = '627' limit 1) and extract(epoch from age(current_timestamp at TIME ZONE 'utc', max_patternendtime - absolutetimezoneoffset * INTERVAL '1 hour')) / 60 < mint * 3 ), maxstats as ( select MAX(statsid) as maxid, st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = 'exchange' then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * 100 as numeric), 2) as percent, round(cast((kl_correct) / (kl_total) * 100 as numeric), 2) as klPercent, round(cast((cp_correct) / (cp_total) * 100 as numeric), 2) as cpPercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), 5) as openprice, round(cast(sig.forecastprice as numeric), 5) as forecastprice, CAST(round(cast(abs(sig.forecastprice - sig.openprice) / pip as numeric), 0) as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname, si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = 'exchange' then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = 'hourofday' and date_part('hour', sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = 'interval' and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = 'pattern' and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = 'symbol' and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = 'hourofday' and date_part('hour', sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = 'interval' and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = 'symbol' and kl_sym.name ilike si.symbol) AS tmp order by tmp.gmttimefound desc;
Date: 2025-08-15 07:07:01 Duration: 2s187ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
-
with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = 3 LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bg.brokerid AND bim.TYPE = 'OUTBOUND' where bg.brokerid = '692' and basegroupname = 'Forex' and g.designation = '(All Intraday)' and s.nonliquid = 0 ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= 0 and patternquality >= 0.3 and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, case when direction > 0 then 'Resistance' else 'Support' end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (1, 2) and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= 20 and _tmp.qtycandlesapart <= 5 and ((cpresultuid > ( SELECT COALESCE(MAX(cpresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '692' and cs.basegroupname = 'Forex' and date_trunc('day', cs.gmttimefound) = date_trunc('day', now()) and sent is true and filtered is false) <= ( select case when coalesce(daily_max, 5) < 1 then 1000 else coalesce(daily_max, 5) end from corr_sigs_config_v where broker_id = '692' limit 1) and extract(epoch from age(current_timestamp at TIME ZONE 'utc', max_patternendtime - absolutetimezoneoffset * INTERVAL '1 hour')) / 60 < mint * 3 ), maxstats as ( select MAX(statsid) as maxid, st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = 'exchange' then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * 100 as numeric), 2) as percent, round(cast((kl_correct) / (kl_total) * 100 as numeric), 2) as klPercent, round(cast((cp_correct) / (cp_total) * 100 as numeric), 2) as cpPercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), 5) as openprice, round(cast(sig.forecastprice as numeric), 5) as forecastprice, CAST(round(cast(abs(sig.forecastprice - sig.openprice) / pip as numeric), 0) as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname, si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = 'exchange' then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = 'hourofday' and date_part('hour', sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = 'interval' and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = 'pattern' and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = 'symbol' and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = 'hourofday' and date_part('hour', sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = 'interval' and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = 'symbol' and kl_sym.name ilike si.symbol) AS tmp order by tmp.gmttimefound desc;
Date: 2025-08-15 07:37:01 Duration: 2s74ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
-
with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = 3 LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bg.brokerid AND bim.TYPE = 'OUTBOUND' where bg.brokerid = '692' and basegroupname = 'Forex' and g.designation = '(All Intraday)' and s.nonliquid = 0 ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= 0 and patternquality >= 0.3 and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, case when direction > 0 then 'Resistance' else 'Support' end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (1, 2) and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= 20 and _tmp.qtycandlesapart <= 5 and ((cpresultuid > ( SELECT COALESCE(MAX(cpresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '692' and cs.basegroupname = 'Forex' and date_trunc('day', cs.gmttimefound) = date_trunc('day', now()) and sent is true and filtered is false) <= ( select case when coalesce(daily_max, 5) < 1 then 1000 else coalesce(daily_max, 5) end from corr_sigs_config_v where broker_id = '692' limit 1) and extract(epoch from age(current_timestamp at TIME ZONE 'utc', max_patternendtime - absolutetimezoneoffset * INTERVAL '1 hour')) / 60 < mint * 3 ), maxstats as ( select MAX(statsid) as maxid, st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = 'exchange' then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * 100 as numeric), 2) as percent, round(cast((kl_correct) / (kl_total) * 100 as numeric), 2) as klPercent, round(cast((cp_correct) / (cp_total) * 100 as numeric), 2) as cpPercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), 5) as openprice, round(cast(sig.forecastprice as numeric), 5) as forecastprice, CAST(round(cast(abs(sig.forecastprice - sig.openprice) / pip as numeric), 0) as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname, si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = 'exchange' then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = 'hourofday' and date_part('hour', sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = 'interval' and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = 'pattern' and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = 'symbol' and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = 'hourofday' and date_part('hour', sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = 'interval' and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = 'symbol' and kl_sym.name ilike si.symbol) AS tmp order by tmp.gmttimefound desc;
Date: 2025-08-15 07:07:07 Duration: 1s868ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
15 12s788ms 172 16ms 171ms 74ms select distinct k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid from relevance_keylevels_results p inner join keylevels_results k on p.resultuid = k.resultuid inner join autochartist_stocklist asl on k.symbolid = asl.symbolid where k.patternclassid in (...) and asl.enabled = ? and asl.recognitionengine ilike ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Aug 15 07 172 12s788ms 74ms [ User: postgres - Total duration: 12s788ms - Times executed: 172 ]
[ Application: [unknown] - Total duration: 12s788ms - Times executed: 172 ]
-
SELECT DISTINCT k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid FROM relevance_keylevels_results p INNER JOIN keylevels_results k ON p.resultuid = k.resultuid INNER JOIN autochartist_stocklist asl ON k.symbolid = asl.symbolid WHERE k.patternclassid in (1, 2) AND asl.enabled = 1 AND asl.recognitionengine ILIKE 'ATFX - 1';
Date: 2025-08-15 07:45:32 Duration: 171ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT DISTINCT k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid FROM relevance_keylevels_results p INNER JOIN keylevels_results k ON p.resultuid = k.resultuid INNER JOIN autochartist_stocklist asl ON k.symbolid = asl.symbolid WHERE k.patternclassid in (1, 2) AND asl.enabled = 1 AND asl.recognitionengine ILIKE 'AXIORY - 1';
Date: 2025-08-15 07:31:14 Duration: 169ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT DISTINCT k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid FROM relevance_keylevels_results p INNER JOIN keylevels_results k ON p.resultuid = k.resultuid INNER JOIN autochartist_stocklist asl ON k.symbolid = asl.symbolid WHERE k.patternclassid in (1, 2) AND asl.enabled = 1 AND asl.recognitionengine ILIKE 'AXIORY - 1';
Date: 2025-08-15 07:31:48 Duration: 169ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
16 11s748ms 172 17ms 248ms 68ms select distinct a.symbolid, p.resultuid, case when a.breakout >= ? then ? else ? end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient from relevance_autochartist_results p inner join autochartist_results a on p.resultuid = a.resultuid inner join autochartist_stocklist asl on a.symbolid = asl.symbolid where asl.enabled = ? and asl.recognitionengine ilike ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 15 07 172 11s748ms 68ms [ User: postgres - Total duration: 11s748ms - Times executed: 172 ]
[ Application: [unknown] - Total duration: 11s748ms - Times executed: 172 ]
-
SELECT distinct a.symbolid, p.resultuid, case when a.breakout >= 0 then 1 else 2 end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient FROM relevance_autochartist_results p INNER JOIN autochartist_results a ON p.resultuid = a.resultuid INNER JOIN autochartist_stocklist asl ON a.symbolid = asl.symbolid WHERE asl.enabled = 1 AND asl.recognitionengine ILIKE 'PEPPERSTONE - 1';
Date: 2025-08-15 07:15:27 Duration: 248ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT distinct a.symbolid, p.resultuid, case when a.breakout >= 0 then 1 else 2 end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient FROM relevance_autochartist_results p INNER JOIN autochartist_results a ON p.resultuid = a.resultuid INNER JOIN autochartist_stocklist asl ON a.symbolid = asl.symbolid WHERE asl.enabled = 1 AND asl.recognitionengine ILIKE 'PEPPERSTONE - 1';
Date: 2025-08-15 07:06:51 Duration: 245ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT distinct a.symbolid, p.resultuid, case when a.breakout >= 0 then 1 else 2 end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient FROM relevance_autochartist_results p INNER JOIN autochartist_results a ON p.resultuid = a.resultuid INNER JOIN autochartist_stocklist asl ON a.symbolid = asl.symbolid WHERE asl.enabled = 1 AND asl.recognitionengine ILIKE 'PEPPERSTONE - 1';
Date: 2025-08-15 07:17:10 Duration: 195ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
17 8s41ms 7,140 0ms 3ms 1ms insert into executionlogs (executionid, status, message, details, detailtype) values (null, ?, ?, null, null);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Aug 15 07 7,140 8s41ms 1ms [ User: postgres - Total duration: 8s41ms - Times executed: 7140 ]
[ Application: [unknown] - Total duration: 8s41ms - Times executed: 7140 ]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'running 32', NULL, NULL);
Date: 2025-08-15 07:00:51 Duration: 3ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', '', NULL, NULL);
Date: 2025-08-15 07:00:51 Duration: 2ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 175, schedule: 1 9 * * 1 Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 07:30:49 Duration: 2ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
18 7s444ms 13 54ms 3s676ms 572ms copy ( select array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ?) as broker_ids, string_to_array(coalesce(replace(broker_symbol_mappings, ?, ?), ?), ?) as broker_symbol_mappings, replace(exchange, ?, ?) as exchange, symbol_id, replace(symbol, ?, ?) as symbol, replace(short_name, ?, ?) as short_name, replace(long_name, ?, ?) as long_name, interval, replace(timezone, ?, ?) as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ?) as search_groups, string_to_array(pattern_basegroupnames, ?) as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results (?::character varying, current_timestamp::timestamp without time zone)) t) to ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Aug 15 07 13 7s444ms 572ms [ User: postgres - Total duration: 7s444ms - Times executed: 13 ]
[ Application: psql - Total duration: 7s444ms - Times executed: 13 ]
-
COPY ( select /*_solr_fetch_results__*/ array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ',') as broker_ids, string_to_array(COALESCE(replace(broker_symbol_mappings, '"', ''), ''), ',') as broker_symbol_mappings, replace(exchange, '"', '') as exchange,symbol_id,replace(symbol,'"','') as symbol, replace(short_name, '"', '') as short_name,replace(long_name,'"','') as long_name, interval, replace(timezone, '"', '') as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ',') as search_groups, string_to_array(pattern_basegroupnames, ',') as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results ('Autochartist'::character varying, current_timestamp::timestamp without time zone)) t) TO '/tmp/solr_inserts_acaweb_fx.json';
Date: 2025-08-15 07:03:06 Duration: 3s676ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: psql
-
COPY ( select /*_solr_fetch_results__*/ array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ',') as broker_ids, string_to_array(COALESCE(replace(broker_symbol_mappings, '"', ''), ''), ',') as broker_symbol_mappings, replace(exchange, '"', '') as exchange,symbol_id,replace(symbol,'"','') as symbol, replace(short_name, '"', '') as short_name,replace(long_name,'"','') as long_name, interval, replace(timezone, '"', '') as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ',') as search_groups, string_to_array(pattern_basegroupnames, ',') as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results ('Autochartist'::character varying, current_timestamp::timestamp without time zone)) t) TO '/tmp/solr_inserts_acaweb_fx.json';
Date: 2025-08-15 07:48:03 Duration: 1s350ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: psql
-
COPY ( select /*_solr_fetch_results__*/ array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ',') as broker_ids, string_to_array(COALESCE(replace(broker_symbol_mappings, '"', ''), ''), ',') as broker_symbol_mappings, replace(exchange, '"', '') as exchange,symbol_id,replace(symbol,'"','') as symbol, replace(short_name, '"', '') as short_name,replace(long_name,'"','') as long_name, interval, replace(timezone, '"', '') as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ',') as search_groups, string_to_array(pattern_basegroupnames, ',') as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results ('Autochartist'::character varying, current_timestamp::timestamp without time zone)) t) TO '/tmp/solr_inserts_acaweb_fx.json';
Date: 2025-08-15 07:33:03 Duration: 680ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: psql
19 6s735ms 5,730 0ms 15ms 1ms insert into t15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on conflict (pricedatetime, symbolid) do update set open = ?, high = ?, low = ?, close = ?, volume = ?, bsf = ?, sastdatetimewritten = ?, sastdatetimereceived = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Aug 15 07 5,730 6s735ms 1ms [ User: postgres - Total duration: 6s735ms - Times executed: 5730 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 6s735ms - Times executed: 5730 ]
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 07:00:00', '15.7', '15.74', '15.69', '15.74', '3', '515840218043008300', '0', '2025-08-15 07:00:05.189', '2025-08-15 07:00:05.082') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '15.7', high = '15.74', low = '15.69', close = '15.74', volume = '3', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:05.189', sastdatetimereceived = '2025-08-15 07:00:05.082';
Date: 2025-08-15 07:00:05 Duration: 15ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 08:30:00', '1.16626', '1.16655', '1.16613', '1.16621', '435', '515840243866338300', '0', '2025-08-15 07:45:04.603', '2025-08-15 07:45:04.488') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '1.16626', high = '1.16655', low = '1.16613', close = '1.16621', volume = '435', bsf = '0', sastdatetimewritten = '2025-08-15 07:45:04.603', sastdatetimereceived = '2025-08-15 07:45:04.488';
Date: 2025-08-15 07:45:04 Duration: 10ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 08:15:00', '0.93679', '0.93689', '0.93665', '0.93665', '220', '515840217506973300', '0', '2025-08-15 07:31:00.415', '2025-08-15 07:31:00.209') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '0.93679', high = '0.93689', low = '0.93665', close = '0.93665', volume = '220', bsf = '0', sastdatetimewritten = '2025-08-15 07:31:00.415', sastdatetimereceived = '2025-08-15 07:31:00.209';
Date: 2025-08-15 07:31:00 Duration: 9ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
20 6s683ms 6 1s26ms 1s358ms 1s113ms refresh materialized view concurrently latest_t15_candle_view;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 15 07 6 6s683ms 1s113ms [ User: postgres - Total duration: 6s683ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 6s683ms - Times executed: 6 ]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 07:31:17 Duration: 1s358ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 07:01:18 Duration: 1s141ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 07:46:17 Duration: 1s75ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 80,310 312ms 0ms 0ms 0ms select ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 15 07 80,309 312ms 0ms 08 1 0ms 0ms [ User: postgres - Total duration: 312ms - Times executed: 80310 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 301ms - Times executed: 80067 ]
[ Application: [unknown] - Total duration: 11ms - Times executed: 243 ]
-
select 1;
Date: 2025-08-15 07:43:12 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
select 1;
Date: 2025-08-15 07:45:23 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT 1;
Date: 2025-08-15 07:26:19 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
2 66,996 1m23s 0ms 37ms 1ms select distinct on (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone from symbols s inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable df on df.classname ilike dss.classname left join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = s.symbolid left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = ? and bim.type = ? where s.symbolid = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Aug 15 07 66,996 1m23s 1ms [ User: postgres - Total duration: 1m23s - Times executed: 66996 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m23s - Times executed: 66996 ]
-
SELECT DISTINCT ON (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable df ON df.classname ILIKE dss.classname LEFT JOIN brokersymbollist bsl ON bsl.brokerid = '558' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '558' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840243207374300';
Date: 2025-08-15 07:00:04 Duration: 37ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT DISTINCT ON (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable df ON df.classname ILIKE dss.classname LEFT JOIN brokersymbollist bsl ON bsl.brokerid = '558' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '558' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840243203999300';
Date: 2025-08-15 07:00:05 Duration: 17ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT DISTINCT ON (coalesce(bim.code, s.symbol) , s.exchange, s.timegranularity, df.timezone) s.symbolid as id, coalesce(bim.code, s.symbol) as name, s.symbol as symbol, dss.downloadersymbol as ticker, s.exchange as exchange, s.timegranularity as interval, df.timezone as timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable df ON df.classname ILIKE dss.classname LEFT JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '689' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840245930067300';
Date: 2025-08-15 07:45:23 Duration: 16ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
3 53,115 2m4s 0ms 22ms 2ms select s.symbolid as id, s.symbol as name, s.exchange as exchange, s.timegranularity as interval, dtt.timezone as timezone from symbols s inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join brokersymbollist bsl on bsl.symbolid = s.symbolid where bsl.brokerid = ? and (? = ? or s.timegranularity = ?) and (s.symbol = ? or dss.downloadersymbol = ?) and dss.enabled = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Aug 15 07 53,115 2m4s 2ms [ User: postgres - Total duration: 2m4s - Times executed: 53115 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2m4s - Times executed: 53115 ]
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '558' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'SEKJPY' OR dss.downloadersymbol = 'SEKJPY') AND dss.enabled = 1;
Date: 2025-08-15 07:00:05 Duration: 22ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '529' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'Coffee' OR dss.downloadersymbol = 'Coffee') AND dss.enabled = 1;
Date: 2025-08-15 07:30:06 Duration: 21ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '538' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'BARC' OR dss.downloadersymbol = 'BARC') AND dss.enabled = 1;
Date: 2025-08-15 07:59:19 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
4 7,140 8s41ms 0ms 3ms 1ms insert into executionlogs (executionid, status, message, details, detailtype) values (null, ?, ?, null, null);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Aug 15 07 7,140 8s41ms 1ms [ User: postgres - Total duration: 8s41ms - Times executed: 7140 ]
[ Application: [unknown] - Total duration: 8s41ms - Times executed: 7140 ]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'running 32', NULL, NULL);
Date: 2025-08-15 07:00:51 Duration: 3ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', '', NULL, NULL);
Date: 2025-08-15 07:00:51 Duration: 2ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 175, schedule: 1 9 * * 1 Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 07:30:49 Duration: 2ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
5 5,730 6s735ms 0ms 15ms 1ms insert into t15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on conflict (pricedatetime, symbolid) do update set open = ?, high = ?, low = ?, close = ?, volume = ?, bsf = ?, sastdatetimewritten = ?, sastdatetimereceived = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Aug 15 07 5,730 6s735ms 1ms [ User: postgres - Total duration: 6s735ms - Times executed: 5730 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 6s735ms - Times executed: 5730 ]
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 07:00:00', '15.7', '15.74', '15.69', '15.74', '3', '515840218043008300', '0', '2025-08-15 07:00:05.189', '2025-08-15 07:00:05.082') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '15.7', high = '15.74', low = '15.69', close = '15.74', volume = '3', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:05.189', sastdatetimereceived = '2025-08-15 07:00:05.082';
Date: 2025-08-15 07:00:05 Duration: 15ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 08:30:00', '1.16626', '1.16655', '1.16613', '1.16621', '435', '515840243866338300', '0', '2025-08-15 07:45:04.603', '2025-08-15 07:45:04.488') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '1.16626', high = '1.16655', low = '1.16613', close = '1.16621', volume = '435', bsf = '0', sastdatetimewritten = '2025-08-15 07:45:04.603', sastdatetimereceived = '2025-08-15 07:45:04.488';
Date: 2025-08-15 07:45:04 Duration: 10ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 08:15:00', '0.93679', '0.93689', '0.93665', '0.93665', '220', '515840217506973300', '0', '2025-08-15 07:31:00.415', '2025-08-15 07:31:00.209') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '0.93679', high = '0.93689', low = '0.93665', close = '0.93665', volume = '220', bsf = '0', sastdatetimewritten = '2025-08-15 07:31:00.415', sastdatetimereceived = '2025-08-15 07:31:00.209';
Date: 2025-08-15 07:31:00 Duration: 9ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
6 4,161 3s693ms 0ms 28ms 0ms with rar_max as ( select resultuid from relevance_autochartist_results order by resultuid desc limit ? ) select a.symbolid, pattern, patternid, resy0, resy1, resx0, resx1, supporty0, supporty1, supportx0, supportx1, predictiontimeto, patternstarttime, timegranularity, patternendtime, direction, trendchange, patternlengthbars, patternquality, case when a.old_resultuid = ? then a.old_resultuid else a.resultuid end as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, s.exchange, s.symbol, s.longname, s.shortname, breakout, dtt.timezone, patternstartprice, patternendprice, qtytp, newlevels.profit, newlevels.stop, newlevels.filtered, case when rar.age is not null then rar.age when a.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip from autochartist_results a inner join downloadersymbolsettings dss on a.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname inner join symbols s on a.symbolid = s.symbolid inner join patterns p on p.patternname = a.pattern inner join rar_max rm on ? = ? left outer join relevance_autochartist_results rar on rar.resultuid = a.resultuid left join lateral calc_cp_signal (a.resultuid) newlevels on true left join currencypips cps on cps.symbol = s.symbol where (a.old_resultuid = ? or a.resultuid = ?) and dtt.dayofweek = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Aug 15 07 4,161 3s693ms 0ms [ User: postgres - Total duration: 3s693ms - Times executed: 4161 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 3s693ms - Times executed: 4161 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ) SELECT a.symbolid, pattern, patternid, resy0, resy1, resx0, resx1, supporty0, supporty1, supportx0, supportx1, predictiontimeto, patternstarttime, timegranularity, patternendtime, direction, trendchange, patternlengthbars, patternquality, CASE WHEN a.old_resultuid = '606639691800927301' THEN a.old_resultuid ELSE a.resultuid END AS uid, breakout, initialtrend, volumeincrease, symmetry AS uniformity, predictionpricefrom, predictionpriceto, noise, s.exchange, s.symbol, s.longname, s.shortname, breakout, dtt.timezone, patternStartPrice, patternEndPrice, qtytp, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM autochartist_results a INNER JOIN downloadersymbolsettings dss ON a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN symbols s ON a.symbolid = s.symbolid INNER JOIN patterns p ON p.patternname = a.pattern INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid LEFT JOIN LATERAL calc_cp_signal (a.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol WHERE (a.old_resultuid = '606639691800927301' OR a.resultuid = '606639691800927301') AND dtt.dayofweek = 3;
Date: 2025-08-15 07:57:02 Duration: 28ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ) SELECT a.symbolid, pattern, patternid, resy0, resy1, resx0, resx1, supporty0, supporty1, supportx0, supportx1, predictiontimeto, patternstarttime, timegranularity, patternendtime, direction, trendchange, patternlengthbars, patternquality, CASE WHEN a.old_resultuid = '606639100589699301' THEN a.old_resultuid ELSE a.resultuid END AS uid, breakout, initialtrend, volumeincrease, symmetry AS uniformity, predictionpricefrom, predictionpriceto, noise, s.exchange, s.symbol, s.longname, s.shortname, breakout, dtt.timezone, patternStartPrice, patternEndPrice, qtytp, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM autochartist_results a INNER JOIN downloadersymbolsettings dss ON a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN symbols s ON a.symbolid = s.symbolid INNER JOIN patterns p ON p.patternname = a.pattern INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid LEFT JOIN LATERAL calc_cp_signal (a.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol WHERE (a.old_resultuid = '606639100589699301' OR a.resultuid = '606639100589699301') AND dtt.dayofweek = 3;
Date: 2025-08-15 07:06:20 Duration: 26ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ) SELECT a.symbolid, pattern, patternid, resy0, resy1, resx0, resx1, supporty0, supporty1, supportx0, supportx1, predictiontimeto, patternstarttime, timegranularity, patternendtime, direction, trendchange, patternlengthbars, patternquality, CASE WHEN a.old_resultuid = '606637943133932301' THEN a.old_resultuid ELSE a.resultuid END AS uid, breakout, initialtrend, volumeincrease, symmetry AS uniformity, predictionpricefrom, predictionpriceto, noise, s.exchange, s.symbol, s.longname, s.shortname, breakout, dtt.timezone, patternStartPrice, patternEndPrice, qtytp, newLevels.profit, newLevels.stop, newLevels.filtered, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM autochartist_results a INNER JOIN downloadersymbolsettings dss ON a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN symbols s ON a.symbolid = s.symbolid INNER JOIN patterns p ON p.patternname = a.pattern INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_autochartist_results rar ON rar.resultuid = a.resultuid LEFT JOIN LATERAL calc_cp_signal (a.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol WHERE (a.old_resultuid = '606637943133932301' OR a.resultuid = '606637943133932301') AND dtt.dayofweek = 3;
Date: 2025-08-15 07:11:01 Duration: 20ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
7 3,418 5s396ms 0ms 16ms 1ms 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) values (?, ?, ?.?, ?, ?, ?::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) on conflict do nothing;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Aug 15 07 3,418 5s396ms 1ms [ User: postgres - Total duration: 5s396ms - Times executed: 3418 ]
[ Application: [unknown] - Total duration: 5s396ms - Times executed: 3418 ]
-
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) VALUES ('515840249394685300-1|45879|45883|45875.6667|45884|4332.71|4784.395|3577.32|4457.53', 515840249394685300, 2.000000000000000000000000000000, 'Channel Up', 5, '2025-08-15 04:55:39'::timestamp without time zone, 1, 0.439575075142217608400000000000, - 1.000000000000000000000000000000, 0.790179409771307517100000000000, 0.000000000000000000000000000000, 0.721643739947695150800000000000, 4899.713846788461524000000000000000, 5280.645232292307810000000000000000, '2025-08-15 04:00:00'::timestamp without time zone, '2025-08-19 10:00:00'::timestamp without time zone, '2025-08-05 00:00:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 3737.985000000000127000000000000000, 4652.095000000000254000000000000000, '2025-08-10 00:00:00'::timestamp without time zone, '2025-08-14 00:00:00'::timestamp without time zone, '2025-08-06 16:00:00'::timestamp without time zone, '2025-08-15 00:00:00'::timestamp without time zone, 4332.710000000000036000000000000000, 4784.395000000000436000000000000000, 3577.320000000000164000000000000000, 4457.529999999999745000000000000000, 17.604199999999991630000000000000, 18.820208333333351190000000000000, 3.576618138283089721000000000000, 0.720406271696637623400000000000, 'Reversal', 0.000000000000000000000000000000, '2025-08-15 04:00:00'::timestamp without time zone, 4627.619999999999891000000000000000, 51, 0, 0.000000000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:36 Duration: 16ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES ('6056791048814053000.3251|45884.0104|45884.3021|45884|45884.2812|0.9419|0.9409|0.9397|0.9406', 605679104881405300, 4.000000000000000000000000000000, 'Triangle', 4, '2025-08-15 04:55:27'::timestamp without time zone, - 1, 0.401433812606054096800000000000, 0.325097529259176010200000000000, 0.005334665874344987624000000000, 0.724825763037822534700000000000, 0.382301957441053552600000000000, 0.939724011093889255400000000000, 0.940249587955787169400000000000, '2025-08-15 07:30:00'::timestamp without time zone, '2025-08-15 11:15:00'::timestamp without time zone, '2025-08-14 17:30:00'::timestamp without time zone, '2025-08-15 07:30:00'::timestamp without time zone, 0.942100000000000048500000000000, 0.940666666666666762000000000000, '2025-08-15 00:15:00'::timestamp without time zone, '2025-08-15 07:15:00'::timestamp without time zone, '2025-08-15 00:00:00'::timestamp without time zone, '2025-08-15 06:45:00'::timestamp without time zone, 0.941869999999999985000000000000, 0.940914999999999945900000000000, 0.939699999999999979700000000000, 0.940570000000000017200000000000, 0.000032222222222223604770000000, - 0.000034107142857144256360000000, 1.529056392729154501000000000000, 0.346001884067115295100000000000, 'Continuation', - 0.000021666666666808609420000000, '2025-08-15 07:30:00'::timestamp without time zone, 0.940625000000000044400000000000, 30, 0, 0.000635833333333316931000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:24 Duration: 14ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES ('5158402461257333000.0198|45884.2292|45884.2812|45884.1979|45884.3125|1354|1353.1|1347.6|1349.9', 515840246125733300, 2.000000000000000000000000000000, 'Triangle', 5, '2025-08-15 04:56:44'::timestamp without time zone, 1, 0.522811053112746893000000000000, 0.019834710744008884200000000000, 0.711150390337310534000000000000, 0.035223367697598290120000000000, 0.561787667760286102400000000000, 1354.055368051135702000000000000000, 1356.372883322725556000000000000000, '2025-08-15 07:45:00'::timestamp without time zone, '2025-08-15 09:15:00'::timestamp without time zone, '2025-08-14 23:00:00'::timestamp without time zone, '2025-08-15 07:45:00'::timestamp without time zone, 1353.700000000000046000000000000000, 1352.379999999999882000000000000000, '2025-08-15 05:30:00'::timestamp without time zone, '2025-08-15 06:45:00'::timestamp without time zone, '2025-08-15 04:45:00'::timestamp without time zone, '2025-08-15 07:30:00'::timestamp without time zone, 1354.000000000000000000000000000000, 1353.099999999999909000000000000000, 1347.599999999999909000000000000000, 1349.900000000000091000000000000000, 0.209090909090925619600000000000, - 0.180000000000018201000000000000, 2.071690930873544723000000000000, 0.517302515979860877400000000000, 'Reversal', 0.020000000000209183780000000000, '2025-08-15 07:45:00'::timestamp without time zone, 1352.400000000000091000000000000000, 12, 0, 2.437500000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:01:41 Duration: 14ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
8 3,291 2s356ms 0ms 8ms 0ms insert into t30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on conflict (pricedatetime, symbolid) do update set open = ?, high = ?, low = ?, close = ?, volume = ?, bsf = ?, sastdatetimewritten = ?, sastdatetimereceived = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Aug 15 07 3,291 2s356ms 0ms [ User: postgres - Total duration: 2s356ms - Times executed: 3291 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2s356ms - Times executed: 3291 ]
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 07:30:00', '6.39519', '6.39577', '6.3931', '6.39361', '140', '515840247894362300', '0', '2025-08-15 07:00:56.658', '2025-08-15 07:00:56.555') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '6.39519', high = '6.39577', low = '6.3931', close = '6.39361', volume = '140', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:56.658', sastdatetimereceived = '2025-08-15 07:00:56.555';
Date: 2025-08-15 07:00:56 Duration: 8ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 08:00:00', '6.39388', '6.39448', '6.39286', '6.39324', '185', '515840247894362300', '0', '2025-08-15 07:30:57.238', '2025-08-15 07:30:57.101') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '6.39388', high = '6.39448', low = '6.39286', close = '6.39324', volume = '185', bsf = '0', sastdatetimewritten = '2025-08-15 07:30:57.238', sastdatetimereceived = '2025-08-15 07:30:57.101';
Date: 2025-08-15 07:30:57 Duration: 8ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 08:00:00', '0.81707', '0.81723', '0.81693', '0.8171', '1281', '515840247885957300', '0', '2025-08-15 07:30:55.108', '2025-08-15 07:30:55.033') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '0.81707', high = '0.81723', low = '0.81693', close = '0.8171', volume = '1281', bsf = '0', sastdatetimewritten = '2025-08-15 07:30:55.108', sastdatetimereceived = '2025-08-15 07:30:55.033';
Date: 2025-08-15 07:30:55 Duration: 7ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
9 2,680 25ms 0ms 0ms 0ms set extra_float_digits = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 15 07 2,680 25ms 0ms [ User: postgres - Total duration: 25ms - Times executed: 2680 ]
[ Application: [unknown] - Total duration: 25ms - Times executed: 2680 ]
-
SET extra_float_digits = 3;
Date: 2025-08-15 07:31:29 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: [unknown] Bind query: yes
-
SET extra_float_digits = 3;
Date: 2025-08-15 07:16:00 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: [unknown] Bind query: yes
-
SET extra_float_digits = 3;
Date: 2025-08-15 07:47:09 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: [unknown] Bind query: yes
10 2,654 45ms 0ms 6ms 0ms set application_name = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Aug 15 07 2,654 45ms 0ms [ User: postgres - Total duration: 45ms - Times executed: 2654 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 45ms - Times executed: 2654 ]
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 07:15:31 Duration: 6ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 07:30:04 Duration: 1ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 07:39:46 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
11 2,606 1s549ms 0ms 11ms 0ms 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) values (?.?, ?, ?::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) on conflict do nothing;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Aug 15 07 2,606 1s549ms 0ms [ User: postgres - Total duration: 1s549ms - Times executed: 2606 ]
[ Application: [unknown] - Total duration: 1s549ms - Times executed: 2606 ]
-
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) VALUES (2.000000000000000000000000000000, '3 Drive', '2025-08-15 04:55:45'::timestamp without time zone, 1, '2025-08-07 08:00:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 0.804289999999999949400000000000, - 1.000000000000000000000000000000, 5, 0.804289999999999949400000000000, '2025-08-07 08:00:00'::timestamp without time zone, 0.813200000000000034000000000000, '2025-08-11 16:00:00'::timestamp without time zone, 0.802200000000000024200000000000, '2025-08-13 12:00:00'::timestamp without time zone, 0.808849999999999957900000000000, '2025-08-14 20:00:00'::timestamp without time zone, 0.800391069330825044600000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.725460059213940189400000000000, - 1.000000000000000000000000000000, 10.673458967085304390000000000000, 39, 0.808849999999999957900000000000, 0.805618975992431929400000000000, 0.814077906661606842700000000000, 0.807041069331111526900000000000, 0.811150995355773729600000000000, 0.804620534665412501200000000000, 0.803622093338393073200000000000, 605679104124773300, 0.549079881572119621300000000000, 'AB=1.272*XA (1.235) BC=0.618*AB (0.605) ', 0, '3 Drive|1|2025-08-07 08:00:00|0.80429|-1|5|39|AB=1.272*XA (1.235)","BC=0.618*AB (0.605)|0|605679104124773300|2025-08-07 08:00:00|2025-08-11 16:00:00|2025-08-13 12:00:00|2025-08-14 20:00:00|1899-12-29 00:00:00', - 1, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:42 Duration: 11ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES (2.000000000000000000000000000000, '3 Drive', '2025-08-15 04:55:39'::timestamp without time zone, 1, '2025-08-11 00:00:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 3.633560000000000123000000000000, - 1.000000000000000000000000000000, 5, 3.633560000000000123000000000000, '2025-08-11 00:00:00'::timestamp without time zone, 3.673849999999999838000000000000, '2025-08-12 12:00:00'::timestamp without time zone, 3.622799999999999798000000000000, '2025-08-13 16:00:00'::timestamp without time zone, 3.664740000000000108000000000000, '2025-08-14 16:00:00'::timestamp without time zone, 3.611391495899969772000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.773110578043470164600000000000, - 1.000000000000000000000000000000, 11.873725990238167330000000000000, 26, 3.664740000000000108000000000000, 3.644362684680089615000000000000, 3.697711188780119951000000000000, 3.653331495901777526000000000000, 3.679251841386639743000000000000, 3.638065747949984718000000000000, 3.631768811219880266000000000000, 515840217494988300, 0.453778843913059670700000000000, 'AB=1.272*XA (1.267) BC=0.786*AB (0.822) ', 0, '3 Drive|1|2025-08-11 00:00:00|3.63356|-1|5|26|AB=1.272*XA (1.267)","BC=0.786*AB (0.822)|0|515840217494988300|2025-08-11 00:00:00|2025-08-12 12:00:00|2025-08-13 16:00:00|2025-08-14 16:00:00|1899-12-29 00:00:00', - 1, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:36 Duration: 9ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES (3.000000000000000000000000000000, 'ABCD', '2025-08-15 05:26:22'::timestamp without time zone, - 1, '2025-08-12 10:00:00'::timestamp without time zone, '2025-08-15 08:00:00'::timestamp without time zone, 8938.000000000000000000000000000000, - 1.000000000000000000000000000000, 4, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 8892.200000000000728000000000000000, '2025-08-12 14:30:00'::timestamp without time zone, 9246.700000000000728000000000000000, '2025-08-13 17:30:00'::timestamp without time zone, 8979.799999999999272000000000000000, '2025-08-15 06:00:00'::timestamp without time zone, 9334.299999999999272000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.947770159438370951600000000000, - 1.000000000000000000000000000000, 176.913085470883373800000000000000, 124, 8979.799999999999272000000000000000, 9115.206951005849988000000000000000, 8760.706951005849988000000000000000, 9055.609336569899824000000000000000, 8883.369034252249548000000000000000, 9157.049999999999272000000000000000, 9198.893048994148558000000000000000, 515840245908875300, 0.104459681123258152360000000000, 'BC=0.786*AB (0.753) ', 0, 'ABCD|-1|2025-08-12 10:00:00|8938|-1|4|124|BC=0.786*AB (0.753)|0|515840245908875300|1899-12-29 00:00:00|2025-08-12 14:30:00|2025-08-13 17:30:00|2025-08-15 06:00:00|1899-12-29 00:00:00', - 1, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:31:18 Duration: 8ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
12 2,180 1s645ms 0ms 9ms 0ms insert into t60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on conflict (pricedatetime, symbolid) do update set open = ?, high = ?, low = ?, close = ?, volume = ?, bsf = ?, sastdatetimewritten = ?, sastdatetimereceived = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Aug 15 07 2,180 1s645ms 0ms [ User: postgres - Total duration: 1s645ms - Times executed: 2180 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s645ms - Times executed: 2180 ]
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 07:00:00', '6.39532', '6.39577', '6.3931', '6.39361', '305', '515840247894566300', '0', '2025-08-15 07:00:56.566', '2025-08-15 07:00:56.51') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '6.39532', high = '6.39577', low = '6.3931', close = '6.39361', volume = '305', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:56.566', sastdatetimereceived = '2025-08-15 07:00:56.51';
Date: 2025-08-15 07:00:56 Duration: 9ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 07:00:00', '31.59', '31.82', '31.31', '31.41', '242', '515840247893649300', '0', '2025-08-15 07:01:00.641', '2025-08-15 07:01:00.557') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '31.59', high = '31.82', low = '31.31', close = '31.41', volume = '242', bsf = '0', sastdatetimewritten = '2025-08-15 07:01:00.641', sastdatetimereceived = '2025-08-15 07:01:00.557';
Date: 2025-08-15 07:01:00 Duration: 9ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 07:00:00', '3.65358', '3.65379', '3.65012', '3.65043', '365', '515840247873988300', '0', '2025-08-15 07:00:58.576', '2025-08-15 07:00:58.525') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '3.65358', high = '3.65379', low = '3.65012', close = '3.65043', volume = '365', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:58.576', sastdatetimereceived = '2025-08-15 07:00:58.525';
Date: 2025-08-15 07:00:58 Duration: 8ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
13 1,602 4s168ms 0ms 12ms 2ms 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) values (?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?.?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?.?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?.?, ?.?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone) on conflict do nothing;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Aug 15 07 1,602 4s168ms 2ms [ User: postgres - Total duration: 4s168ms - Times executed: 1602 ]
[ Application: [unknown] - Total duration: 4s168ms - Times executed: 1602 ]
-
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) VALUES (3.000000000000000000000000000000, - 1, 1, '2025-08-15 04:55:38'::timestamp without time zone, '2025-08-15 04:00:00', 0.005452499999999961718000000000, 5, 147, 1.171659999999999924000000000000, '2025-08-07 08:00:00', '2025-07-21 16:00:00', '2025-07-15 08:00:00', '2025-07-14 04:00:00', '2025-07-11 16:00:00', '', '', '', '', '', 336, 1.173554500000000056000000000000, '2025-08-15 04:00:00'::timestamp without time zone, '2025-08-15 04:00:00', 1.166299999999999892000000000000, 0.001894499999999999917000000000, 1, 515840249373009300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840249373009300|1.17166|1|2025-08-15 04:00:00|2025-08-15 04:00:00|1|-1', 1.164135549999999908000000000000, 0.007524450000000015848000000000, 2, '2025-07-11 16:00:00', 1.163110000000000088000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:34 Duration: 12ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES (4.000000000000000000000000000000, - 1, 2, '2025-08-15 04:57:05'::timestamp without time zone, '2025-08-15 07:45:00', 0.006500000000000120265000000000, 4, 133, 4.477999999999999758000000000000, '2025-08-15 01:00:00', '2025-08-14 13:00:00', '2025-08-13 23:00:00', '2025-08-13 20:30:00', '', '', '', '', '', '', 265, 4.474899999999999878000000000000, '2025-08-15 07:45:00'::timestamp without time zone, '2025-08-15 07:45:00', 4.482000000000000206000000000000, 0.003150000000000029946000000000, - 1, 515840233426798300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840233426798300|4.478|2|2025-08-15 07:45:00|2025-08-15 07:45:00|-1|-1', 4.486970000000000347000000000000, 0.008970000000000588614000000000, 2, '2025-08-13 20:30:00', 4.491999999999999993000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:02:02 Duration: 12ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES (8.000000000000000000000000000000, - 1, 2, '2025-08-15 04:56:02'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 218, 0.590295000000000014200000000000, '2025-08-15 05:00:00', '2025-08-14 19:00:00', '2025-08-04 11:00:00', '2025-08-04 03:00:00', '', '', '', '', '', '', 545, 0.589740999999999959700000000000, '2025-08-15 07:00:00'::timestamp without time zone, '2025-08-15 07:00:00', 0.000000000000000000000000000000, 0.000553999999999998937800000000, 1, 515840249465046300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840249465046300|0.590295|2|2025-08-15 07:00:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2025-08-04 03:00:00', 0.588139999999999996200000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:59 Duration: 11ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
14 1,542 1s311ms 0ms 5ms 0ms update patternresultsrelevance set relevant = ?, saxo_relevant = ?, notrelevantpricedatetime = ?, reason = ? where uniqueindex = ? and relevant = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Aug 15 07 1,542 1s311ms 0ms [ User: postgres - Total duration: 1s311ms - Times executed: 1542 ]
[ Application: [unknown] - Total duration: 1s311ms - Times executed: 1542 ]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2025-08-15 04:00:00', reason = 'Price has moved too far in the wrong direction' WHERE uniqueIndex = '|515840243915122300|115.559|1|2025-08-14 16:00:00|2025-08-14 16:00:00|1|-1' and relevant = 1;
Date: 2025-08-15 07:01:01 Duration: 5ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2025-08-15 04:00:00', reason = 'Emerging pattern formed a completed pattern.' WHERE uniqueIndex = 'ABCD|1|2025-08-04 00:00:00|0.519465|-1|4|19|BC=0.786*AB (0.778)|0|605679104130892300|1899-12-29 00:00:00|2025-08-11 16:00:00|2025-08-12 08:00:00|2025-08-14 04:00:00|1899-12-29 00:00:00' and relevant = 1;
Date: 2025-08-15 07:01:20 Duration: 4ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2025-08-15 04:00:00', reason = 'Price has moved too far in the wrong direction' WHERE uniqueIndex = '|515840243162375300|3323.36|2|2025-08-14 16:00:00|2025-08-14 16:00:00|-1|-1' and relevant = 1;
Date: 2025-08-15 07:00:47 Duration: 4ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
15 1,461 823ms 0ms 23ms 0ms with rar_max as ( select resultuid from relevance_keylevels_results order by resultuid desc limit ? ) select case when a.old_resultuid = ? then a.old_resultuid else a.resultuid end as ruid, s.symbolid as sid, s.symbol as sym, longname, shortname, exchange as e, timegranularity as tg, a.patternid as pid, a.direction as d, a.patternprice as pp, atbaridentified as pet, case when (x9 != ?) then x9 when (x8 != ?) then x8 when (x7 != ?) then x7 when (x6 != ?) then x6 when (x5 != ?) then x5 when (x4 != ?) then x4 when (x3 != ?) then x3 when (x2 != ?) then x2 end as pst, patternprice as patp, x0, x1, x2, case when (x3 != ?) then x3 else ? end as x3, case when (x4 != ?) then x4 else ? end as x4, case when (x5 != ?) then x5 else ? end as x5, case when (x6 != ?) then x6 else ? end as x6, case when (x7 != ?) then x7 else ? end as x7, case when (x8 != ?) then x8 else ? end as x8, errormargin as erm, breakoutprice as pe, breakoutbars as be, breakout, atbaridentified as atbar, atpriceidentified as atprice, patternlengthbars as l, bandwidth as bw, qtytp as qtp, p.patternname as patternname, dtt.absolutetimezoneoffset as tzos, dtt.timezone as timezone, approachingtimestamp as apt, approachingregion as apr, predictionpricefrom as ppf, predictionpriceto as ppt, predictiontimefrom as ptf, predictiontimebars as ptb, furthestprice as fp, newlevels.filtered, a.uniquepointsvalue as upv, case when rar.age is not null then rar.age when a.resultuid <= rm.resultuid then ? else ? end as age, case when rar.relevant is not null then rar.relevant when a.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip from keylevels_results a inner join downloadersymbolsettings dss on a.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname inner join symbols s on a.symbolid = s.symbolid inner join hrspatterns p on a.patternid = p.patternid inner join rar_max rm on ? = ? left outer join relevance_keylevels_results rar on a.resultuid = rar.resultuid left join lateral calc_kl_signal_filter (a.resultuid) newlevels on true left join currencypips cps on cps.symbol = s.symbol where (a.old_resultuid = ? or a.resultuid = ?) and dtt.dayofweek = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Aug 15 07 1,461 823ms 0ms [ User: postgres - Total duration: 823ms - Times executed: 1461 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 823ms - Times executed: 1461 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ) SELECT CASE WHEN a.old_resultuid = '606636039497861303' THEN a.old_resultuid ELSE a.resultuid END AS ruid, s.symbolid AS sid, s.symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, a.PatternID AS pid, a.direction AS d, a.patternprice AS pp, atbaridentified AS pet, CASE WHEN (x9 != '') THEN x9 WHEN (x8 != '') THEN x8 WHEN (x7 != '') THEN x7 WHEN (x6 != '') THEN x6 WHEN (x5 != '') THEN x5 WHEN (x4 != '') THEN x4 WHEN (x3 != '') THEN x3 WHEN (x2 != '') THEN x2 END AS pst, PatternPrice AS patp, x0, x1, x2, CASE WHEN (x3 != '') THEN x3 ELSE '0' END AS x3, CASE WHEN (x4 != '') THEN x4 ELSE '0' END AS x4, CASE WHEN (x5 != '') THEN x5 ELSE '0' END AS x5, CASE WHEN (x6 != '') THEN x6 ELSE '0' END AS x6, CASE WHEN (x7 != '') THEN x7 ELSE '0' END AS x7, CASE WHEN (x8 != '') THEN x8 ELSE '0' END AS x8, errorMargin AS erm, breakoutprice AS pE, breakoutbars AS be, breakout, atbaridentified AS atBar, atpriceidentified AS atPrice, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname AS patternname, dtt.absolutetimezoneoffset AS tzOs, dtt.timezone AS timezone, approachingtimestamp AS apt, approachingregion AS apr, predictionpricefrom AS ppf, predictionpriceto AS ppt, predictiontimefrom AS ptf, predictiontimebars AS ptb, furthestprice AS fp, newLevels.filtered, a.uniquepointsvalue AS upv, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM keylevels_results a INNER JOIN downloadersymbolsettings dss ON a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN symbols s ON a.symbolid = s.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON a.resultuid = rar.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (a.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol WHERE (a.old_resultuid = '606636039497861303' OR a.resultuid = '606636039497861303') AND dtt.dayofweek = 3;
Date: 2025-08-15 07:38:53 Duration: 23ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ) SELECT CASE WHEN a.old_resultuid = '606639809470021303' THEN a.old_resultuid ELSE a.resultuid END AS ruid, s.symbolid AS sid, s.symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, a.PatternID AS pid, a.direction AS d, a.patternprice AS pp, atbaridentified AS pet, CASE WHEN (x9 != '') THEN x9 WHEN (x8 != '') THEN x8 WHEN (x7 != '') THEN x7 WHEN (x6 != '') THEN x6 WHEN (x5 != '') THEN x5 WHEN (x4 != '') THEN x4 WHEN (x3 != '') THEN x3 WHEN (x2 != '') THEN x2 END AS pst, PatternPrice AS patp, x0, x1, x2, CASE WHEN (x3 != '') THEN x3 ELSE '0' END AS x3, CASE WHEN (x4 != '') THEN x4 ELSE '0' END AS x4, CASE WHEN (x5 != '') THEN x5 ELSE '0' END AS x5, CASE WHEN (x6 != '') THEN x6 ELSE '0' END AS x6, CASE WHEN (x7 != '') THEN x7 ELSE '0' END AS x7, CASE WHEN (x8 != '') THEN x8 ELSE '0' END AS x8, errorMargin AS erm, breakoutprice AS pE, breakoutbars AS be, breakout, atbaridentified AS atBar, atpriceidentified AS atPrice, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname AS patternname, dtt.absolutetimezoneoffset AS tzOs, dtt.timezone AS timezone, approachingtimestamp AS apt, approachingregion AS apr, predictionpricefrom AS ppf, predictionpriceto AS ppt, predictiontimefrom AS ptf, predictiontimebars AS ptb, furthestprice AS fp, newLevels.filtered, a.uniquepointsvalue AS upv, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM keylevels_results a INNER JOIN downloadersymbolsettings dss ON a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN symbols s ON a.symbolid = s.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON a.resultuid = rar.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (a.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol WHERE (a.old_resultuid = '606639809470021303' OR a.resultuid = '606639809470021303') AND dtt.dayofweek = 3;
Date: 2025-08-15 07:38:48 Duration: 15ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ) SELECT CASE WHEN a.old_resultuid = '606639810134102303' THEN a.old_resultuid ELSE a.resultuid END AS ruid, s.symbolid AS sid, s.symbol AS sym, longname, shortname, Exchange AS e, timegranularity AS tg, a.PatternID AS pid, a.direction AS d, a.patternprice AS pp, atbaridentified AS pet, CASE WHEN (x9 != '') THEN x9 WHEN (x8 != '') THEN x8 WHEN (x7 != '') THEN x7 WHEN (x6 != '') THEN x6 WHEN (x5 != '') THEN x5 WHEN (x4 != '') THEN x4 WHEN (x3 != '') THEN x3 WHEN (x2 != '') THEN x2 END AS pst, PatternPrice AS patp, x0, x1, x2, CASE WHEN (x3 != '') THEN x3 ELSE '0' END AS x3, CASE WHEN (x4 != '') THEN x4 ELSE '0' END AS x4, CASE WHEN (x5 != '') THEN x5 ELSE '0' END AS x5, CASE WHEN (x6 != '') THEN x6 ELSE '0' END AS x6, CASE WHEN (x7 != '') THEN x7 ELSE '0' END AS x7, CASE WHEN (x8 != '') THEN x8 ELSE '0' END AS x8, errorMargin AS erm, breakoutprice AS pE, breakoutbars AS be, breakout, atbaridentified AS atBar, atpriceidentified AS atPrice, PatternLengthBars AS l, Bandwidth AS bw, QtyTP AS qtp, p.patternname AS patternname, dtt.absolutetimezoneoffset AS tzOs, dtt.timezone AS timezone, approachingtimestamp AS apt, approachingregion AS apr, predictionpricefrom AS ppf, predictionpriceto AS ppt, predictiontimefrom AS ptf, predictiontimebars AS ptb, furthestprice AS fp, newLevels.filtered, a.uniquepointsvalue AS upv, CASE WHEN rar.age IS NOT NULL THEN rar.age WHEN a.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN rar.relevant IS NOT NULL THEN rar.relevant WHEN a.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM keylevels_results a INNER JOIN downloadersymbolsettings dss ON a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname INNER JOIN symbols s ON a.symbolid = s.symbolid INNER JOIN hrspatterns p ON a.patternid = p.patternid INNER JOIN rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_keylevels_results rar ON a.resultuid = rar.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (a.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol WHERE (a.old_resultuid = '606639810134102303' OR a.resultuid = '606639810134102303') AND dtt.dayofweek = 3;
Date: 2025-08-15 07:25:15 Duration: 15ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
16 1,072 1s204ms 0ms 12ms 1ms insert into t240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on conflict (pricedatetime, symbolid) do update set open = ?, high = ?, low = ?, close = ?, volume = ?, bsf = ?, sastdatetimewritten = ?, sastdatetimereceived = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 15 07 1,072 1s204ms 1ms [ User: postgres - Total duration: 1s204ms - Times executed: 1072 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s204ms - Times executed: 1072 ]
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 04:00:00', '1.28429', '1.28458', '1.28331', '1.28353', '9968', '515840217492301300', '0', '2025-08-15 07:00:03.204', '2025-08-15 07:00:03.202') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '1.28429', high = '1.28458', low = '1.28331', close = '1.28353', volume = '9968', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:03.204', sastdatetimereceived = '2025-08-15 07:00:03.202';
Date: 2025-08-15 07:00:03 Duration: 12ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 04:00:00', '14145.5', '14185.5', '14080.5', '14169.5', '28558', '500991628279121200', '0', '2025-08-15 07:00:03.518', '2025-08-15 07:00:03.516') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '14145.5', high = '14185.5', low = '14080.5', close = '14169.5', volume = '28558', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:03.518', sastdatetimereceived = '2025-08-15 07:00:03.516';
Date: 2025-08-15 07:00:03 Duration: 5ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 04:00:00', '1.60912', '1.6098', '1.60881', '1.6095', '8485', '515840217677407300', '0', '2025-08-15 07:00:27.98', '2025-08-15 07:00:27.979') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '1.60912', high = '1.6098', low = '1.60881', close = '1.6095', volume = '8485', bsf = '0', sastdatetimewritten = '2025-08-15 07:00:27.98', sastdatetimereceived = '2025-08-15 07:00:27.979';
Date: 2025-08-15 07:00:28 Duration: 5ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
17 640 1s542ms 2ms 4ms 2ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Aug 15 07 640 1s542ms 2ms [ User: postgres - Total duration: 1s542ms - Times executed: 640 ]
[ Application: [unknown] - Total duration: 1s542ms - Times executed: 640 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 01:15:00'::timestamp without time zone, 0.65175, 0.65185, 0.6516, 0.65185, 177, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 01:30:00'::timestamp without time zone, 0.6519, 0.65195, 0.65175, 0.65195, 221, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 01:45:00'::timestamp without time zone, 0.65195, 0.6522, 0.6519, 0.6522, 316, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:00:00'::timestamp without time zone, 0.65225, 0.6525, 0.65205, 0.6524, 709, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:15:00'::timestamp without time zone, 0.65245, 0.65315, 0.65245, 0.6529, 611, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:30:00'::timestamp without time zone, 0.653, 0.65315, 0.65295, 0.65305, 309, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:45:00'::timestamp without time zone, 0.65305, 0.65315, 0.65275, 0.6528, 301, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:00:00'::timestamp without time zone, 0.6528, 0.6529, 0.65265, 0.65275, 404, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:15:00'::timestamp without time zone, 0.65275, 0.6531, 0.65275, 0.6531, 441, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:30:00'::timestamp without time zone, 0.6531, 0.6535, 0.6529, 0.6533, 727, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:45:00'::timestamp without time zone, 0.65325, 0.65425, 0.6532, 0.6542, 1877, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:00:00'::timestamp without time zone, 0.65415, 0.65455, 0.65355, 0.6537, 1387, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:15:00'::timestamp without time zone, 0.6537, 0.6537, 0.6532, 0.6534, 638, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:30:00'::timestamp without time zone, 0.65335, 0.65375, 0.65325, 0.6536, 419, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:45:00'::timestamp without time zone, 0.65355, 0.65375, 0.65345, 0.65355, 421, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:00:00'::timestamp without time zone, 0.65365, 0.65365, 0.65325, 0.65345, 279, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:15:00'::timestamp without time zone, 0.6535, 0.6536, 0.65335, 0.6534, 402, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:30:00'::timestamp without time zone, 0.6534, 0.65345, 0.65305, 0.6532, 304, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:45:00'::timestamp without time zone, 0.6532, 0.6533, 0.6529, 0.6529, 404, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:00:00'::timestamp without time zone, 0.65295, 0.6531, 0.65265, 0.65305, 437, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:15:00'::timestamp without time zone, 0.65305, 0.6532, 0.6527, 0.6527, 265, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:30:00'::timestamp without time zone, 0.6527, 0.65315, 0.6527, 0.6531, 551, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:45:00'::timestamp without time zone, 0.6531, 0.6533, 0.65295, 0.65325, 504, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:00:00'::timestamp without time zone, 0.6532, 0.6537, 0.6525, 0.6527, 1494, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:15:00'::timestamp without time zone, 0.65275, 0.65305, 0.65255, 0.65265, 445, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:30:00'::timestamp without time zone, 0.65265, 0.65275, 0.6522, 0.65235, 761, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:45:00'::timestamp without time zone, 0.65235, 0.65275, 0.6523, 0.65265, 367, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:00:00'::timestamp without time zone, 0.65265, 0.65285, 0.6525, 0.65255, 711, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:15:00'::timestamp without time zone, 0.65255, 0.65315, 0.65255, 0.653, 753, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:30:00'::timestamp without time zone, 0.653, 0.65335, 0.65255, 0.65265, 1179, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:45:00'::timestamp without time zone, 0.6527, 0.6532, 0.6527, 0.65295, 719, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:00:00'::timestamp without time zone, 0.653, 0.6535, 0.653, 0.6533, 648, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:15:00'::timestamp without time zone, 0.6534, 0.6535, 0.6527, 0.65335, 1001, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:30:00'::timestamp without time zone, 0.65335, 0.6535, 0.65275, 0.6531, 1895, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:45:00'::timestamp without time zone, 0.653, 0.653, 0.6521, 0.6522, 1402, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:00:00'::timestamp without time zone, 0.65215, 0.65225, 0.65095, 0.65135, 3321, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:15:00'::timestamp without time zone, 0.65135, 0.6514, 0.65075, 0.6511, 1528, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:30:00'::timestamp without time zone, 0.65115, 0.6512, 0.6504, 0.6505, 1513, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:45:00'::timestamp without time zone, 0.6505, 0.6505, 0.64995, 0.65005, 4849, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:00:00'::timestamp without time zone, 0.65005, 0.65015, 0.64945, 0.65015, 4174, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:15:00'::timestamp without time zone, 0.65015, 0.65045, 0.6501, 0.6504, 1248, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:30:00'::timestamp without time zone, 0.65045, 0.6506, 0.65015, 0.6504, 916, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:45:00'::timestamp without time zone, 0.6504, 0.65065, 0.65035, 0.6505, 625, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:00:00'::timestamp without time zone, 0.6506, 0.65065, 0.65035, 0.65065, 409, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:15:00'::timestamp without time zone, 0.65065, 0.65095, 0.6505, 0.6508, 405, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:30:00'::timestamp without time zone, 0.6508, 0.65085, 0.65025, 0.65025, 309, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:45:00'::timestamp without time zone, 0.65025, 0.6507, 0.6502, 0.6506, 227, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:00:00'::timestamp without time zone, 0.6506, 0.65065, 0.6503, 0.65045, 649, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:15:00'::timestamp without time zone, 0.6504, 0.6507, 0.65025, 0.65045, 344, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:30:00'::timestamp without time zone, 0.65045, 0.65085, 0.65035, 0.65085, 767, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:45:00'::timestamp without time zone, 0.65085, 0.65085, 0.65065, 0.65065, 373, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 07:26:20 Duration: 4ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 09:15:00'::timestamp without time zone, 0.81055, 0.81105, 0.8097, 0.8109, 6046, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 09:30:00'::timestamp without time zone, 0.81092, 0.81114, 0.80846, 0.8092, 6343, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 09:45:00'::timestamp without time zone, 0.80863, 0.80981, 0.8077, 0.80925, 6801, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:00:00'::timestamp without time zone, 0.8093, 0.81, 0.8084, 0.8099, 6119, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:15:00'::timestamp without time zone, 0.80989, 0.81042, 0.8093, 0.8099, 5771, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:30:00'::timestamp without time zone, 0.80994, 0.81017, 0.8088, 0.80912, 5564, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:45:00'::timestamp without time zone, 0.80918, 0.8096, 0.8087, 0.809, 5529, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:00:00'::timestamp without time zone, 0.80915, 0.80938, 0.8082, 0.80885, 5362, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:15:00'::timestamp without time zone, 0.80884, 0.80906, 0.8071, 0.8076, 4949, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:30:00'::timestamp without time zone, 0.8076, 0.80822, 0.8064, 0.8067, 5563, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:45:00'::timestamp without time zone, 0.80679, 0.8082, 0.8065, 0.8079, 5162, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:00:00'::timestamp without time zone, 0.80809, 0.80847, 0.8077, 0.80829, 4071, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:15:00'::timestamp without time zone, 0.80839, 0.80852, 0.8071, 0.8072, 3891, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:30:00'::timestamp without time zone, 0.80739, 0.8075, 0.8067, 0.8074, 3952, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:45:00'::timestamp without time zone, 0.80741, 0.8077, 0.8067, 0.80738, 3799, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:00:00'::timestamp without time zone, 0.80737, 0.80785, 0.8071, 0.80754, 3787, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:15:00'::timestamp without time zone, 0.8074, 0.80777, 0.8071, 0.80735, 3249, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:30:00'::timestamp without time zone, 0.80744, 0.80763, 0.807, 0.8071, 2870, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:45:00'::timestamp without time zone, 0.8072, 0.8076, 0.8069, 0.8073, 2614, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:00:00'::timestamp without time zone, 0.80752, 0.80774, 0.8068, 0.80733, 2652, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:15:00'::timestamp without time zone, 0.80732, 0.80787, 0.8069, 0.80766, 2565, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:30:00'::timestamp without time zone, 0.80765, 0.8078, 0.8071, 0.8075, 2633, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:45:00'::timestamp without time zone, 0.8076, 0.8078, 0.8069, 0.80735, 2595, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:00:00'::timestamp without time zone, 0.80734, 0.8075, 0.8069, 0.8071, 2921, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:15:00'::timestamp without time zone, 0.8071, 0.80724, 0.8064, 0.80666, 3006, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:30:00'::timestamp without time zone, 0.8067, 0.80671, 0.806, 0.80645, 2626, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:45:00'::timestamp without time zone, 0.80644, 0.8066, 0.8058, 0.80635, 2591, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:00:00'::timestamp without time zone, 0.8063, 0.80677, 0.8061, 0.80643, 1415, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:15:00'::timestamp without time zone, 0.80642, 0.80671, 0.8062, 0.80663, 666, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:30:00'::timestamp without time zone, 0.80663, 0.80684, 0.8063, 0.8064, 572, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:45:00'::timestamp without time zone, 0.80656, 0.8067, 0.80594, 0.8062, 693, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:00:00'::timestamp without time zone, 0.8058, 0.8068, 0.80568, 0.8064, 104, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:15:00'::timestamp without time zone, 0.8065, 0.8066, 0.80554, 0.8063, 110, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:30:00'::timestamp without time zone, 0.8064, 0.8067, 0.80552, 0.8062, 143, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:45:00'::timestamp without time zone, 0.80562, 0.8066, 0.80561, 0.80597, 141, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:00:00'::timestamp without time zone, 0.80609, 0.8065, 0.80584545, 0.805955335, 192, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:15:00'::timestamp without time zone, 0.80607, 0.80614, 0.8057, 0.806, 837, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:30:00'::timestamp without time zone, 0.80599, 0.80626, 0.8058, 0.80618, 645, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:45:00'::timestamp without time zone, 0.80619, 0.8064, 0.805973134, 0.80618, 460, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:00:00'::timestamp without time zone, 0.80621, 0.80628, 0.8058, 0.80611, 376, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:15:00'::timestamp without time zone, 0.80615, 0.80622, 0.8059, 0.80614, 299, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:30:00'::timestamp without time zone, 0.80615, 0.8063, 0.8059, 0.80605, 376, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:45:00'::timestamp without time zone, 0.806053808, 0.80622, 0.8058, 0.80613, 442, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:00:00'::timestamp without time zone, 0.80611, 0.80663, 0.8059, 0.8065, 632, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:15:00'::timestamp without time zone, 0.80657, 0.80683, 0.806329147, 0.80672, 581, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:30:00'::timestamp without time zone, 0.80673, 0.80691, 0.8064, 0.80665, 495, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:45:00'::timestamp without time zone, 0.80665, 0.80667, 0.8062, 0.80639, 611, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:00:00'::timestamp without time zone, 0.80637, 0.80643, 0.8059, 0.80615, 1570, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:15:00'::timestamp without time zone, 0.80616, 0.80659, 0.8059, 0.806532263, 1302, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:30:00'::timestamp without time zone, 0.80658, 0.80664, 0.8061, 0.80639, 1970, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:45:00'::timestamp without time zone, 0.80638, 0.80678, 0.8061, 0.8067, 1550, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 07:27:04 Duration: 3ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 01:15:00'::timestamp without time zone, 64.8, 64.85, 64.79, 64.81, 224, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 01:30:00'::timestamp without time zone, 64.82, 64.84, 64.7, 64.71, 915, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 01:45:00'::timestamp without time zone, 64.71, 64.74, 64.67, 64.74, 476, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:00:00'::timestamp without time zone, 64.75, 64.87, 64.75, 64.83, 536, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:15:00'::timestamp without time zone, 64.82, 64.85, 64.76, 64.78, 335, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:30:00'::timestamp without time zone, 64.78, 64.82, 64.69, 64.81, 525, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:45:00'::timestamp without time zone, 64.81, 64.85, 64.7, 64.78, 681, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:00:00'::timestamp without time zone, 64.78, 64.96, 64.72, 64.88, 1579, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:15:00'::timestamp without time zone, 64.89, 64.97, 64.8, 64.82, 820, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:30:00'::timestamp without time zone, 64.82, 64.93, 64.75, 64.92, 1065, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:45:00'::timestamp without time zone, 64.91, 64.92, 64.73, 64.75, 1266, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:00:00'::timestamp without time zone, 64.75, 64.8, 64.12, 64.27, 6858, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:15:00'::timestamp without time zone, 64.26, 64.59, 64.24, 64.45, 3957, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:30:00'::timestamp without time zone, 64.46, 64.54, 64.13, 64.51, 2991, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:45:00'::timestamp without time zone, 64.51, 64.65, 64.47, 64.56, 1628, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:00:00'::timestamp without time zone, 64.57, 64.78, 64.52, 64.7, 1490, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:15:00'::timestamp without time zone, 64.7, 64.76, 64.68, 64.73, 856, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:30:00'::timestamp without time zone, 64.73, 64.74, 64.56, 64.58, 998, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:45:00'::timestamp without time zone, 64.6, 64.87, 64.59, 64.86, 992, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:00:00'::timestamp without time zone, 64.87, 64.96, 64.74, 64.82, 1401, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:15:00'::timestamp without time zone, 64.81, 64.9, 64.73, 64.82, 881, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:30:00'::timestamp without time zone, 64.82, 64.96, 64.8, 64.94, 886, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:45:00'::timestamp without time zone, 64.93, 65.11, 64.85, 64.86, 1934, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:00:00'::timestamp without time zone, 64.86, 64.95, 64.77, 64.8, 1403, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:15:00'::timestamp without time zone, 64.81, 64.83, 64.57, 64.62, 1592, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:30:00'::timestamp without time zone, 64.62, 64.73, 64.52, 64.69, 1776, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:45:00'::timestamp without time zone, 64.69, 64.73, 64.55, 64.58, 1551, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:00:00'::timestamp without time zone, 64.6, 64.84, 64.58, 64.83, 2026, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:15:00'::timestamp without time zone, 64.83, 64.85, 64.63, 64.64, 1452, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:30:00'::timestamp without time zone, 64.65, 64.83, 64.6, 64.8, 1878, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:45:00'::timestamp without time zone, 64.8, 64.83, 64.68, 64.69, 1513, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:00:00'::timestamp without time zone, 64.7, 64.72, 64.34, 64.36, 5655, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:15:00'::timestamp without time zone, 64.36, 64.41, 64.27, 64.31, 4380, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:30:00'::timestamp without time zone, 64.32, 64.71, 64.22, 64.63, 6355, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:45:00'::timestamp without time zone, 64.64, 64.64, 64.42, 64.47, 3612, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:00:00'::timestamp without time zone, 64.48, 64.59, 64.32, 64.37, 3954, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:15:00'::timestamp without time zone, 64.38, 64.45, 64.14, 64.22, 3566, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:30:00'::timestamp without time zone, 64.22, 64.45, 64.2, 64.34, 3986, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:45:00'::timestamp without time zone, 64.34, 64.37, 64.06, 64.07, 3942, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:00:00'::timestamp without time zone, 64.07, 64.21, 64.06, 64.08, 4702, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:15:00'::timestamp without time zone, 64.07, 64.32, 64.02, 64.21, 4626, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:30:00'::timestamp without time zone, 64.2, 64.23, 63.85, 63.98, 5470, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:45:00'::timestamp without time zone, 63.97, 64.11, 63.93, 64.02, 3369, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:00:00'::timestamp without time zone, 64.02, 64.44, 64.02, 64.41, 5247, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:15:00'::timestamp without time zone, 64.41, 64.43, 64.26, 64.39, 2518, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:30:00'::timestamp without time zone, 64.38, 64.49, 64.31, 64.32, 2183, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:45:00'::timestamp without time zone, 64.32, 64.33, 64.19, 64.21, 2196, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:00:00'::timestamp without time zone, 64.22, 64.28, 64.05, 64.08, 2566, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:15:00'::timestamp without time zone, 64.08, 64.11, 64.01, 64.03, 2246, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:30:00'::timestamp without time zone, 64.02, 64.08, 63.78, 63.98, 4474, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:45:00'::timestamp without time zone, 63.98, 64.13, 63.94, 64.06, 2719, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 07:26:59 Duration: 3ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
18 619 1s28ms 0ms 7ms 1ms select s.symbolid, dss.downloadfrequency, dss.downloadersymbol from downloadersymbolsettings dss inner join symbols s on dss.symbolid = s.symbolid where dss.classname = ? and s.deleted = ? and dss.enabled = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Aug 15 07 619 1s28ms 1ms [ User: postgres - Total duration: 1s28ms - Times executed: 619 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s28ms - Times executed: 619 ]
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol FROM downloadersymbolsettings dss INNER JOIN symbols s ON dss.symbolid = s.symbolid WHERE dss.classname = 'ICMARKETS-AU-MT5' AND s.deleted = 0 AND dss.enabled = 1;
Date: 2025-08-15 07:00:05 Duration: 7ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol FROM downloadersymbolsettings dss INNER JOIN symbols s ON dss.symbolid = s.symbolid WHERE dss.classname = 'ICMARKETS-AU-MT5' AND s.deleted = 0 AND dss.enabled = 1;
Date: 2025-08-15 07:00:55 Duration: 4ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol FROM downloadersymbolsettings dss INNER JOIN symbols s ON dss.symbolid = s.symbolid WHERE dss.classname = 'ICMARKETS-AU-MT5' AND s.deleted = 0 AND dss.enabled = 1;
Date: 2025-08-15 07:15:36 Duration: 4ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
19 619 103ms 0ms 0ms 0ms select downloadersymbol, spike_threshold from price_datafeed_spike_threshold where classname = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Aug 15 07 619 103ms 0ms [ User: postgres - Total duration: 103ms - Times executed: 619 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 103ms - Times executed: 619 ]
-
SELECT downloadersymbol, spike_threshold FROM price_datafeed_spike_threshold WHERE classname = 'PEPPERSTONE';
Date: 2025-08-15 07:30:59 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT downloadersymbol, spike_threshold FROM price_datafeed_spike_threshold WHERE classname = 'ATFX';
Date: 2025-08-15 07:15:34 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT downloadersymbol, spike_threshold FROM price_datafeed_spike_threshold WHERE classname = 'PEPPERSTONE';
Date: 2025-08-15 07:30:51 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
20 617 3s285ms 0ms 142ms 5ms select t.pricedatetime as pricedatetime, t.open as open, t.high as high, t.low as low, t.close "..." close, t.volume as volume, t.bsf as bsf from t60 t where t.symbolid = ? and (bsf = ? or bsf is null) and pricedatetime >= ? and pricedatetime <= ? order by pricedatetime desc limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 15 07 617 3s285ms 5ms [ User: postgres - Total duration: 3s285ms - Times executed: 617 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 3s285ms - Times executed: 617 ]
-
SELECT T.PriceDateTime AS pricedatetime, T.Open AS open, T.High AS high, T.Low AS low, T.Close AS close, T.Volume AS volume, T.BSF AS bsf FROM T60 T WHERE T.symbolid = '515840245905196300' AND (BSF = '0' OR BSF IS NULL) AND pricedatetime >= '1900-01-01 00:00:00' AND pricedatetime <= '2900-01-01 00:00:00' ORDER BY PriceDateTime DESC LIMIT 700;
Date: 2025-08-15 07:00:05 Duration: 142ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT T.PriceDateTime AS pricedatetime, T.Open AS open, T.High AS high, T.Low AS low, T.Close AS close, T.Volume AS volume, T.BSF AS bsf FROM T60 T WHERE T.symbolid = '515840243156387300' AND (BSF = '0' OR BSF IS NULL) AND pricedatetime >= '1900-01-01 00:00:00' AND pricedatetime <= '2900-01-01 00:00:00' ORDER BY PriceDateTime DESC LIMIT 700;
Date: 2025-08-15 07:00:09 Duration: 115ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT T.PriceDateTime AS pricedatetime, T.Open AS open, T.High AS high, T.Low AS low, T.Close AS close, T.Volume AS volume, T.BSF AS bsf FROM T60 T WHERE T.symbolid = '515840245881759300' AND (BSF = '0' OR BSF IS NULL) AND pricedatetime >= '1900-01-01 00:00:00' AND pricedatetime <= '2900-01-01 00:00:00' ORDER BY PriceDateTime DESC LIMIT 700;
Date: 2025-08-15 07:00:05 Duration: 111ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 10s265ms 10s530ms 10s456ms 4 41s827ms select updateageforrelevantresults ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 15 07 4 41s827ms 10s456ms [ User: postgres - Total duration: 41s827ms - Times executed: 4 ]
[ Application: psql - Total duration: 41s827ms - Times executed: 4 ]
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:32:13 Duration: 10s530ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:47:13 Duration: 10s522ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 07:17:12 Duration: 10s508ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
2 178ms 39s627ms 7s855ms 417 54m35s with rar_max as ( select resultuid from relevance_keylevels_results order by resultuid desc limit ? ), kr as ( select a.*, rr.age, rr.relevant from keylevels_results a left outer join relevance_keylevels_results rr on a.resultuid = rr.resultuid where case when false = ? then true else a.resultuid > ( select min(resultuid) from relevance_keylevels_results) end ), all_results as ( select kr.resultuid as resultuid, kr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, coalesce(bim.code, 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 kr.age is not null then kr.age when kr.resultuid <= rm.resultuid then ? else ? end as age, case when kr.relevant is not null then kr.relevant when kr.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip from kr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = kr.symbolid inner join symbols s on bsl.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on s.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 s.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join autochartist_symbolupdates au on dss.symbolid = au.symbolid left outer join relevance_keylevels_results rar on rar.resultuid = kr.resultuid left join lateral calc_kl_signal_filter (kr.resultuid) newlevels on true left join currencypips cps on cps.symbol = s.symbol left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where kr.gmttimefound > now() - interval ? and dss.enabled = ? and s.deleted = ? and (kr.simulation = ? or kr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, s.symbol) in (...)) and (? = ? or p.patternname in (...)) and (? = ? or kr.patternclassid in (...)) and (? = ? or kr.patternlengthbars <= ?) and kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, ?::timestamp without time zone) -- to make sure patternstarttime is in our t-tables ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Aug 15 07 417 54m35s 7s855ms [ User: postgres - Total duration: 54m35s - Times executed: 417 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 51m52s - Times executed: 405 ]
[ Application: [unknown] - Total duration: 2m43s - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;
Date: 2025-08-15 07:38:07 Duration: 39s627ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;
Date: 2025-08-15 07:56:36 Duration: 38s294ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ), kr AS ( SELECT a.*, rr.age, rr.relevant from keylevels_results a LEFT OUTER JOIN relevance_keylevels_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_keylevels_results) END ), all_results AS ( SELECT kr.resultuid AS resultuid, kr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, 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 kr.age IS NOT NULL THEN kr.age WHEN kr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN kr.relevant IS NOT NULL THEN kr.relevant WHEN kr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM kr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = kr.symbolid INNER JOIN symbols s ON bsl.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on s.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 s.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN relevance_keylevels_results rar ON rar.resultuid = kr.resultuid LEFT JOIN LATERAL calc_kl_signal_filter (kr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE kr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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') AND kr.patternstarttime::timestamp without time zone >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;
Date: 2025-08-15 07:07:20 Duration: 37s200ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
3 361ms 22s44ms 6s979ms 418 48m37s with rar_max as ( select resultuid from relevance_autochartist_results order by resultuid desc limit ? ), ar as ( select a.*, rr.age, rr.relevant from autochartist_results a left outer join relevance_autochartist_results rr on a.resultuid = rr.resultuid where case when false = ? then true else a.resultuid > ( select min(resultuid) from relevance_autochartist_results) end ), all_results as ( select 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, coalesce(bim.code, 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 ar.age is not null then ar.age when ar.resultuid <= rm.resultuid then ? else ? end as age, case when ar.relevant is not null then ar.relevant when ar.resultuid <= rm.resultuid then ? else ? end as relevant from ar inner join symbols s on ar.symbolid = s.symbolid and s.nonliquid = ? inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = s.symbolid inner join symbolgroup sg on bsl.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 sg.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left outer join autochartist_symbolupdates au on dss.symbolid = au.symbolid left outer join currencypips cp on s.symbol = cp.symbol left join lateral calc_cp_signal (ar.resultuid) newlevels on true left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where ar.gmttimefound > now() - interval ? and dss.enabled = ? and s.deleted = ? and (ar.simulation = ? or ar.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, 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 and ar.patternstarttime >= coalesce(au.earliestpricedatetime, ?::timestamp without time zone) -- to make sure patternstarttime is in our t-tables ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Aug 15 07 418 48m37s 6s979ms [ User: postgres - Total duration: 48m37s - Times executed: 418 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 45m52s - Times executed: 406 ]
[ Application: [unknown] - Total duration: 2m44s - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#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 ('500' = 0 OR ar.patternlengthbars <= '500') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:45 Duration: 22s44ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 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 coalesce(bim.code, 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 AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:24:47 Duration: 20s154ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_autochartist_results ORDER BY resultuid DESC LIMIT 1 ), ar AS ( SELECT a.*, rr.age, rr.relevant from autochartist_results a LEFT OUTER JOIN relevance_autochartist_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_autochartist_results) END ), all_results AS ( SELECT 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, coalesce(bim.code, 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 ar.age IS NOT NULL THEN ar.age WHEN ar.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN ar.relevant IS NOT NULL THEN ar.relevant WHEN ar.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant FROM ar INNER JOIN symbols s ON ar.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN brokersymbollist bsl ON bsl.brokerid = '529' AND bsl.symbolid = s.symbolid INNER JOIN symbolgroup sg on bsl.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 sg.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 autochartist_symbolupdates au on dss.symbolid = au.symbolid LEFT OUTER JOIN currencypips cp ON s.symbol = cp.symbol LEFT JOIN LATERAL calc_cp_signal (ar.resultuid) newLevels on true LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE ar.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (ar.simulation = 0 OR ar.simulation IS NULL) AND ('7' = 0 OR s.timegranularity in ('15', '30', '60', '120', '240', '480', '1440')) AND ('0' = 0 OR s.exchange in ('')) AND ('31' = 0 OR coalesce(bim.code, s.symbol) in ('AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURNZD', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'JPN225', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', 'XAGUSD', 'XAUUSD')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('0' = 0 OR ar.patternlengthbars <= '0') and newLevels.filtered = false AND ar.patternstarttime >= coalesce(au.earliestpricedatetime, '1900-01-01'::timestamp without time zone) -- To make sure patternstarttime is in our t-tables ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:31 Duration: 18s939ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
4 4s648ms 8s43ms 5s760ms 6 34s563ms 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 = ? ), ok_entries as ( select *, row_number() over (partition by datafeedname order by eventtimestamp desc) r from mt4datafeederrors where status = ? ), 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 = ?) oo on m.datafeedname = oo.datafeedname where m.eventtimestamp > coalesce(oo.eventtimestamp, ?::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 = ?) 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 = ? where (ok.r is null or ok.r = ?) and last.datafeedname not in ( select distinct datafeedname from last_feed_entry where status = ?) and extract(epoch from (last.eventtimestamp - after_ok.eventtimestamp)) > ? * ? and last.eventtimestamp > current_timestamp - interval ? and (note.eventtimestamp is null or note.eventtimestamp < current_timestamp - interval ?) and last.eventtimestamp > current_timestamp - interval ? and broker.r = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Aug 15 07 6 34s563ms 5s760ms [ User: postgres - Total duration: 34s563ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 34s563ms - 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: 2025-08-15 07:30:11 Duration: 8s43ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
-
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: 2025-08-15 07:00:10 Duration: 6s899ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
-
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: 2025-08-15 07:50:07 Duration: 5s70ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
5 2s699ms 4s575ms 2s990ms 8 23s927ms select updateresultsmaterializedview ();Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Aug 15 07 8 23s927ms 2s990ms [ User: postgres - Total duration: 23s927ms - Times executed: 8 ]
[ Application: psql - Total duration: 23s927ms - Times executed: 8 ]
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:20:37 Duration: 4s575ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:02:15 Duration: 2s928ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 07:47:16 Duration: 2s780ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
6 558ms 7s291ms 2s588ms 376 16m13s with rar_max as ( select resultuid from relevance_fibonacci_results order by resultuid desc limit ? ), fr as ( select a.*, rr.age, rr.relevant from fibonacci_results a left outer join relevance_fibonacci_results rr on a.resultuid = rr.resultuid where case when false = ? then true else a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) end ), all_results as ( select fr.resultuid as resultuid, fr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, coalesce(bim.code, s.symbol) as symbol_code, s.longname as symbol_name, s.timegranularity as interval, fr.pattern as pattern_name, fr.timed as timed, fr.patternendtime as identified, dtt.timezone as timezone, fr.patternlengthbars as length, g.basegroupname, newlevels.filtered, case when fr.age is not null then fr.age when fr.resultuid <= rm.resultuid then ? else ? end as age, case when fr.relevant is not null then fr.relevant when fr.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip from fr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = fr.symbolid inner join symbols s on fr.symbolid = s.symbolid and s.nonliquid = ? inner join symbolgroup sg on fr.symbolid = sg.symbolid inner join groups g on sg.groupid = g.groupid inner join brokergroups bg on g.groupid = bg.groupid and bsl.brokerid = bg.brokerid inner join downloadersymbolsettings dss on fr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join rar_max rm on ? = ? left join lateral calc_fib_signal_filter (fr.resultuid) newlevels on true left join currencypips cps on cps.symbol = s.symbol left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where fr.gmttimefound > now() - interval ? and dss.enabled = ? and s.deleted = ? and (fr.simulation = ? or fr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, s.symbol) in (...)) and (? = ? or fr.pattern in (...)) and (? = ? or fr.patternlengthbars <= ?) and (? = ? or (? = ? and fr.timed > cast(? as timestamp)) or (? = ? and fr.timed < cast(? as timestamp))) ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Aug 15 07 376 16m13s 2s588ms [ User: postgres - Total duration: 16m13s - Times executed: 376 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 15m15s - Times executed: 364 ]
[ Application: [unknown] - Total duration: 57s406ms - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1 ), fr AS ( SELECT a.*, rr.age, rr.relevant from fibonacci_results a LEFT OUTER JOIN relevance_fibonacci_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) END ), all_results AS ( SELECT fr.resultuid AS resultuid, fr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, fr.pattern AS pattern_name, fr.timed AS timed, fr.patternendtime AS identified, dtt.timezone AS timezone, fr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN fr.age IS NOT NULL THEN fr.age WHEN fr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN fr.relevant IS NOT NULL THEN fr.relevant WHEN fr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM fr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = fr.symbolid INNER JOIN symbols s ON fr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on fr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON fr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT JOIN LATERAL calc_fib_signal_filter (fr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE fr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (fr.simulation = 0 OR fr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('500' = 0 OR fr.patternlengthbars <= '500') AND ('0' = 0 OR ('0' = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ('0' = 2 AND fr.timed < cast('1970-01-01' as timestamp))) ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:52 Duration: 7s291ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1 ), fr AS ( SELECT a.*, rr.age, rr.relevant from fibonacci_results a LEFT OUTER JOIN relevance_fibonacci_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) END ), all_results AS ( SELECT fr.resultuid AS resultuid, fr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, fr.pattern AS pattern_name, fr.timed AS timed, fr.patternendtime AS identified, dtt.timezone AS timezone, fr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN fr.age IS NOT NULL THEN fr.age WHEN fr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN fr.relevant IS NOT NULL THEN fr.relevant WHEN fr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM fr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = fr.symbolid INNER JOIN symbols s ON fr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on fr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON fr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT JOIN LATERAL calc_fib_signal_filter (fr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE fr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (fr.simulation = 0 OR fr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('500' = 0 OR fr.patternlengthbars <= '500') AND ('0' = 0 OR ('0' = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ('0' = 2 AND fr.timed < cast('1970-01-01' as timestamp))) ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:27:47 Duration: 7s280ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_fibonacci_results ORDER BY resultuid DESC LIMIT 1 ), fr AS ( SELECT a.*, rr.age, rr.relevant from fibonacci_results a LEFT OUTER JOIN relevance_fibonacci_results rr on a.resultuid = rr.resultuid WHERE CASE WHEN FALSE = 't' THEN true ELSE a.resultuid > ( select min(resultuid) from relevance_fibonacci_results) END ), all_results AS ( SELECT fr.resultuid AS resultuid, fr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, fr.pattern AS pattern_name, fr.timed AS timed, fr.patternendtime AS identified, dtt.timezone AS timezone, fr.patternlengthbars AS length, g.basegroupname, newLevels.filtered, CASE WHEN fr.age IS NOT NULL THEN fr.age WHEN fr.resultuid <= rm.resultuid THEN 11 ELSE 0 END as age, CASE WHEN fr.relevant IS NOT NULL THEN fr.relevant WHEN fr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip FROM fr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = fr.symbolid INNER JOIN symbols s ON fr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN symbolgroup sg on fr.symbolid = sg.symbolid INNER JOIN groups g ON sg.groupid = g.groupid INNER JOIN brokergroups bg on g.groupid = bg.groupid AND bsl.brokerid = bg.brokerid INNER JOIN downloadersymbolsettings dss ON fr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN rar_max rm ON 1 = 1 LEFT JOIN LATERAL calc_fib_signal_filter (fr.resultuid) newLevels on true LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE fr.gmttimefound > now() - INTERVAL '7 DAYS' AND dss.enabled = 1 AND s.deleted = 0 AND (fr.simulation = 0 OR fr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('500' = 0 OR fr.patternlengthbars <= '500') AND ('0' = 0 OR ('0' = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ('0' = 2 AND fr.timed < cast('1970-01-01' as timestamp))) ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:44 Duration: 7s33ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
7 1s952ms 3s355ms 2s127ms 16 34s41ms 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;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Aug 15 07 16 34s41ms 2s127ms [ User: postgres - Total duration: 34s41ms - Times executed: 16 ]
[ Application: psql - Total duration: 34s41ms - Times executed: 16 ]
-
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: 2025-08-15 07:33:17 Duration: 3s355ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:31:16 Duration: 2s699ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:01:15 Duration: 2s101ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
8 1s362ms 2s187ms 1s677ms 12 20s127ms with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = ? left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bg.brokerid and bim.type = ? where bg.brokerid = ? and basegroupname = ? and g.designation = ? and s.nonliquid = ? ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = ? and cp.direction > ? and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = ? and cp.direction < ? and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval ?) as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= ? and patternquality >= ?.? and patternendtime >= current_timestamp - interval ? and patternlengthbars < ?) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval ?) as predictiontimefrom, predictionpricefrom, case when direction > ? then ? else ? end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (...) and patternendtime >= current_timestamp - interval ? and patternlengthbars < ?) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= ? and _tmp.qtycandlesapart <= ? and ((cpresultuid > ( select coalesce(max(cpresultuid), ?) from correlating_signals acs where acs.basegroupname = ? and acs.brokerid = ?)) or (klresultuid > ( select coalesce(max(klresultuid), ?) from correlating_signals acs where acs.basegroupname = ? and acs.brokerid = ?))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = ? and cs.basegroupname = ? and date_trunc(?, cs.gmttimefound) = date_trunc(?, now()) and sent is true and filtered is false ) <= ( select case when coalesce(daily_max, ?) < ? then ? else coalesce(daily_max,?) end from corr_sigs_config_v where broker_id = ? limit ? ) and extract(epoch from age(current_timestamp at time zone ?, max_patternendtime - absolutetimezoneoffset * interval ?))/? < mint*? ), maxstats as ( select max(statsid) as maxid , st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = ? then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * ? as numeric), ?) as percent, round(cast((kl_correct) / (kl_total) * ? as numeric), ?) as klpercent, round(cast((cp_correct ) / (cp_total ) * ? as numeric), ?) as cppercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), ?) as openprice, round(cast(sig.forecastprice as numeric), ?) as forecastprice, cast(round(cast(abs(sig.forecastprice - sig.openprice)/pip as numeric), ?)as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname , si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = ? then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = ? and date_part(?, sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = ? and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = ? and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = ? and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = ? and date_part(?, sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = ? and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = ? and kl_sym.name ilike si.symbol ) as tmp order by tmp.gmttimefound desc;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Aug 15 07 12 20s127ms 1s677ms [ User: postgres - Total duration: 20s127ms - Times executed: 12 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 20s127ms - Times executed: 12 ]
-
with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = 3 LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bg.brokerid AND bim.TYPE = 'OUTBOUND' where bg.brokerid = '627' and basegroupname = 'Forex' and g.designation = '(All Intraday)' and s.nonliquid = 0 ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= 0 and patternquality >= 0.3 and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, case when direction > 0 then 'Resistance' else 'Support' end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (1, 2) and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= 20 and _tmp.qtycandlesapart <= 5 and ((cpresultuid > ( SELECT COALESCE(MAX(cpresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '627')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '627'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '627' and cs.basegroupname = 'Forex' and date_trunc('day', cs.gmttimefound) = date_trunc('day', now()) and sent is true and filtered is false) <= ( select case when coalesce(daily_max, 5) < 1 then 1000 else coalesce(daily_max, 5) end from corr_sigs_config_v where broker_id = '627' limit 1) and extract(epoch from age(current_timestamp at TIME ZONE 'utc', max_patternendtime - absolutetimezoneoffset * INTERVAL '1 hour')) / 60 < mint * 3 ), maxstats as ( select MAX(statsid) as maxid, st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = 'exchange' then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * 100 as numeric), 2) as percent, round(cast((kl_correct) / (kl_total) * 100 as numeric), 2) as klPercent, round(cast((cp_correct) / (cp_total) * 100 as numeric), 2) as cpPercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), 5) as openprice, round(cast(sig.forecastprice as numeric), 5) as forecastprice, CAST(round(cast(abs(sig.forecastprice - sig.openprice) / pip as numeric), 0) as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname, si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = 'exchange' then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = 'hourofday' and date_part('hour', sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = 'interval' and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = 'pattern' and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = 'symbol' and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = 'hourofday' and date_part('hour', sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = 'interval' and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = 'symbol' and kl_sym.name ilike si.symbol) AS tmp order by tmp.gmttimefound desc;
Date: 2025-08-15 07:07:01 Duration: 2s187ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
-
with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = 3 LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bg.brokerid AND bim.TYPE = 'OUTBOUND' where bg.brokerid = '692' and basegroupname = 'Forex' and g.designation = '(All Intraday)' and s.nonliquid = 0 ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= 0 and patternquality >= 0.3 and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, case when direction > 0 then 'Resistance' else 'Support' end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (1, 2) and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= 20 and _tmp.qtycandlesapart <= 5 and ((cpresultuid > ( SELECT COALESCE(MAX(cpresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '692' and cs.basegroupname = 'Forex' and date_trunc('day', cs.gmttimefound) = date_trunc('day', now()) and sent is true and filtered is false) <= ( select case when coalesce(daily_max, 5) < 1 then 1000 else coalesce(daily_max, 5) end from corr_sigs_config_v where broker_id = '692' limit 1) and extract(epoch from age(current_timestamp at TIME ZONE 'utc', max_patternendtime - absolutetimezoneoffset * INTERVAL '1 hour')) / 60 < mint * 3 ), maxstats as ( select MAX(statsid) as maxid, st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = 'exchange' then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * 100 as numeric), 2) as percent, round(cast((kl_correct) / (kl_total) * 100 as numeric), 2) as klPercent, round(cast((cp_correct) / (cp_total) * 100 as numeric), 2) as cpPercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), 5) as openprice, round(cast(sig.forecastprice as numeric), 5) as forecastprice, CAST(round(cast(abs(sig.forecastprice - sig.openprice) / pip as numeric), 0) as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname, si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = 'exchange' then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = 'hourofday' and date_part('hour', sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = 'interval' and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = 'pattern' and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = 'symbol' and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = 'hourofday' and date_part('hour', sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = 'interval' and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = 'symbol' and kl_sym.name ilike si.symbol) AS tmp order by tmp.gmttimefound desc;
Date: 2025-08-15 07:37:01 Duration: 2s74ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
-
with sym_info as ( select s.symbol as og_symbol, s.symbolid, coalesce(bim.code, s.symbol) as symbol, s.timegranularity, s.exchange, s.longname as symbolname, g.basegroupname, bg.brokerid, dft.absolutetimezoneoffset from symbols s inner join symbolgroup sg on sg.symbolid = s.symbolid inner join brokergroups bg on bg.groupid = sg.groupid inner join groups g on g.groupid = bg.groupid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid inner join datafeedstimetable dft on dft.classname = dss.classname and dft.dayofweek = 3 LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bg.brokerid AND bim.TYPE = 'OUTBOUND' where bg.brokerid = '692' and basegroupname = 'Forex' and g.designation = '(All Intraday)' and s.nonliquid = 0 ), signals as ( select * from ( select cp.og_symbol, cp.resultuid as cpresultuid, kl.resultuid as klresultuid, cp.symbolid as cpsymbolid, kl.symbolid as klsymbolid, cp.symbol, cp.timegranularity as cpt, kl.timegranularity as klt, cp.direction, cp.patternname as cppatternname, kl.patternname as klpatternname, case when cp.timegranularity < kl.timegranularity then cp.timegranularity else kl.timegranularity end as mint, case when cp.timegranularity < kl.timegranularity then cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / cp.timegranularity) as numeric) else cast(abs(extract(epoch from age(cp.predictiontimefrom, kl.predictiontimefrom)) / kl.timegranularity) as numeric) end as qtycandlesapart, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.openprice else cp.openprice end as openprice, case when cp.predictiontimefrom < kl.predictiontimefrom then kl.predictiontimefrom else cp.predictiontimefrom end as predictiontimefrom, case when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom < kl.predictionpricefrom then cp.predictionpricefrom when kl.patternclassid = 1 AND cp.direction > 0 and cp.predictionpricefrom > kl.predictionpricefrom then kl.predictionpricefrom when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto < kl.predictionpriceto then kl.predictionpriceto when kl.patternclassid = 1 AND cp.direction < 0 and cp.predictionpriceto > kl.predictionpriceto then cp.predictionpriceto when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom < kl.patternprice then cp.predictionpricefrom when kl.patternclassid = 2 AND cp.direction > 0 and cp.predictionpricefrom > kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto < kl.patternprice then kl.patternprice when kl.patternclassid = 2 AND cp.direction < 0 and cp.predictionpriceto > kl.patternprice then cp.predictionpriceto end as forecastprice, case when cp.gmttimefound < kl.gmttimefound then kl.gmttimefound else cp.gmttimefound end as gmttimefound, cp.patternendtime as cppet, kl.patternendtime as klpet, case when cp.patternendtime < kl.patternendtime then kl.patternendtime else cp.patternendtime end as max_patternendtime, cp.absolutetimezoneoffset from ( select si.og_symbol, si.symbolid, si.symbol, si.timegranularity, a.resultuid, direction, (patternendtime + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, a.pattern as patternname, predictionpriceto, a.latestbaratbreakoutprice as openprice, gmttimefound, si.brokerid, a.patternendtime, si.absolutetimezoneoffset from sym_info si inner join autochartist_results a on si.symbolid = a.symbolid where breakout >= 0 and patternquality >= 0.3 and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as cp join ( select patternclassid, patternprice, si.symbolid, si.symbol, si.timegranularity, h.resultuid, direction, (cast(atbaridentified as timestamp) + si.timegranularity * interval '1 minute') as predictiontimefrom, predictionpricefrom, case when direction > 0 then 'Resistance' else 'Support' end as patternname, predictionpriceto, atpriceidentified as openprice, gmttimefound, h.patternendtime from sym_info si inner join keylevels_results h on si.symbolid = h.symbolid where patternclassid in (1, 2) and patternendtime >= current_timestamp - interval '7 days' and patternlengthbars < 501) as kl on cp.symbol = kl.symbol and cp.direction = kl.direction) as _tmp inner join currencypips pips on _tmp.og_symbol = pips.symbol where abs(forecastprice - openprice) / pip >= 20 and _tmp.qtycandlesapart <= 5 and ((cpresultuid > ( SELECT COALESCE(MAX(cpresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '692'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '692' and cs.basegroupname = 'Forex' and date_trunc('day', cs.gmttimefound) = date_trunc('day', now()) and sent is true and filtered is false) <= ( select case when coalesce(daily_max, 5) < 1 then 1000 else coalesce(daily_max, 5) end from corr_sigs_config_v where broker_id = '692' limit 1) and extract(epoch from age(current_timestamp at TIME ZONE 'utc', max_patternendtime - absolutetimezoneoffset * INTERVAL '1 hour')) / 60 < mint * 3 ), maxstats as ( select MAX(statsid) as maxid, st.brokerid, st.groupingname, st.groupingtype from stats st inner join sym_info si on st.brokerid = si.brokerid and case when st.groupingtype = 'exchange' then st.groupingname ilike si.exchange else st.groupingname ilike si.basegroupname end group by st.groupingname, st.brokerid, st.groupingtype ) select *, round(cast((cp_correct + kl_correct) / (cp_total + kl_total) * 100 as numeric), 2) as percent, round(cast((kl_correct) / (kl_total) * 100 as numeric), 2) as klPercent, round(cast((cp_correct) / (cp_total) * 100 as numeric), 2) as cpPercent from ( select sig.cpresultuid, sig.klresultuid, sig.cpsymbolid, si.symbol, sig.cpt, sig.klt, sig.direction, sig.cppatternname, sig.klpatternname, round(cast(sig.openprice as numeric), 5) as openprice, round(cast(sig.forecastprice as numeric), 5) as forecastprice, CAST(round(cast(abs(sig.forecastprice - sig.openprice) / pip as numeric), 0) as int) as forecastpips, sig.predictiontimefrom, sig.gmttimefound, si.brokerid, ms.groupingname, si.basegroupname, si.symbolname, cast(cp_sym.correct + cp_patt.correct + cp_interval.correct + cp_hod.correct as float) as cp_correct, cast(cp_hod.total + cp_sym.total + cp_patt.total + cp_interval.total as float) as cp_total, cast(kl_sym.correct + kl_interval.correct + kl_hod.correct as float) as kl_correct, cast(kl_hod.total + kl_sym.total + kl_interval.total as float) as kl_total from signals sig inner join sym_info si on sig.cpsymbolid = si.symbolid inner join maxstats ms on case when ms.groupingtype = 'exchange' then ms.groupingname ilike si.exchange else ms.groupingname ilike si.basegroupname end -- cp stats inner join stats_summary cp_hod on cp_hod.statsid = ms.maxid and cp_hod.category = 'hourofday' and date_part('hour', sig.cppet) = cast(cp_hod.name as int) inner join stats_summary cp_interval on cp_interval.statsid = ms.maxid and cp_interval.category = 'interval' and sig.cpt = cast(cp_interval.name as int) inner join stats_summary cp_patt on cp_patt.statsid = ms.maxid and cp_patt.category = 'pattern' and cp_patt.name ilike sig.cppatternname inner join stats_summary cp_sym on cp_sym.statsid = ms.maxid and cp_sym.category = 'symbol' and cp_sym.name ilike si.symbol -- kl stats inner join stats_hrs_summary kl_hod on kl_hod.statsid = ms.maxid and kl_hod.category = 'hourofday' and date_part('hour', sig.klpet) = cast(kl_hod.name as int) inner join stats_hrs_summary kl_interval on kl_interval.statsid = ms.maxid and kl_interval.category = 'interval' and sig.klt = cast(kl_interval.name as int) inner join stats_hrs_summary kl_sym on kl_sym.statsid = ms.maxid and kl_sym.category = 'symbol' and kl_sym.name ilike si.symbol) AS tmp order by tmp.gmttimefound desc;
Date: 2025-08-15 07:07:07 Duration: 1s868ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
9 1s260ms 2s32ms 1s375ms 16 22s 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;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 15 07 16 22s 1s375ms [ User: postgres - Total duration: 22s - Times executed: 16 ]
[ Application: psql - Total duration: 22s - Times executed: 16 ]
-
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: 2025-08-15 07:33:14 Duration: 2s32ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:03:13 Duration: 1s683ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
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: 2025-08-15 07:31:13 Duration: 1s426ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
10 19ms 14s317ms 1s363ms 34 46s346ms select fixcandlegaps (?, false);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Aug 15 07 34 46s346ms 1s363ms [ User: postgres - Total duration: 46s346ms - Times executed: 34 ]
[ Application: psql - Total duration: 46s346ms - Times executed: 34 ]
-
select fixcandlegaps ('ICMARKETS-AU-MT5', false);
Date: 2025-08-15 07:06:48 Duration: 14s317ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('ATFX', false);
Date: 2025-08-15 07:06:16 Duration: 6s940ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('AXIORY', false);
Date: 2025-08-15 07:06:21 Duration: 5s38ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
11 1s26ms 1s358ms 1s113ms 6 6s683ms refresh materialized view concurrently latest_t15_candle_view;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Aug 15 07 6 6s683ms 1s113ms [ User: postgres - Total duration: 6s683ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 6s683ms - Times executed: 6 ]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 07:31:17 Duration: 1s358ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 07:01:18 Duration: 1s141ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 07:46:17 Duration: 1s75ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
12 54ms 3s676ms 572ms 13 7s444ms copy ( select array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ?) as broker_ids, string_to_array(coalesce(replace(broker_symbol_mappings, ?, ?), ?), ?) as broker_symbol_mappings, replace(exchange, ?, ?) as exchange, symbol_id, replace(symbol, ?, ?) as symbol, replace(short_name, ?, ?) as short_name, replace(long_name, ?, ?) as long_name, interval, replace(timezone, ?, ?) as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ?) as search_groups, string_to_array(pattern_basegroupnames, ?) as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results (?::character varying, current_timestamp::timestamp without time zone)) t) to ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Aug 15 07 13 7s444ms 572ms [ User: postgres - Total duration: 7s444ms - Times executed: 13 ]
[ Application: psql - Total duration: 7s444ms - Times executed: 13 ]
-
COPY ( select /*_solr_fetch_results__*/ array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ',') as broker_ids, string_to_array(COALESCE(replace(broker_symbol_mappings, '"', ''), ''), ',') as broker_symbol_mappings, replace(exchange, '"', '') as exchange,symbol_id,replace(symbol,'"','') as symbol, replace(short_name, '"', '') as short_name,replace(long_name,'"','') as long_name, interval, replace(timezone, '"', '') as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ',') as search_groups, string_to_array(pattern_basegroupnames, ',') as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results ('Autochartist'::character varying, current_timestamp::timestamp without time zone)) t) TO '/tmp/solr_inserts_acaweb_fx.json';
Date: 2025-08-15 07:03:06 Duration: 3s676ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: psql
-
COPY ( select /*_solr_fetch_results__*/ array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ',') as broker_ids, string_to_array(COALESCE(replace(broker_symbol_mappings, '"', ''), ''), ',') as broker_symbol_mappings, replace(exchange, '"', '') as exchange,symbol_id,replace(symbol,'"','') as symbol, replace(short_name, '"', '') as short_name,replace(long_name,'"','') as long_name, interval, replace(timezone, '"', '') as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ',') as search_groups, string_to_array(pattern_basegroupnames, ',') as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results ('Autochartist'::character varying, current_timestamp::timestamp without time zone)) t) TO '/tmp/solr_inserts_acaweb_fx.json';
Date: 2025-08-15 07:48:03 Duration: 1s350ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: psql
-
COPY ( select /*_solr_fetch_results__*/ array_to_json(array_agg(row_to_json(t, false))) from ( select distinct pattern_type, uuid, string_to_array(broker_ids, ',') as broker_ids, string_to_array(COALESCE(replace(broker_symbol_mappings, '"', ''), ''), ',') as broker_symbol_mappings, replace(exchange, '"', '') as exchange,symbol_id,replace(symbol,'"','') as symbol, replace(short_name, '"', '') as short_name,replace(long_name,'"','') as long_name, interval, replace(timezone, '"', '') as timezone, timezoneoffset, pattern_gmt_timefound, result_uid, old_result_uid, pattern_id, direction, pattern_name, downloader_symbol, pattern_category, pattern_end_time, pattern_start_time, pattern_length, age, relevance, prediction_time_from, prediction_time_to, prediction_price_from, prediction_price_to, pattern_quality, pattern_start_price, pattern_end_price, breakout, pattern_cp_resx0, pattern_cp_resx1, pattern_cp_resy0, pattern_cp_resy1, pattern_cp_supportx0, pattern_cp_supportx1, pattern_cp_supporty0, pattern_cp_supporty1, pattern_cp_trend_change, pattern_cp_volume_increase, pattern_cp_uniformity, pattern_cp_initial_trend, pattern_clarity, pattern_fp_average_quality, pattern_fp_pricea, pattern_fp_priceb, pattern_fp_pricec, pattern_fp_pricex, pattern_fp_priced, pattern_fp_ratiosfound, pattern_fp_target_03, pattern_fp_target_05, pattern_fp_target_06, pattern_fp_target_07, pattern_fp_target_10, pattern_fp_target_12, pattern_fp_target_16, pattern_fp_timea, pattern_fp_timeb, pattern_fp_timec, pattern_fp_timed, pattern_fp_timequality, pattern_fp_timex, pattern_fp_ratioquality, pattern_kl_errormargin as pattern_kl_error_margin, pattern_kl_breakoutprice as pattern_kl_breakout_price, pattern_kl_breakoutbars as pattern_kl_breakout_bars, pattern_kl_stoplosslevel as pattern_kl_stoploss_level, pattern_kl_approaching_time as pattern_kl_approaching_time, pattern_kl_approachingregion as pattern_kl_approaching_region, pattern_kl_predictiontimebars as pattern_kl_prediction_time_bars, pattern_kl_x0 as pattern_kl_point_x0, pattern_kl_x1 as pattern_kl_point_x1, pattern_kl_x2 as pattern_kl_point_x2, pattern_kl_x3 as pattern_kl_point_x3, pattern_kl_x4 as pattern_kl_point_x4, pattern_kl_x5 as pattern_kl_point_x5, pattern_kl_x6 as pattern_kl_point_x6, pattern_kl_x7 as pattern_kl_point_x7, pattern_kl_x8 as pattern_kl_point_x8, pattern_kl_x9 as pattern_kl_point_x9, pattern_jc_initial_trend_strength, stats_hod_correct, stats_hod_percent, stats_hod_total, stats_pattern_hourofday, stats_pattern_name_correct, stats_pattern_name_percent, stats_pattern_name_total, stats_percent, stats_symbol_correct, stats_symbol_percent, stats_symbol_total, ig_derivativeid, ig_fullname, ig_isunderlying, ig_premium, ig_underlyingid, ig_epic, ig_id, pattern_bm_statistical_movement, pattern_bm_movement, pattern_bm_movement_percentile, pattern_cc_qty_consecutive_candles, pattern_cc_statistical_qty_candles, pattern_cc_consecutice_candles_percentile, pattern_st_to_price, pattern_st_from_price, string_to_array(pattern_groupnames_per_broker, ',') as search_groups, string_to_array(pattern_basegroupnames, ',') as base_groups, simulation, signal_levels_entry_level, signal_levels_stop_level, signal_levels_target_level, signal_levels_target_period, signal_levels_filtered from solr_fetch_results ('Autochartist'::character varying, current_timestamp::timestamp without time zone)) t) TO '/tmp/solr_inserts_acaweb_fx.json';
Date: 2025-08-15 07:33:03 Duration: 680ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: psql
13 89ms 881ms 324ms 150 48s604ms with last_candle as ( select acs.symbolid as symbolid, acs.latestpricedatetime as latest_candle_time, bsl.brokerid as broker_id, coalesce(bim.code, s.symbol) as symbol, bim.code as symbol_mapping, s.exchange as exchange, s.timegranularity as timegranularity from autochartist_symbolupdates acs inner join brokersymbollist bsl on acs.symbolid = bsl.symbolid inner join symbols s on acs.symbolid = s.symbolid inner join downloadersymbolsettings dss on s.symbolid = dss.symbolid left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? where bsl.brokerid = ? and s.deleted = ? and s.nonliquid = ? and acs.latestpricedatetime is not null ) select * from ( select lc.broker_id as brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / ?) + ? as sast_hh, mod(cast(psp.fromtime as int), ?) as sast_mm, current_timestamp as datetime, (powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice as closingprice, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / ?.?) as low_15, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / ?.?) as high_15, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / ?.?) as low_30, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / ?.?) as high_30, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / ?.?) as low_60, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / ?.?) as high_60, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / ?.?) as low_240, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / ?.?) as high_240, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / ?.?) as low_1440, ((powerstatslatestprfprice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / ?.?) as high_1440, dtt.absolutetimezoneoffset as datafeedtimezoneoffset, dtt.timezone as datafeedtimezonename, (round((cast(? as float) - rank) / ? * ?)) as rank_rounded, ((cast(? as float) - rank) / ? * ?) as rank from last_candle lc inner join downloadersymbolsettings dss on lc.symbolid = dss.symbolid inner join datafeedstimetable dtt on trim(dss.classname) = trim(dtt.classname) and dtt.dayofweek = ? -- assuming timezone is same for whole week. inner join powerstats_symboldata psd on psd.symbolid = lc.symbolid left outer join powerstats_trumpet psp on psd.trumpetsymbolid = psp.symbolid and psp.dayofweek = extract(dow from lc.latest_candle_time) and psp.fromtime = cast(extract(? from lc.latest_candle_time) as integer) * ? + extract(? from (cast(extract(? from lc.latest_candle_time) as integer) / ?) * ? * interval ?) inner join prfsymboltree prf on psd.symbolid = prf.symbolid and date_trunc(?, prf.enddate) = date_trunc(?, psp.enddate) left join lateral ( select ph.hour, (ave + stddev) as volatility, rank() over (order by (ave + stddev) desc) as rank from powerstats_hourly ph where ph.symbolid = psd.hourlysymbolid and date_trunc(?,ph.enddate) = date_trunc(?, prf.enddate) ) rank_query on true where prf.brokerid = ? and rank_query.hour = floor((psp.fromtime) / ?) and volatility > ? order by rank desc, rank_rounded desc, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Aug 15 07 150 48s604ms 324ms [ User: postgres - Total duration: 48s604ms - Times executed: 150 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 48s604ms - Times executed: 150 ]
-
WITH last_candle AS ( SELECT acs.symbolid AS symbolid, acs.latestpricedatetime AS latest_candle_time, bsl.brokerid AS broker_id, coalesce(bim.code, s.symbol) AS symbol, bim.code AS symbol_mapping, s.exchange AS exchange, s.timegranularity AS timegranularity FROM autochartist_symbolupdates acs INNER JOIN brokersymbollist bsl ON acs.symbolid = bsl.symbolid INNER JOIN symbols s ON acs.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE bsl.brokerid = '529' AND s.deleted = 0 AND s.nonliquid = 0 AND acs.latestpricedatetime IS NOT NULL ) SELECT * FROM ( SELECT lc.broker_id AS brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / 60) + 6 as SAST_HH, mod(cast(psp.fromtime as int), 60) as SAST_MM, current_timestamp AS datetime, (PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice AS closingprice, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / 2.0) AS low_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / 2.0) AS high_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / 2.0) AS low_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / 2.0) AS high_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / 2.0) AS low_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / 2.0) AS high_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / 2.0) AS low_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / 2.0) AS high_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / 2.0) AS low_1440, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / 2.0) AS high_1440, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, (round((cast(25 as float) - rank) / 24 * 10)) as rank_rounded, ((cast(25 as float) - rank) / 24 * 10) as rank FROM last_candle lc INNER JOIN downloadersymbolsettings dss ON lc.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON TRIM(dss.classname) = TRIM(dtt.classname) and dtt.dayofweek = 3 -- assuming timezone is same for whole week. INNER JOIN powerstats_symboldata psd ON psd.symbolid = lc.symbolid LEFT OUTER JOIN powerstats_trumpet psp ON psd.trumpetsymbolid = psp.symbolid AND psp.dayofweek = extract(dow from lc.latest_candle_time) AND psp.fromtime = cast(extract('hour' from lc.latest_candle_time) as integer) * 60 + extract('minute' from (cast(extract('minute' from lc.latest_candle_time) as integer) / 15) * 15 * interval '1 minutes') INNER JOIN prfsymboltree prf ON psd.symbolid = prf.symbolid and DATE_TRUNC('day', prf.enddate) = DATE_TRUNC('day', psp.enddate) LEFT JOIN LATERAL ( SELECT ph.hour, (ave + stddev) AS volatility, rank() over (ORDER BY (ave + stddev) DESC) AS rank FROM powerstats_hourly ph WHERE ph.symbolid = psd.hourlysymbolid AND DATE_TRUNC('day', ph.enddate) = DATE_TRUNC('day', prf.enddate)) rank_query ON true WHERE prf.brokerid = '529' AND rank_query.hour = floor((psp.fromtime) / 60) AND volatility > 0 ORDER BY rank DESC, rank_rounded DESC, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;
Date: 2025-08-15 07:48:13 Duration: 881ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH last_candle AS ( SELECT acs.symbolid AS symbolid, acs.latestpricedatetime AS latest_candle_time, bsl.brokerid AS broker_id, coalesce(bim.code, s.symbol) AS symbol, bim.code AS symbol_mapping, s.exchange AS exchange, s.timegranularity AS timegranularity FROM autochartist_symbolupdates acs INNER JOIN brokersymbollist bsl ON acs.symbolid = bsl.symbolid INNER JOIN symbols s ON acs.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE bsl.brokerid = '529' AND s.deleted = 0 AND s.nonliquid = 0 AND acs.latestpricedatetime IS NOT NULL ) SELECT * FROM ( SELECT lc.broker_id AS brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / 60) + 6 as SAST_HH, mod(cast(psp.fromtime as int), 60) as SAST_MM, current_timestamp AS datetime, (PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice AS closingprice, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / 2.0) AS low_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / 2.0) AS high_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / 2.0) AS low_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / 2.0) AS high_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / 2.0) AS low_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / 2.0) AS high_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / 2.0) AS low_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / 2.0) AS high_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / 2.0) AS low_1440, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / 2.0) AS high_1440, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, (round((cast(25 as float) - rank) / 24 * 10)) as rank_rounded, ((cast(25 as float) - rank) / 24 * 10) as rank FROM last_candle lc INNER JOIN downloadersymbolsettings dss ON lc.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON TRIM(dss.classname) = TRIM(dtt.classname) and dtt.dayofweek = 3 -- assuming timezone is same for whole week. INNER JOIN powerstats_symboldata psd ON psd.symbolid = lc.symbolid LEFT OUTER JOIN powerstats_trumpet psp ON psd.trumpetsymbolid = psp.symbolid AND psp.dayofweek = extract(dow from lc.latest_candle_time) AND psp.fromtime = cast(extract('hour' from lc.latest_candle_time) as integer) * 60 + extract('minute' from (cast(extract('minute' from lc.latest_candle_time) as integer) / 15) * 15 * interval '1 minutes') INNER JOIN prfsymboltree prf ON psd.symbolid = prf.symbolid and DATE_TRUNC('day', prf.enddate) = DATE_TRUNC('day', psp.enddate) LEFT JOIN LATERAL ( SELECT ph.hour, (ave + stddev) AS volatility, rank() over (ORDER BY (ave + stddev) DESC) AS rank FROM powerstats_hourly ph WHERE ph.symbolid = psd.hourlysymbolid AND DATE_TRUNC('day', ph.enddate) = DATE_TRUNC('day', prf.enddate)) rank_query ON true WHERE prf.brokerid = '529' AND rank_query.hour = floor((psp.fromtime) / 60) AND volatility > 0 ORDER BY rank DESC, rank_rounded DESC, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;
Date: 2025-08-15 07:48:13 Duration: 880ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH last_candle AS ( SELECT acs.symbolid AS symbolid, acs.latestpricedatetime AS latest_candle_time, bsl.brokerid AS broker_id, coalesce(bim.code, s.symbol) AS symbol, bim.code AS symbol_mapping, s.exchange AS exchange, s.timegranularity AS timegranularity FROM autochartist_symbolupdates acs INNER JOIN brokersymbollist bsl ON acs.symbolid = bsl.symbolid INNER JOIN symbols s ON acs.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss ON s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' WHERE bsl.brokerid = '529' AND s.deleted = 0 AND s.nonliquid = 0 AND acs.latestpricedatetime IS NOT NULL ) SELECT * FROM ( SELECT lc.broker_id AS brokerid, prf.groupid, psp.symbolid, prf.longname, psd.hourlysymbolid, lc.symbol, lc.exchange, psp.enddate, psp.dayofweek, psp.fromtime, floor(psp.fromtime / 60) + 6 as SAST_HH, mod(cast(psp.fromtime as int), 60) as SAST_MM, current_timestamp AS datetime, (PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice AS closingprice, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_15 + psp.stddev_15) / 2.0) AS low_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_15 + psp.stddev_15) / 2.0) AS high_15, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_30 + psp.stddev_30) / 2.0) AS low_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_30 + psp.stddev_30) / 2.0) AS high_30, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_60 + psp.stddev_60) / 2.0) AS low_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_60 + psp.stddev_60) / 2.0) AS high_60, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_240 + psp.stddev_240) / 2.0) AS low_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_240 + psp.stddev_240) / 2.0) AS high_240, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice - (psp.ave_1440 + psp.stddev_1440) / 2.0) AS low_1440, ((PowerStatsLatestPRFPrice (cast(psp.symbolid as bigint), psd.trumpettimegranularity)).closingprice + (psp.ave_1440 + psp.stddev_1440) / 2.0) AS high_1440, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, (round((cast(25 as float) - rank) / 24 * 10)) as rank_rounded, ((cast(25 as float) - rank) / 24 * 10) as rank FROM last_candle lc INNER JOIN downloadersymbolsettings dss ON lc.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON TRIM(dss.classname) = TRIM(dtt.classname) and dtt.dayofweek = 3 -- assuming timezone is same for whole week. INNER JOIN powerstats_symboldata psd ON psd.symbolid = lc.symbolid LEFT OUTER JOIN powerstats_trumpet psp ON psd.trumpetsymbolid = psp.symbolid AND psp.dayofweek = extract(dow from lc.latest_candle_time) AND psp.fromtime = cast(extract('hour' from lc.latest_candle_time) as integer) * 60 + extract('minute' from (cast(extract('minute' from lc.latest_candle_time) as integer) / 15) * 15 * interval '1 minutes') INNER JOIN prfsymboltree prf ON psd.symbolid = prf.symbolid and DATE_TRUNC('day', prf.enddate) = DATE_TRUNC('day', psp.enddate) LEFT JOIN LATERAL ( SELECT ph.hour, (ave + stddev) AS volatility, rank() over (ORDER BY (ave + stddev) DESC) AS rank FROM powerstats_hourly ph WHERE ph.symbolid = psd.hourlysymbolid AND DATE_TRUNC('day', ph.enddate) = DATE_TRUNC('day', prf.enddate)) rank_query ON true WHERE prf.brokerid = '529' AND rank_query.hour = floor((psp.fromtime) / 60) AND volatility > 0 ORDER BY rank DESC, rank_rounded DESC, exchange, symbol, groupid) sub order by brokerid, groupid, symbolid;
Date: 2025-08-15 07:52:08 Duration: 837ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
14 84ms 900ms 303ms 241 1m13s with rar_max as ( select resultuid from relevance_consecutivecandles_results order by resultuid desc limit ? ), all_results as ( select ccr.resultuid as resultuid, ccr.direction as direction, s.exchange as exchange, s.symbolid as symbolid, coalesce(bim.code, s.symbol) as symbol_code, s.longname as symbol_name, s.timegranularity as interval, ccr.patternendtime as identified, dtt.timezone as timezone, ccr.qtyconsecutivecandles as length, g.basegroupname, case when rcr.age is not null then rcr.age when ccr.resultuid <= rm.resultuid then ? else ? end as age, case when rcr.relevant is not null then rcr.relevant when ccr.resultuid <= rm.resultuid then ? else ? end as relevant, cps.pip, newlevels.filtered from consecutivecandles_results ccr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = ccr.symbolid inner join symbols s on ccr.symbolid = s.symbolid and s.nonliquid = ? inner join downloadersymbolsettings dss on ccr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join symbolgroup sg on ccr.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 rar_max rm on ? = ? left outer join relevance_consecutivecandles_results rcr on rcr.resultuid = ccr.resultuid left join currencypips cps on cps.symbol = s.symbol left outer join brokerinstrumentmap bim on dss.datafeedinstrumentid = bim.datafeedinstrumentid and bim.brokerid = bsl.brokerid and bim.type = ? left join lateral calc_cc_signal_filter (ccr.resultuid) newlevels on true where ccr.gmttimefound > now() - interval ? and s.deleted = ? and (ccr.simulation = ? or ccr.simulation is null) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, s.symbol) in (...)) and (? = ? or ccr.patternlengthbars <= ?) ), results as ( select distinct on (symbolid) * from all_results where (false = ? or relevant = ?) and (? = ? or age <= ?) order by symbolid, resultuid ) select * from results order by identified desc, length desc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Aug 15 07 241 1m13s 303ms [ User: postgres - Total duration: 1m13s - Times executed: 241 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m7s - Times executed: 229 ]
[ Application: [unknown] - Total duration: 5s925ms - Times executed: 12 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_consecutivecandles_results ORDER BY resultuid DESC LIMIT 1 ), all_results AS ( SELECT ccr.resultuid AS resultuid, ccr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ccr.patternendtime AS identified, dtt.timezone AS timezone, ccr.qtyconsecutivecandles AS length, g.basegroupname, CASE WHEN rcr.age IS NOT NULL THEN rcr.age WHEN ccr.resultuid <= rm.resultuid THEN 1 ELSE 0 END as age, CASE WHEN rcr.relevant IS NOT NULL THEN rcr.relevant WHEN ccr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip, newLevels.filtered FROM consecutivecandles_results ccr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = ccr.symbolid INNER JOIN symbols s ON ccr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN downloadersymbolsettings dss ON ccr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN symbolgroup sg on ccr.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 rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_consecutivecandles_results rcr ON rcr.resultuid = ccr.resultuid LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' LEFT JOIN LATERAL calc_cc_signal_filter (ccr.resultuid) newLevels on true WHERE ccr.gmttimefound > now() - INTERVAL '7 DAYS' AND s.deleted = 0 AND (ccr.simulation = 0 OR ccr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('500' = 0 OR ccr.patternlengthbars <= '500') ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:59:59 Duration: 900ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_consecutivecandles_results ORDER BY resultuid DESC LIMIT 1 ), all_results AS ( SELECT ccr.resultuid AS resultuid, ccr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ccr.patternendtime AS identified, dtt.timezone AS timezone, ccr.qtyconsecutivecandles AS length, g.basegroupname, CASE WHEN rcr.age IS NOT NULL THEN rcr.age WHEN ccr.resultuid <= rm.resultuid THEN 1 ELSE 0 END as age, CASE WHEN rcr.relevant IS NOT NULL THEN rcr.relevant WHEN ccr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip, newLevels.filtered FROM consecutivecandles_results ccr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '627' AND bsl.symbolid = ccr.symbolid INNER JOIN symbols s ON ccr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN downloadersymbolsettings dss ON ccr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN symbolgroup sg on ccr.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 rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_consecutivecandles_results rcr ON rcr.resultuid = ccr.resultuid LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' LEFT JOIN LATERAL calc_cc_signal_filter (ccr.resultuid) newLevels on true WHERE ccr.gmttimefound > now() - INTERVAL '7 DAYS' AND s.deleted = 0 AND (ccr.simulation = 0 OR ccr.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 ('213' = 0 OR coalesce(bim.code, s.symbol) in ('#ADBE', '#ALVG', '#AMZN', '#APPL', '#BA', '#BABA', '#BAYGn', '#BMWG', '#BNPP', '#CAT', '#CBKG', '#DAIGn', '#DIS', '#EA', '#FB', '#FDX', '#GE', '#GM', '#GOOGL', '#GS', '#INTC', '#JPM', '#KO', '#META', '#MSFT', '#NFLX', '#TSLA', '#VOWG', '#WMT', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS_200', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CL_BRENT', 'DASHUSD', 'EOSUSD', 'ESP_35', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'EUR_50', 'FRA_40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'GBR_100', 'HKDJPY', 'HKG_50', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NAS100', 'NEOUSD', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'OMGUSD', 'SPX500', 'TRXUSD', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'USOIL', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XMRUSD', 'XPTUSD', 'XRPUSD', 'ZARJPY', 'ZECUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURJPY', 'EURMXN', 'EURNOK', 'EURNZD', 'EURPLN', 'EURSEK', 'EURTRY', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GBPZAR', 'HKDJPY', 'NOKJPY', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDDKK', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDZAR', 'ZARJPY', 'BTCEUR', 'BTCGBP', 'BTCUSD', 'DASHUSD', 'EOSUSD', 'ETHEUR', 'ETHGBP', 'ETHUSD', 'IOTAUSD', 'LTCEUR', 'LTCUSD', 'NEOUSD', 'OMGUSD', 'TRXUSD', 'XMRUSD', 'XRPUSD', 'ZECUSD', 'XAGUSD', 'XAUEUR', 'XAUUSD', 'XPTUSD', 'CL_BRENT', 'USOIL', '#ALVG', '#BAYGn', '#BMWG', '#BNPP', '#CBKG', '#DAIGn', '#VOWG', 'AUS_200', 'ESP_35', 'EUR_50', 'FRA_40', 'GBR_100', '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', '#WMT', '#XOM')) AND ('500' = 0 OR ccr.patternlengthbars <= '500') ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:06:23 Duration: 887ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
WITH rar_max as ( SELECT resultuid FROM relevance_consecutivecandles_results ORDER BY resultuid DESC LIMIT 1 ), all_results AS ( SELECT ccr.resultuid AS resultuid, ccr.direction AS direction, s.exchange AS exchange, s.symbolid AS symbolid, coalesce(bim.code, s.symbol) AS symbol_code, s.longname AS symbol_name, s.timegranularity AS interval, ccr.patternendtime AS identified, dtt.timezone AS timezone, ccr.qtyconsecutivecandles AS length, g.basegroupname, CASE WHEN rcr.age IS NOT NULL THEN rcr.age WHEN ccr.resultuid <= rm.resultuid THEN 1 ELSE 0 END as age, CASE WHEN rcr.relevant IS NOT NULL THEN rcr.relevant WHEN ccr.resultuid <= rm.resultuid THEN 0 ELSE 1 END as relevant, cps.pip, newLevels.filtered FROM consecutivecandles_results ccr INNER JOIN brokersymbollist bsl ON bsl.brokerid = '689' AND bsl.symbolid = ccr.symbolid INNER JOIN symbols s ON ccr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN downloadersymbolsettings dss ON ccr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN symbolgroup sg on ccr.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 rar_max rm ON 1 = 1 LEFT OUTER JOIN relevance_consecutivecandles_results rcr ON rcr.resultuid = ccr.resultuid LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = bsl.brokerid AND bim.TYPE = 'OUTBOUND' LEFT JOIN LATERAL calc_cc_signal_filter (ccr.resultuid) newLevels on true WHERE ccr.gmttimefound > now() - INTERVAL '7 DAYS' AND s.deleted = 0 AND (ccr.simulation = 0 OR ccr.simulation IS NULL) AND ('0' = 0 OR s.timegranularity in ('0')) AND ('0' = 0 OR s.exchange in ('')) AND ('0' = 0 OR coalesce(bim.code, s.symbol) in ('')) AND ('0' = 0 OR ccr.patternlengthbars <= '0') ), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = 't' OR relevant = 1) AND ('0' = 0 OR age <= '0') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 07:56:37 Duration: 853ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
15 16ms 171ms 74ms 172 12s788ms select distinct k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid from relevance_keylevels_results p inner join keylevels_results k on p.resultuid = k.resultuid inner join autochartist_stocklist asl on k.symbolid = asl.symbolid where k.patternclassid in (...) and asl.enabled = ? and asl.recognitionengine ilike ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Aug 15 07 172 12s788ms 74ms [ User: postgres - Total duration: 12s788ms - Times executed: 172 ]
[ Application: [unknown] - Total duration: 12s788ms - Times executed: 172 ]
-
SELECT DISTINCT k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid FROM relevance_keylevels_results p INNER JOIN keylevels_results k ON p.resultuid = k.resultuid INNER JOIN autochartist_stocklist asl ON k.symbolid = asl.symbolid WHERE k.patternclassid in (1, 2) AND asl.enabled = 1 AND asl.recognitionengine ILIKE 'ATFX - 1';
Date: 2025-08-15 07:45:32 Duration: 171ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT DISTINCT k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid FROM relevance_keylevels_results p INNER JOIN keylevels_results k ON p.resultuid = k.resultuid INNER JOIN autochartist_stocklist asl ON k.symbolid = asl.symbolid WHERE k.patternclassid in (1, 2) AND asl.enabled = 1 AND asl.recognitionengine ILIKE 'AXIORY - 1';
Date: 2025-08-15 07:31:14 Duration: 169ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT DISTINCT k.symbolid, p.resultuid, k.symbolid, k.bandwidth, k.direction, k.patternendtime, k.patternprice, k.patternlengthbars, k.breakoutbars, k.uniquepointsvalue, k.predictionpricefrom, k.predictionpriceto, k.furthestprice, k.patternclassid FROM relevance_keylevels_results p INNER JOIN keylevels_results k ON p.resultuid = k.resultuid INNER JOIN autochartist_stocklist asl ON k.symbolid = asl.symbolid WHERE k.patternclassid in (1, 2) AND asl.enabled = 1 AND asl.recognitionengine ILIKE 'AXIORY - 1';
Date: 2025-08-15 07:31:48 Duration: 169ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
16 17ms 248ms 68ms 172 11s748ms select distinct a.symbolid, p.resultuid, case when a.breakout >= ? then ? else ? end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient from relevance_autochartist_results p inner join autochartist_results a on p.resultuid = a.resultuid inner join autochartist_stocklist asl on a.symbolid = asl.symbolid where asl.enabled = ? and asl.recognitionengine ilike ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 15 07 172 11s748ms 68ms [ User: postgres - Total duration: 11s748ms - Times executed: 172 ]
[ Application: [unknown] - Total duration: 11s748ms - Times executed: 172 ]
-
SELECT distinct a.symbolid, p.resultuid, case when a.breakout >= 0 then 1 else 2 end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient FROM relevance_autochartist_results p INNER JOIN autochartist_results a ON p.resultuid = a.resultuid INNER JOIN autochartist_stocklist asl ON a.symbolid = asl.symbolid WHERE asl.enabled = 1 AND asl.recognitionengine ILIKE 'PEPPERSTONE - 1';
Date: 2025-08-15 07:15:27 Duration: 248ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT distinct a.symbolid, p.resultuid, case when a.breakout >= 0 then 1 else 2 end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient FROM relevance_autochartist_results p INNER JOIN autochartist_results a ON p.resultuid = a.resultuid INNER JOIN autochartist_stocklist asl ON a.symbolid = asl.symbolid WHERE asl.enabled = 1 AND asl.recognitionengine ILIKE 'PEPPERSTONE - 1';
Date: 2025-08-15 07:06:51 Duration: 245ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
SELECT distinct a.symbolid, p.resultuid, case when a.breakout >= 0 then 1 else 2 end as type, a.resultid, a.bandwidth, a.patternlengthbars, a.patternendtime, a.resy0, a.supporty0, a.resy1, a.supporty1, a.direction, a.predictionpriceto, a.patternendprice, a.predictionpricefrom, a.resx0, a.supportx0, a.resgradient, a.supportgradient FROM relevance_autochartist_results p INNER JOIN autochartist_results a ON p.resultuid = a.resultuid INNER JOIN autochartist_stocklist asl ON a.symbolid = asl.symbolid WHERE asl.enabled = 1 AND asl.recognitionengine ILIKE 'PEPPERSTONE - 1';
Date: 2025-08-15 07:17:10 Duration: 195ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
17 0ms 142ms 5ms 617 3s285ms select t.pricedatetime as pricedatetime, t.open as open, t.high as high, t.low as low, t.close "..." close, t.volume as volume, t.bsf as bsf from t60 t where t.symbolid = ? and (bsf = ? or bsf is null) and pricedatetime >= ? and pricedatetime <= ? order by pricedatetime desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Aug 15 07 617 3s285ms 5ms [ User: postgres - Total duration: 3s285ms - Times executed: 617 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 3s285ms - Times executed: 617 ]
-
SELECT T.PriceDateTime AS pricedatetime, T.Open AS open, T.High AS high, T.Low AS low, T.Close AS close, T.Volume AS volume, T.BSF AS bsf FROM T60 T WHERE T.symbolid = '515840245905196300' AND (BSF = '0' OR BSF IS NULL) AND pricedatetime >= '1900-01-01 00:00:00' AND pricedatetime <= '2900-01-01 00:00:00' ORDER BY PriceDateTime DESC LIMIT 700;
Date: 2025-08-15 07:00:05 Duration: 142ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT T.PriceDateTime AS pricedatetime, T.Open AS open, T.High AS high, T.Low AS low, T.Close AS close, T.Volume AS volume, T.BSF AS bsf FROM T60 T WHERE T.symbolid = '515840243156387300' AND (BSF = '0' OR BSF IS NULL) AND pricedatetime >= '1900-01-01 00:00:00' AND pricedatetime <= '2900-01-01 00:00:00' ORDER BY PriceDateTime DESC LIMIT 700;
Date: 2025-08-15 07:00:09 Duration: 115ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT T.PriceDateTime AS pricedatetime, T.Open AS open, T.High AS high, T.Low AS low, T.Close AS close, T.Volume AS volume, T.BSF AS bsf FROM T60 T WHERE T.symbolid = '515840245881759300' AND (BSF = '0' OR BSF IS NULL) AND pricedatetime >= '1900-01-01 00:00:00' AND pricedatetime <= '2900-01-01 00:00:00' ORDER BY PriceDateTime DESC LIMIT 700;
Date: 2025-08-15 07:00:05 Duration: 111ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
18 0ms 12ms 2ms 1,602 4s168ms 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) values (?.?, ?, ?, ?::timestamp without time zone, ?, ?.?, ?, ?, ?.?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?.?, ?::timestamp without time zone, ?, ?.?, ?.?, ?, ?, ?.?, ?.?, ?::timestamp without time zone, ?, ?, ?.?, ?.?, ?, ?, ?.?, ?, current_timestamp::timestamp without time zone) on conflict do nothing;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Aug 15 07 1,602 4s168ms 2ms [ User: postgres - Total duration: 4s168ms - Times executed: 1602 ]
[ Application: [unknown] - Total duration: 4s168ms - Times executed: 1602 ]
-
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) VALUES (3.000000000000000000000000000000, - 1, 1, '2025-08-15 04:55:38'::timestamp without time zone, '2025-08-15 04:00:00', 0.005452499999999961718000000000, 5, 147, 1.171659999999999924000000000000, '2025-08-07 08:00:00', '2025-07-21 16:00:00', '2025-07-15 08:00:00', '2025-07-14 04:00:00', '2025-07-11 16:00:00', '', '', '', '', '', 336, 1.173554500000000056000000000000, '2025-08-15 04:00:00'::timestamp without time zone, '2025-08-15 04:00:00', 1.166299999999999892000000000000, 0.001894499999999999917000000000, 1, 515840249373009300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840249373009300|1.17166|1|2025-08-15 04:00:00|2025-08-15 04:00:00|1|-1', 1.164135549999999908000000000000, 0.007524450000000015848000000000, 2, '2025-07-11 16:00:00', 1.163110000000000088000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:34 Duration: 12ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES (4.000000000000000000000000000000, - 1, 2, '2025-08-15 04:57:05'::timestamp without time zone, '2025-08-15 07:45:00', 0.006500000000000120265000000000, 4, 133, 4.477999999999999758000000000000, '2025-08-15 01:00:00', '2025-08-14 13:00:00', '2025-08-13 23:00:00', '2025-08-13 20:30:00', '', '', '', '', '', '', 265, 4.474899999999999878000000000000, '2025-08-15 07:45:00'::timestamp without time zone, '2025-08-15 07:45:00', 4.482000000000000206000000000000, 0.003150000000000029946000000000, - 1, 515840233426798300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840233426798300|4.478|2|2025-08-15 07:45:00|2025-08-15 07:45:00|-1|-1', 4.486970000000000347000000000000, 0.008970000000000588614000000000, 2, '2025-08-13 20:30:00', 4.491999999999999993000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:02:02 Duration: 12ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
-
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) VALUES (8.000000000000000000000000000000, - 1, 2, '2025-08-15 04:56:02'::timestamp without time zone, '', 0.500000000000000000000000000000, 4, 218, 0.590295000000000014200000000000, '2025-08-15 05:00:00', '2025-08-14 19:00:00', '2025-08-04 11:00:00', '2025-08-04 03:00:00', '', '', '', '', '', '', 545, 0.589740999999999959700000000000, '2025-08-15 07:00:00'::timestamp without time zone, '2025-08-15 07:00:00', 0.000000000000000000000000000000, 0.000553999999999998937800000000, 1, 515840249465046300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840249465046300|0.590295|2|2025-08-15 07:00:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2025-08-04 03:00:00', 0.588139999999999996200000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 07:00:59 Duration: 11ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
19 2ms 4ms 2ms 640 1s542ms insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing; insert into t15 (symbolid, pricedatetime, open, high, low, close, volume, bsf, sastdatetimereceived) values (?, ?::timestamp without time zone, ?.?, ?.?, ?.?, ?.?, ?, ?, ?::timestamp without time zone) on conflict (symbolid, pricedatetime) do nothing;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Aug 15 07 640 1s542ms 2ms [ User: postgres - Total duration: 1s542ms - Times executed: 640 ]
[ Application: [unknown] - Total duration: 1s542ms - Times executed: 640 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 01:15:00'::timestamp without time zone, 0.65175, 0.65185, 0.6516, 0.65185, 177, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 01:30:00'::timestamp without time zone, 0.6519, 0.65195, 0.65175, 0.65195, 221, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 01:45:00'::timestamp without time zone, 0.65195, 0.6522, 0.6519, 0.6522, 316, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:00:00'::timestamp without time zone, 0.65225, 0.6525, 0.65205, 0.6524, 709, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:15:00'::timestamp without time zone, 0.65245, 0.65315, 0.65245, 0.6529, 611, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:30:00'::timestamp without time zone, 0.653, 0.65315, 0.65295, 0.65305, 309, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 02:45:00'::timestamp without time zone, 0.65305, 0.65315, 0.65275, 0.6528, 301, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:00:00'::timestamp without time zone, 0.6528, 0.6529, 0.65265, 0.65275, 404, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:15:00'::timestamp without time zone, 0.65275, 0.6531, 0.65275, 0.6531, 441, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:30:00'::timestamp without time zone, 0.6531, 0.6535, 0.6529, 0.6533, 727, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 03:45:00'::timestamp without time zone, 0.65325, 0.65425, 0.6532, 0.6542, 1877, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:00:00'::timestamp without time zone, 0.65415, 0.65455, 0.65355, 0.6537, 1387, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:15:00'::timestamp without time zone, 0.6537, 0.6537, 0.6532, 0.6534, 638, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:30:00'::timestamp without time zone, 0.65335, 0.65375, 0.65325, 0.6536, 419, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 04:45:00'::timestamp without time zone, 0.65355, 0.65375, 0.65345, 0.65355, 421, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:00:00'::timestamp without time zone, 0.65365, 0.65365, 0.65325, 0.65345, 279, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:15:00'::timestamp without time zone, 0.6535, 0.6536, 0.65335, 0.6534, 402, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:30:00'::timestamp without time zone, 0.6534, 0.65345, 0.65305, 0.6532, 304, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 05:45:00'::timestamp without time zone, 0.6532, 0.6533, 0.6529, 0.6529, 404, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:00:00'::timestamp without time zone, 0.65295, 0.6531, 0.65265, 0.65305, 437, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:15:00'::timestamp without time zone, 0.65305, 0.6532, 0.6527, 0.6527, 265, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:30:00'::timestamp without time zone, 0.6527, 0.65315, 0.6527, 0.6531, 551, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 06:45:00'::timestamp without time zone, 0.6531, 0.6533, 0.65295, 0.65325, 504, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:00:00'::timestamp without time zone, 0.6532, 0.6537, 0.6525, 0.6527, 1494, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:15:00'::timestamp without time zone, 0.65275, 0.65305, 0.65255, 0.65265, 445, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:30:00'::timestamp without time zone, 0.65265, 0.65275, 0.6522, 0.65235, 761, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 07:45:00'::timestamp without time zone, 0.65235, 0.65275, 0.6523, 0.65265, 367, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:00:00'::timestamp without time zone, 0.65265, 0.65285, 0.6525, 0.65255, 711, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:15:00'::timestamp without time zone, 0.65255, 0.65315, 0.65255, 0.653, 753, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:30:00'::timestamp without time zone, 0.653, 0.65335, 0.65255, 0.65265, 1179, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 08:45:00'::timestamp without time zone, 0.6527, 0.6532, 0.6527, 0.65295, 719, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:00:00'::timestamp without time zone, 0.653, 0.6535, 0.653, 0.6533, 648, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:15:00'::timestamp without time zone, 0.6534, 0.6535, 0.6527, 0.65335, 1001, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:30:00'::timestamp without time zone, 0.65335, 0.6535, 0.65275, 0.6531, 1895, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 09:45:00'::timestamp without time zone, 0.653, 0.653, 0.6521, 0.6522, 1402, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:00:00'::timestamp without time zone, 0.65215, 0.65225, 0.65095, 0.65135, 3321, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:15:00'::timestamp without time zone, 0.65135, 0.6514, 0.65075, 0.6511, 1528, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:30:00'::timestamp without time zone, 0.65115, 0.6512, 0.6504, 0.6505, 1513, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 10:45:00'::timestamp without time zone, 0.6505, 0.6505, 0.64995, 0.65005, 4849, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:00:00'::timestamp without time zone, 0.65005, 0.65015, 0.64945, 0.65015, 4174, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:15:00'::timestamp without time zone, 0.65015, 0.65045, 0.6501, 0.6504, 1248, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:30:00'::timestamp without time zone, 0.65045, 0.6506, 0.65015, 0.6504, 916, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 11:45:00'::timestamp without time zone, 0.6504, 0.65065, 0.65035, 0.6505, 625, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:00:00'::timestamp without time zone, 0.6506, 0.65065, 0.65035, 0.65065, 409, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:15:00'::timestamp without time zone, 0.65065, 0.65095, 0.6505, 0.6508, 405, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:30:00'::timestamp without time zone, 0.6508, 0.65085, 0.65025, 0.65025, 309, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 12:45:00'::timestamp without time zone, 0.65025, 0.6507, 0.6502, 0.6506, 227, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:00:00'::timestamp without time zone, 0.6506, 0.65065, 0.6503, 0.65045, 649, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:15:00'::timestamp without time zone, 0.6504, 0.6507, 0.65025, 0.65045, 344, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:30:00'::timestamp without time zone, 0.65045, 0.65085, 0.65035, 0.65085, 767, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840221186843300, '2025-08-07 13:45:00'::timestamp without time zone, 0.65085, 0.65085, 0.65065, 0.65065, 373, 0, '2025-08-15 07:26:20'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 07:26:20 Duration: 4ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 09:15:00'::timestamp without time zone, 0.81055, 0.81105, 0.8097, 0.8109, 6046, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 09:30:00'::timestamp without time zone, 0.81092, 0.81114, 0.80846, 0.8092, 6343, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 09:45:00'::timestamp without time zone, 0.80863, 0.80981, 0.8077, 0.80925, 6801, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:00:00'::timestamp without time zone, 0.8093, 0.81, 0.8084, 0.8099, 6119, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:15:00'::timestamp without time zone, 0.80989, 0.81042, 0.8093, 0.8099, 5771, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:30:00'::timestamp without time zone, 0.80994, 0.81017, 0.8088, 0.80912, 5564, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 10:45:00'::timestamp without time zone, 0.80918, 0.8096, 0.8087, 0.809, 5529, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:00:00'::timestamp without time zone, 0.80915, 0.80938, 0.8082, 0.80885, 5362, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:15:00'::timestamp without time zone, 0.80884, 0.80906, 0.8071, 0.8076, 4949, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:30:00'::timestamp without time zone, 0.8076, 0.80822, 0.8064, 0.8067, 5563, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 11:45:00'::timestamp without time zone, 0.80679, 0.8082, 0.8065, 0.8079, 5162, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:00:00'::timestamp without time zone, 0.80809, 0.80847, 0.8077, 0.80829, 4071, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:15:00'::timestamp without time zone, 0.80839, 0.80852, 0.8071, 0.8072, 3891, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:30:00'::timestamp without time zone, 0.80739, 0.8075, 0.8067, 0.8074, 3952, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 12:45:00'::timestamp without time zone, 0.80741, 0.8077, 0.8067, 0.80738, 3799, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:00:00'::timestamp without time zone, 0.80737, 0.80785, 0.8071, 0.80754, 3787, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:15:00'::timestamp without time zone, 0.8074, 0.80777, 0.8071, 0.80735, 3249, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:30:00'::timestamp without time zone, 0.80744, 0.80763, 0.807, 0.8071, 2870, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 13:45:00'::timestamp without time zone, 0.8072, 0.8076, 0.8069, 0.8073, 2614, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:00:00'::timestamp without time zone, 0.80752, 0.80774, 0.8068, 0.80733, 2652, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:15:00'::timestamp without time zone, 0.80732, 0.80787, 0.8069, 0.80766, 2565, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:30:00'::timestamp without time zone, 0.80765, 0.8078, 0.8071, 0.8075, 2633, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 14:45:00'::timestamp without time zone, 0.8076, 0.8078, 0.8069, 0.80735, 2595, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:00:00'::timestamp without time zone, 0.80734, 0.8075, 0.8069, 0.8071, 2921, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:15:00'::timestamp without time zone, 0.8071, 0.80724, 0.8064, 0.80666, 3006, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:30:00'::timestamp without time zone, 0.8067, 0.80671, 0.806, 0.80645, 2626, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 15:45:00'::timestamp without time zone, 0.80644, 0.8066, 0.8058, 0.80635, 2591, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:00:00'::timestamp without time zone, 0.8063, 0.80677, 0.8061, 0.80643, 1415, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:15:00'::timestamp without time zone, 0.80642, 0.80671, 0.8062, 0.80663, 666, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:30:00'::timestamp without time zone, 0.80663, 0.80684, 0.8063, 0.8064, 572, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 16:45:00'::timestamp without time zone, 0.80656, 0.8067, 0.80594, 0.8062, 693, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:00:00'::timestamp without time zone, 0.8058, 0.8068, 0.80568, 0.8064, 104, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:15:00'::timestamp without time zone, 0.8065, 0.8066, 0.80554, 0.8063, 110, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:30:00'::timestamp without time zone, 0.8064, 0.8067, 0.80552, 0.8062, 143, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 17:45:00'::timestamp without time zone, 0.80562, 0.8066, 0.80561, 0.80597, 141, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:00:00'::timestamp without time zone, 0.80609, 0.8065, 0.80584545, 0.805955335, 192, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:15:00'::timestamp without time zone, 0.80607, 0.80614, 0.8057, 0.806, 837, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:30:00'::timestamp without time zone, 0.80599, 0.80626, 0.8058, 0.80618, 645, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 18:45:00'::timestamp without time zone, 0.80619, 0.8064, 0.805973134, 0.80618, 460, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:00:00'::timestamp without time zone, 0.80621, 0.80628, 0.8058, 0.80611, 376, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:15:00'::timestamp without time zone, 0.80615, 0.80622, 0.8059, 0.80614, 299, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:30:00'::timestamp without time zone, 0.80615, 0.8063, 0.8059, 0.80605, 376, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 19:45:00'::timestamp without time zone, 0.806053808, 0.80622, 0.8058, 0.80613, 442, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:00:00'::timestamp without time zone, 0.80611, 0.80663, 0.8059, 0.8065, 632, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:15:00'::timestamp without time zone, 0.80657, 0.80683, 0.806329147, 0.80672, 581, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:30:00'::timestamp without time zone, 0.80673, 0.80691, 0.8064, 0.80665, 495, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 20:45:00'::timestamp without time zone, 0.80665, 0.80667, 0.8062, 0.80639, 611, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:00:00'::timestamp without time zone, 0.80637, 0.80643, 0.8059, 0.80615, 1570, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:15:00'::timestamp without time zone, 0.80616, 0.80659, 0.8059, 0.806532263, 1302, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:30:00'::timestamp without time zone, 0.80658, 0.80664, 0.8061, 0.80639, 1970, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249481463300, '2025-08-12 21:45:00'::timestamp without time zone, 0.80638, 0.80678, 0.8061, 0.8067, 1550, 0, '2025-08-15 07:27:04'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 07:27:04 Duration: 3ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 01:15:00'::timestamp without time zone, 64.8, 64.85, 64.79, 64.81, 224, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 01:30:00'::timestamp without time zone, 64.82, 64.84, 64.7, 64.71, 915, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 01:45:00'::timestamp without time zone, 64.71, 64.74, 64.67, 64.74, 476, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:00:00'::timestamp without time zone, 64.75, 64.87, 64.75, 64.83, 536, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:15:00'::timestamp without time zone, 64.82, 64.85, 64.76, 64.78, 335, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:30:00'::timestamp without time zone, 64.78, 64.82, 64.69, 64.81, 525, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 02:45:00'::timestamp without time zone, 64.81, 64.85, 64.7, 64.78, 681, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:00:00'::timestamp without time zone, 64.78, 64.96, 64.72, 64.88, 1579, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:15:00'::timestamp without time zone, 64.89, 64.97, 64.8, 64.82, 820, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:30:00'::timestamp without time zone, 64.82, 64.93, 64.75, 64.92, 1065, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 03:45:00'::timestamp without time zone, 64.91, 64.92, 64.73, 64.75, 1266, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:00:00'::timestamp without time zone, 64.75, 64.8, 64.12, 64.27, 6858, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:15:00'::timestamp without time zone, 64.26, 64.59, 64.24, 64.45, 3957, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:30:00'::timestamp without time zone, 64.46, 64.54, 64.13, 64.51, 2991, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 04:45:00'::timestamp without time zone, 64.51, 64.65, 64.47, 64.56, 1628, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:00:00'::timestamp without time zone, 64.57, 64.78, 64.52, 64.7, 1490, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:15:00'::timestamp without time zone, 64.7, 64.76, 64.68, 64.73, 856, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:30:00'::timestamp without time zone, 64.73, 64.74, 64.56, 64.58, 998, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 05:45:00'::timestamp without time zone, 64.6, 64.87, 64.59, 64.86, 992, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:00:00'::timestamp without time zone, 64.87, 64.96, 64.74, 64.82, 1401, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:15:00'::timestamp without time zone, 64.81, 64.9, 64.73, 64.82, 881, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:30:00'::timestamp without time zone, 64.82, 64.96, 64.8, 64.94, 886, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 06:45:00'::timestamp without time zone, 64.93, 65.11, 64.85, 64.86, 1934, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:00:00'::timestamp without time zone, 64.86, 64.95, 64.77, 64.8, 1403, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:15:00'::timestamp without time zone, 64.81, 64.83, 64.57, 64.62, 1592, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:30:00'::timestamp without time zone, 64.62, 64.73, 64.52, 64.69, 1776, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 07:45:00'::timestamp without time zone, 64.69, 64.73, 64.55, 64.58, 1551, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:00:00'::timestamp without time zone, 64.6, 64.84, 64.58, 64.83, 2026, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:15:00'::timestamp without time zone, 64.83, 64.85, 64.63, 64.64, 1452, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:30:00'::timestamp without time zone, 64.65, 64.83, 64.6, 64.8, 1878, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 08:45:00'::timestamp without time zone, 64.8, 64.83, 64.68, 64.69, 1513, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:00:00'::timestamp without time zone, 64.7, 64.72, 64.34, 64.36, 5655, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:15:00'::timestamp without time zone, 64.36, 64.41, 64.27, 64.31, 4380, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:30:00'::timestamp without time zone, 64.32, 64.71, 64.22, 64.63, 6355, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 09:45:00'::timestamp without time zone, 64.64, 64.64, 64.42, 64.47, 3612, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:00:00'::timestamp without time zone, 64.48, 64.59, 64.32, 64.37, 3954, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:15:00'::timestamp without time zone, 64.38, 64.45, 64.14, 64.22, 3566, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:30:00'::timestamp without time zone, 64.22, 64.45, 64.2, 64.34, 3986, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 10:45:00'::timestamp without time zone, 64.34, 64.37, 64.06, 64.07, 3942, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:00:00'::timestamp without time zone, 64.07, 64.21, 64.06, 64.08, 4702, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:15:00'::timestamp without time zone, 64.07, 64.32, 64.02, 64.21, 4626, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:30:00'::timestamp without time zone, 64.2, 64.23, 63.85, 63.98, 5470, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 11:45:00'::timestamp without time zone, 63.97, 64.11, 63.93, 64.02, 3369, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:00:00'::timestamp without time zone, 64.02, 64.44, 64.02, 64.41, 5247, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:15:00'::timestamp without time zone, 64.41, 64.43, 64.26, 64.39, 2518, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:30:00'::timestamp without time zone, 64.38, 64.49, 64.31, 64.32, 2183, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 12:45:00'::timestamp without time zone, 64.32, 64.33, 64.19, 64.21, 2196, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:00:00'::timestamp without time zone, 64.22, 64.28, 64.05, 64.08, 2566, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:15:00'::timestamp without time zone, 64.08, 64.11, 64.01, 64.03, 2246, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:30:00'::timestamp without time zone, 64.02, 64.08, 63.78, 63.98, 4474, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840224838607300, '2025-08-07 13:45:00'::timestamp without time zone, 63.98, 64.13, 63.94, 64.06, 2719, 0, '2025-08-15 07:26:59'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 07:26:59 Duration: 3ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
20 0ms 22ms 2ms 53,115 2m4s select s.symbolid as id, s.symbol as name, s.exchange as exchange, s.timegranularity as interval, dtt.timezone as timezone from symbols s inner join downloadersymbolsettings dss on dss.symbolid = s.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? inner join brokersymbollist bsl on bsl.symbolid = s.symbolid where bsl.brokerid = ? and (? = ? or s.timegranularity = ?) and (s.symbol = ? or dss.downloadersymbol = ?) and dss.enabled = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 15 07 53,115 2m4s 2ms [ User: postgres - Total duration: 2m4s - Times executed: 53115 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2m4s - Times executed: 53115 ]
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '558' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'SEKJPY' OR dss.downloadersymbol = 'SEKJPY') AND dss.enabled = 1;
Date: 2025-08-15 07:00:05 Duration: 22ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '529' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'Coffee' OR dss.downloadersymbol = 'Coffee') AND dss.enabled = 1;
Date: 2025-08-15 07:30:06 Duration: 21ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT s.symbolid AS id, s.symbol AS name, s.exchange AS exchange, s.timegranularity AS interval, dtt.timezone AS timezone FROM symbols s INNER JOIN downloadersymbolsettings dss ON dss.symbolid = s.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 INNER JOIN brokersymbollist bsl ON bsl.symbolid = s.symbolid WHERE bsl.brokerid = '538' AND ('0' = 0 OR s.timegranularity = '0') AND (s.symbol = 'BARC' OR dss.downloadersymbol = 'BARC') AND dss.enabled = 1;
Date: 2025-08-15 07:59:19 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3s99ms 3,015 0ms 11ms 1ms WITH rar_max as ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Aug 15 07 3,015 3s99ms 1ms [ User: postgres - Total duration: 1h6m33s - Times executed: 3015 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1h6m33s - Times executed: 3015 ]
-
WITH rar_max as ( ;
Date: 2025-08-15 07:06:20 Duration: 11ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
WITH rar_max as ( ;
Date: 2025-08-15 07:06:20 Duration: 10ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
WITH rar_max as ( ;
Date: 2025-08-15 07:16:00 Duration: 9ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
2 2s753ms 7,563 0ms 22ms 0ms SELECT ;Times Reported Time consuming prepare #2
Day Hour Count Duration Avg duration 07 7,563 2s753ms 0ms [ User: postgres - Total duration: 17s680ms - Times executed: 7563 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 17s680ms - Times executed: 7563 ]
-
SELECT ;
Date: 2025-08-15 07:15:31 Duration: 22ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SELECT ;
Date: 2025-08-15 07:06:20 Duration: 10ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SELECT ;
Date: 2025-08-15 07:15:31 Duration: 10ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
3 760ms 619 0ms 1ms 1ms SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;Times Reported Time consuming prepare #3
Day Hour Count Duration Avg duration 07 619 760ms 1ms [ User: postgres - Total duration: 1s28ms - Times executed: 619 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s28ms - Times executed: 619 ]
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 07:30:46 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 07:30:36 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 07:00:37 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
4 492ms 1,181 0ms 0ms 0ms INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming prepare #4
Day Hour Count Duration Avg duration 07 1,181 492ms 0ms [ User: postgres - Total duration: 4s80ms - Times executed: 1181 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 4s80ms - Times executed: 1181 ]
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:01:02 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:31:27 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:00:07 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
5 369ms 2,680 0ms 4ms 0ms SET extra_float_digits = 3;Times Reported Time consuming prepare #5
Day Hour Count Duration Avg duration 07 2,680 369ms 0ms [ User: postgres - Total duration: 25ms - Times executed: 2680 ]
[ Application: [unknown] - Total duration: 25ms - Times executed: 2680 ]
-
SET extra_float_digits = 3;
Date: 2025-08-15 07:57:08 Duration: 4ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
SET extra_float_digits = 3;
Date: 2025-08-15 07:07:32 Duration: 4ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SET extra_float_digits = 3;
Date: 2025-08-15 07:16:00 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
6 268ms 2,887 0ms 1ms 0ms INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming prepare #6
Day Hour Count Duration Avg duration 07 2,887 268ms 0ms [ User: postgres - Total duration: 2s197ms - Times executed: 2887 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2s197ms - Times executed: 2887 ]
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:00:56 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:31:41 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:30:57 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
7 192ms 3,916 0ms 8ms 0ms select 1;Times Reported Time consuming prepare #7
Day Hour Count Duration Avg duration 07 3,916 192ms 0ms [ User: postgres - Total duration: 18ms - Times executed: 3916 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 18ms - Times executed: 3916 ]
-
select 1;
Date: 2025-08-15 07:38:48 Duration: 8ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
select 1;
Date: 2025-08-15 07:16:14 Duration: 4ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
select 1;
Date: 2025-08-15 07:57:02 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
8 190ms 1,761 0ms 0ms 0ms INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming prepare #8
Day Hour Count Duration Avg duration 07 1,761 190ms 0ms [ User: postgres - Total duration: 1s501ms - Times executed: 1761 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s501ms - Times executed: 1761 ]
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:00:58 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:01:00 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:01:36 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
9 129ms 108 0ms 3ms 1ms WITH last_candle AS ( ;Times Reported Time consuming prepare #9
Day Hour Count Duration Avg duration 07 108 129ms 1ms [ User: postgres - Total duration: 36s336ms - Times executed: 108 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 36s336ms - Times executed: 108 ]
-
WITH last_candle AS ( ;
Date: 2025-08-15 07:52:07 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
WITH last_candle AS ( ;
Date: 2025-08-15 07:24:10 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
WITH last_candle AS ( ;
Date: 2025-08-15 07:24:07 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
10 114ms 1,072 0ms 0ms 0ms INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming prepare #10
Day Hour Count Duration Avg duration 07 1,072 114ms 0ms [ User: postgres - Total duration: 1s204ms - Times executed: 1072 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s204ms - Times executed: 1072 ]
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:03:03 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:01:12 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:02:16 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
11 65ms 12 4ms 7ms 5ms with sym_info as ( ;Times Reported Time consuming prepare #11
Day Hour Count Duration Avg duration 07 12 65ms 5ms [ User: postgres - Total duration: 20s127ms - Times executed: 12 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 20s127ms - Times executed: 12 ]
-
with sym_info as ( ;
Date: 2025-08-15 07:06:47 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238
-
with sym_info as ( ;
Date: 2025-08-15 07:36:54 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238
-
with sym_info as ( ;
Date: 2025-08-15 07:06:50 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238
12 47ms 18 2ms 2ms 2ms select cast(count(*) / cast(setting as numeric) * 100 as int) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by setting;Times Reported Time consuming prepare #12
Day Hour Count Duration Avg duration 07 18 47ms 2ms [ User: postgres - Total duration: 32ms - Times executed: 18 ]
[ Application: [unknown] - Total duration: 32ms - Times executed: 18 ]
-
select cast(count(*) / cast(setting as numeric) * 100 as int) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by setting;
Date: 2025-08-15 07:11:00 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
-
select cast(count(*) / cast(setting as numeric) * 100 as int) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by setting;
Date: 2025-08-15 07:51:00 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
select cast(count(*) / cast(setting as numeric) * 100 as int) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by setting;
Date: 2025-08-15 07:41:02 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
13 32ms 2,654 0ms 1ms 0ms SET application_name = 'PostgreSQL JDBC Driver';Times Reported Time consuming prepare #13
Day Hour Count Duration Avg duration 07 2,654 32ms 0ms [ User: postgres - Total duration: 45ms - Times executed: 2654 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 45ms - Times executed: 2654 ]
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 07:16:00 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 07:15:31 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 07:00:09 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
14 17ms 24 0ms 0ms 0ms select count(*) from datafeed_restarter_events where is_current_entry = 1;Times Reported Time consuming prepare #14
Day Hour Count Duration Avg duration 07 24 17ms 0ms [ User: postgres - Total duration: 58ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 58ms - Times executed: 24 ]
-
select count(*) from datafeed_restarter_events where is_current_entry = 1;
Date: 2025-08-15 07:40:04 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
-
select count(*) from datafeed_restarter_events where is_current_entry = 1;
Date: 2025-08-15 07:00:03 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
-
select count(*) from datafeed_restarter_events where is_current_entry = 1;
Date: 2025-08-15 07:25:00 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
15 16ms 6 2ms 3ms 2ms 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 #15
Day Hour Count Duration Avg duration 07 6 16ms 2ms [ User: postgres - Total duration: 34s563ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 34s563ms - 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: 2025-08-15 07:00:03 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
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: 2025-08-15 07:40:02 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
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: 2025-08-15 07:20:02 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
16 16ms 6 2ms 3ms 2ms select client_addr, count(1) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by client_addr, setting having (client_addr is not null OR (client_addr is null and count(1) > (cast(setting as numeric) / 3 * 2))) order by count desc;Times Reported Time consuming prepare #16
Day Hour Count Duration Avg duration 07 6 16ms 2ms [ User: postgres - Total duration: 12ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 12ms - Times executed: 6 ]
-
select client_addr, count(1) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by client_addr, setting having (client_addr is not null OR (client_addr is null and count(1) > (cast(setting as numeric) / 3 * 2))) order by count desc;
Date: 2025-08-15 07:00:04 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
-
select client_addr, count(1) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by client_addr, setting having (client_addr is not null OR (client_addr is null and count(1) > (cast(setting as numeric) / 3 * 2))) order by count desc;
Date: 2025-08-15 07:30:05 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
-
select client_addr, count(1) from pg_stat_activity, pg_settings WHERE name = 'max_connections' group by client_addr, setting having (client_addr is not null OR (client_addr is null and count(1) > (cast(setting as numeric) / 3 * 2))) order by count desc;
Date: 2025-08-15 07:10:05 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
17 14ms 12 1ms 1ms 1ms select distinct classname, to_char(created_datetime, 'yyyy-mm-dd HH24:MI'), to_char(cleared_datetime, 'yyyy-mm-dd HH24:MI'), action_to_take, description, created_datetime from datafeed_restarter_events where (is_current_entry = 1 OR cleared_datetime > current_timestamp - interval '17 hour') order by created_datetime desc;Times Reported Time consuming prepare #17
Day Hour Count Duration Avg duration 07 12 14ms 1ms [ User: postgres - Total duration: 38ms - Times executed: 12 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 38ms - Times executed: 12 ]
-
select distinct classname, to_char(created_datetime, 'yyyy-mm-dd HH24:MI'), to_char(cleared_datetime, 'yyyy-mm-dd HH24:MI'), action_to_take, description, created_datetime from datafeed_restarter_events where (is_current_entry = 1 OR cleared_datetime > current_timestamp - interval '17 hour') order by created_datetime desc;
Date: 2025-08-15 07:42:16 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
select distinct classname, to_char(created_datetime, 'yyyy-mm-dd HH24:MI'), to_char(cleared_datetime, 'yyyy-mm-dd HH24:MI'), action_to_take, description, created_datetime from datafeed_restarter_events where (is_current_entry = 1 OR cleared_datetime > current_timestamp - interval '17 hour') order by created_datetime desc;
Date: 2025-08-15 07:12:12 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
select distinct classname, to_char(created_datetime, 'yyyy-mm-dd HH24:MI'), to_char(cleared_datetime, 'yyyy-mm-dd HH24:MI'), action_to_take, description, created_datetime from datafeed_restarter_events where (is_current_entry = 1 OR cleared_datetime > current_timestamp - interval '17 hour') order by created_datetime desc;
Date: 2025-08-15 07:22:13 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
18 13ms 15 0ms 2ms 0ms WITH rcr_max as ( ;Times Reported Time consuming prepare #18
Day Hour Count Duration Avg duration 07 15 13ms 0ms [ User: postgres - Total duration: 14ms - Times executed: 15 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 14ms - Times executed: 15 ]
-
WITH rcr_max as ( ;
Date: 2025-08-15 07:45:40 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
WITH rcr_max as ( ;
Date: 2025-08-15 07:29:48 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
WITH rcr_max as ( ;
Date: 2025-08-15 07:29:48 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
19 9ms 12 0ms 1ms 0ms select feedname, to_char(latestrxtime, 'yyyy-mm-dd HH24:MI'), to_char(LatestDBWriteTime, 'yyyy-mm-dd HH24:MI'), to_char(LatestStartupTime, 'yyyy-mm-dd HH24:MI'), StartupTimeInMinutes, dm.source_type, dm.transport_type, case when latestrxtime < (CURRENT_TIMESTAMP - 5 * interval '1 minute') then 'X' else 'OK' end, case when (feedname ilike '%_EOD' OR feedname ilike 'IQFEED_DAILIES' or feedname ilike 'YAHOO%' or feedname ilike 'QUANDL_FUTURES%' or feedname ilike 'BAR_CHART') then case when LatestDBWriteTime < (CURRENT_TIMESTAMP - 24 * interval '1 hour') then 'X' else 'OK' end else case when (LatestDBWriteTime < (CURRENT_TIMESTAMP - 15 * interval '1 minute') and LatestStartupTime < (CURRENT_TIMESTAMP - 30 * interval '1 minute')) OR latestrxtime < CURRENT_TIMESTAMP - interval '2 hour' then 'X' else 'OK' end end as statusDB, comment from datafeeds_latestrun dlr left outer join datafeeds df on dlr.feedname ilike df.name inner join datafeeds_metadata dm on df.metadata_id = dm.id order by feedname;Times Reported Time consuming prepare #19
Day Hour Count Duration Avg duration 07 12 9ms 0ms [ User: postgres - Total duration: 12ms - Times executed: 12 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 12ms - Times executed: 12 ]
-
select feedname, to_char(latestrxtime, 'yyyy-mm-dd HH24:MI'), to_char(LatestDBWriteTime, 'yyyy-mm-dd HH24:MI'), to_char(LatestStartupTime, 'yyyy-mm-dd HH24:MI'), StartupTimeInMinutes, dm.source_type, dm.transport_type, case when latestrxtime < (CURRENT_TIMESTAMP - 5 * interval '1 minute') then 'X' else 'OK' end, case when (feedname ilike '%_EOD' OR feedname ilike 'IQFEED_DAILIES' or feedname ilike 'YAHOO%' or feedname ilike 'QUANDL_FUTURES%' or feedname ilike 'BAR_CHART') then case when LatestDBWriteTime < (CURRENT_TIMESTAMP - 24 * interval '1 hour') then 'X' else 'OK' end else case when (LatestDBWriteTime < (CURRENT_TIMESTAMP - 15 * interval '1 minute') and LatestStartupTime < (CURRENT_TIMESTAMP - 30 * interval '1 minute')) OR latestrxtime < CURRENT_TIMESTAMP - interval '2 hour' then 'X' else 'OK' end end as statusDB, comment from datafeeds_latestrun dlr left outer join datafeeds df on dlr.feedname ilike df.name inner join datafeeds_metadata dm on df.metadata_id = dm.id order by feedname;
Date: 2025-08-15 07:12:12 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
select feedname, to_char(latestrxtime, 'yyyy-mm-dd HH24:MI'), to_char(LatestDBWriteTime, 'yyyy-mm-dd HH24:MI'), to_char(LatestStartupTime, 'yyyy-mm-dd HH24:MI'), StartupTimeInMinutes, dm.source_type, dm.transport_type, case when latestrxtime < (CURRENT_TIMESTAMP - 5 * interval '1 minute') then 'X' else 'OK' end, case when (feedname ilike '%_EOD' OR feedname ilike 'IQFEED_DAILIES' or feedname ilike 'YAHOO%' or feedname ilike 'QUANDL_FUTURES%' or feedname ilike 'BAR_CHART') then case when LatestDBWriteTime < (CURRENT_TIMESTAMP - 24 * interval '1 hour') then 'X' else 'OK' end else case when (LatestDBWriteTime < (CURRENT_TIMESTAMP - 15 * interval '1 minute') and LatestStartupTime < (CURRENT_TIMESTAMP - 30 * interval '1 minute')) OR latestrxtime < CURRENT_TIMESTAMP - interval '2 hour' then 'X' else 'OK' end end as statusDB, comment from datafeeds_latestrun dlr left outer join datafeeds df on dlr.feedname ilike df.name inner join datafeeds_metadata dm on df.metadata_id = dm.id order by feedname;
Date: 2025-08-15 07:42:16 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
select feedname, to_char(latestrxtime, 'yyyy-mm-dd HH24:MI'), to_char(LatestDBWriteTime, 'yyyy-mm-dd HH24:MI'), to_char(LatestStartupTime, 'yyyy-mm-dd HH24:MI'), StartupTimeInMinutes, dm.source_type, dm.transport_type, case when latestrxtime < (CURRENT_TIMESTAMP - 5 * interval '1 minute') then 'X' else 'OK' end, case when (feedname ilike '%_EOD' OR feedname ilike 'IQFEED_DAILIES' or feedname ilike 'YAHOO%' or feedname ilike 'QUANDL_FUTURES%' or feedname ilike 'BAR_CHART') then case when LatestDBWriteTime < (CURRENT_TIMESTAMP - 24 * interval '1 hour') then 'X' else 'OK' end else case when (LatestDBWriteTime < (CURRENT_TIMESTAMP - 15 * interval '1 minute') and LatestStartupTime < (CURRENT_TIMESTAMP - 30 * interval '1 minute')) OR latestrxtime < CURRENT_TIMESTAMP - interval '2 hour' then 'X' else 'OK' end end as statusDB, comment from datafeeds_latestrun dlr left outer join datafeeds df on dlr.feedname ilike df.name inner join datafeeds_metadata dm on df.metadata_id = dm.id order by feedname;
Date: 2025-08-15 07:22:13 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
20 7ms 90 0ms 0ms 0ms INSERT INTO mt4datafeederrors (datafeedname, eventtimestamp, errordescription, status, serveraddress, username) values ($1, current_timestamp, $2, $3, $4, $5);Times Reported Time consuming prepare #20
Day Hour Count Duration Avg duration 07 90 7ms 0ms [ User: postgres - Total duration: 7ms - Times executed: 90 ]
[ Application: [unknown] - Total duration: 7ms - Times executed: 90 ]
-
INSERT INTO mt4datafeederrors (datafeedname, eventtimestamp, errordescription, status, serveraddress, username) values ($1, current_timestamp, $2, $3, $4, $5);
Date: 2025-08-15 07:17:46 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.205
-
INSERT INTO mt4datafeederrors (datafeedname, eventtimestamp, errordescription, status, serveraddress, username) values ($1, current_timestamp, $2, $3, $4, $5);
Date: 2025-08-15 07:05:45 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.205
-
INSERT INTO mt4datafeederrors (datafeedname, eventtimestamp, errordescription, status, serveraddress, username) values ($1, current_timestamp, $2, $3, $4, $5);
Date: 2025-08-15 07:32:28 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.205
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 46s410ms 123,688 0ms 33ms 0ms SELECT ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Aug 15 07 123,688 46s410ms 0ms [ User: postgres - Total duration: 3m37s - Times executed: 123688 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 3m37s - Times executed: 123688 ]
-
SELECT ;
Date: 2025-08-15 07:15:31 Duration: 33ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '958', $2 = '958', $3 = '515840243152971300'
-
SELECT ;
Date: 2025-08-15 07:30:04 Duration: 20ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '500991628237325200'
-
SELECT ;
Date: 2025-08-15 07:15:31 Duration: 19ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '958', $2 = '958', $3 = '515840248167442300'
2 35s876ms 7,698 0ms 41ms 4ms WITH rar_max as ( ;Times Reported Time consuming bind #2
Day Hour Count Duration Avg duration 07 7,698 35s876ms 4ms [ User: postgres - Total duration: 1h59m57s - Times executed: 7698 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1h53m25s - Times executed: 7638 ]
[ Application: [unknown] - Total duration: 6m31s - Times executed: 60 ]
-
WITH rar_max as ( ;
Date: 2025-08-15 07:57:02 Duration: 41ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '606639809541556301', $2 = '606639809541556301', $3 = '606639809541556301'
-
WITH rar_max as ( ;
Date: 2025-08-15 07:23:26 Duration: 41ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '606637921197761302', $2 = '606637921197761302', $3 = '606637921197761302'
-
WITH rar_max as ( ;
Date: 2025-08-15 07:23:26 Duration: 33ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '606637921197301301', $2 = '606637921197301301', $3 = '606637921197301301'
3 1s162ms 619 1ms 2ms 1ms SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;Times Reported Time consuming bind #3
Day Hour Count Duration Avg duration 07 619 1s162ms 1ms [ User: postgres - Total duration: 1s28ms - Times executed: 619 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s28ms - Times executed: 619 ]
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 07:45:24 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = 'FPMARKETS'
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 07:45:35 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = 'ICMARKETS'
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 07:30:13 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = 'PEPPERSTONE'
4 1s70ms 80,159 0ms 9ms 0ms select 1;Times Reported Time consuming bind #4
Day Hour Count Duration Avg duration 07 80,158 1s70ms 0ms 08 1 0ms 0ms [ User: postgres - Total duration: 301ms - Times executed: 80159 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 301ms - Times executed: 80066 ]
[ Application: [unknown] - Total duration: 0ms - Times executed: 93 ]
-
select 1;
Date: 2025-08-15 07:34:41 Duration: 9ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
select 1;
Date: 2025-08-15 07:00:04 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20
-
select 1;
Date: 2025-08-15 07:45:04 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20
5 1s67ms 150 4ms 17ms 7ms WITH last_candle AS ( ;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 07 150 1s67ms 7ms [ User: postgres - Total duration: 48s604ms - Times executed: 150 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 48s604ms - Times executed: 150 ]
-
WITH last_candle AS ( ;
Date: 2025-08-15 07:44:02 Duration: 17ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20 parameters: $1 = '558', $2 = '558'
-
WITH last_candle AS ( ;
Date: 2025-08-15 07:00:00 Duration: 17ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145 parameters: $1 = '558', $2 = '558'
-
WITH last_candle AS ( ;
Date: 2025-08-15 07:52:07 Duration: 13ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '538', $2 = '538'
6 634ms 26 0ms 48ms 24ms with wh_patitioned as ( ;Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 07 26 634ms 24ms [ User: postgres - Total duration: 278ms - Times executed: 26 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 278ms - Times executed: 26 ]
-
with wh_patitioned as ( ;
Date: 2025-08-15 07:17:51 Duration: 48ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145 parameters: $1 = '529', $2 = '529', $3 = '529', $4 = '529', $5 = '529', $6 = '529', $7 = '529', $8 = '529', $9 = '529'
-
with wh_patitioned as ( ;
Date: 2025-08-15 07:10:03 Duration: 47ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20 parameters: $1 = '558', $2 = '558', $3 = '558', $4 = '558', $5 = '558', $6 = '558', $7 = '558', $8 = '558', $9 = '558'
-
with wh_patitioned as ( ;
Date: 2025-08-15 07:00:01 Duration: 46ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20 parameters: $1 = '558', $2 = '558', $3 = '558', $4 = '558', $5 = '558', $6 = '558', $7 = '558', $8 = '558', $9 = '558'
7 532ms 5,730 0ms 0ms 0ms INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming bind #7
Day Hour Count Duration Avg duration 07 5,730 532ms 0ms [ User: postgres - Total duration: 6s735ms - Times executed: 5730 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 6s735ms - Times executed: 5730 ]
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:16:00 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 08:00:00', $2 = '3344.94', $3 = '3348.54', $4 = '3344.93', $5 = '3345.67', $6 = '1355', $7 = '515840247906526300', $8 = '0', $9 = '2025-08-15 07:16:00.266', $10 = '2025-08-15 07:16:00.156', $11 = '3344.94', $12 = '3348.54', $13 = '3344.93', $14 = '3345.67', $15 = '1355', $16 = '0', $17 = '2025-08-15 07:16:00.266', $18 = '2025-08-15 07:16:00.156'
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:47:16 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 08:30:00', $2 = '118827.625', $3 = '118950.885', $4 = '118789.515', $5 = '118789.515', $6 = '566', $7 = '515840249391752300', $8 = '0', $9 = '2025-08-15 07:47:16.734', $10 = '2025-08-15 07:47:16.568', $11 = '118827.625', $12 = '118950.885', $13 = '118789.515', $14 = '118789.515', $15 = '566', $16 = '0', $17 = '2025-08-15 07:47:16.734', $18 = '2025-08-15 07:47:16.568'
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:01:12 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 07:45:00', $2 = '1.969625', $3 = '1.97004', $4 = '1.969425', $5 = '1.96981', $6 = '511', $7 = '515840230400034300', $8 = '0', $9 = '2025-08-15 07:01:12.309', $10 = '2025-08-15 07:01:12.239', $11 = '1.969625', $12 = '1.97004', $13 = '1.969425', $14 = '1.96981', $15 = '511', $16 = '0', $17 = '2025-08-15 07:01:12.309', $18 = '2025-08-15 07:01:12.239'
8 390ms 12 28ms 44ms 32ms with sym_info as ( ;Times Reported Time consuming bind #8
Day Hour Count Duration Avg duration 07 12 390ms 32ms [ User: postgres - Total duration: 20s127ms - Times executed: 12 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 20s127ms - Times executed: 12 ]
-
with sym_info as ( ;
Date: 2025-08-15 07:06:47 Duration: 44ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238 parameters: $1 = '620', $2 = 'Forex', $3 = 'Forex', $4 = '620', $5 = 'Forex', $6 = '620', $7 = '620', $8 = 'Forex', $9 = '620'
-
with sym_info as ( ;
Date: 2025-08-15 07:06:50 Duration: 44ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238 parameters: $1 = '617', $2 = 'Forex', $3 = 'Forex', $4 = '617', $5 = 'Forex', $6 = '617', $7 = '617', $8 = 'Forex', $9 = '617'
-
with sym_info as ( ;
Date: 2025-08-15 07:36:54 Duration: 41ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238 parameters: $1 = '627', $2 = 'Forex', $3 = 'Forex', $4 = '627', $5 = 'Forex', $6 = '627', $7 = '627', $8 = 'Forex', $9 = '627'
9 322ms 44 0ms 21ms 7ms WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;Times Reported Time consuming bind #9
Day Hour Count Duration Avg duration 07 44 322ms 7ms [ User: postgres - Total duration: 0ms - Times executed: 44 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 0ms - Times executed: 44 ]
-
WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;
Date: 2025-08-15 07:56:36 Duration: 21ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '689', $2 = '0', $3 = '0', $4 = '0', $5 = '', $6 = '0', $7 = '', $8 = '0', $9 = '', $10 = '0', $11 = '0'
-
WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;
Date: 2025-08-15 07:20:37 Duration: 21ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '667', $2 = '0', $3 = '0', $4 = '0', $5 = '', $6 = '0', $7 = '', $8 = '0', $9 = '', $10 = '0', $11 = '0'
-
WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;
Date: 2025-08-15 07:56:44 Duration: 19ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '667', $2 = '0', $3 = '0', $4 = '0', $5 = '', $6 = '0', $7 = '', $8 = '0', $9 = '', $10 = '0', $11 = '0'
10 254ms 3,291 0ms 0ms 0ms INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming bind #10
Day Hour Count Duration Avg duration 07 3,291 254ms 0ms [ User: postgres - Total duration: 2s356ms - Times executed: 3291 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2s356ms - Times executed: 3291 ]
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:40:54 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 07:30:00', $2 = '23844.6', $3 = '23852.7', $4 = '23841.1', $5 = '23847.7', $6 = '1114', $7 = '515840248039147300', $8 = '0', $9 = '2025-08-15 07:40:54.169', $10 = '2025-08-15 07:40:54.122', $11 = '23844.6', $12 = '23852.7', $13 = '23841.1', $14 = '23847.7', $15 = '1114', $16 = '0', $17 = '2025-08-15 07:40:54.169', $18 = '2025-08-15 07:40:54.122'
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:41:42 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 08:00:00', $2 = '8923.9', $3 = '8935.7', $4 = '8923.9', $5 = '8934.8', $6 = '152', $7 = '515840248015340300', $8 = '0', $9 = '2025-08-15 07:41:42.489', $10 = '2025-08-15 07:41:42.443', $11 = '8923.9', $12 = '8935.7', $13 = '8923.9', $14 = '8934.8', $15 = '152', $16 = '0', $17 = '2025-08-15 07:41:42.489', $18 = '2025-08-15 07:41:42.443'
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:30:57 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 08:00:00', $2 = '6.39388', $3 = '6.39448', $4 = '6.39286', $5 = '6.39324', $6 = '185', $7 = '515840247894362300', $8 = '0', $9 = '2025-08-15 07:30:57.238', $10 = '2025-08-15 07:30:57.101', $11 = '6.39388', $12 = '6.39448', $13 = '6.39286', $14 = '6.39324', $15 = '185', $16 = '0', $17 = '2025-08-15 07:30:57.238', $18 = '2025-08-15 07:30:57.101'
11 173ms 2,180 0ms 0ms 0ms INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming bind #11
Day Hour Count Duration Avg duration 07 2,180 173ms 0ms [ User: postgres - Total duration: 1s645ms - Times executed: 2180 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s645ms - Times executed: 2180 ]
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:00:50 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 07:00:00', $2 = '1.35464', $3 = '1.35486', $4 = '1.35439', $5 = '1.35461', $6 = '1915', $7 = '515840247885064300', $8 = '0', $9 = '2025-08-15 07:00:50.412', $10 = '2025-08-15 07:00:50.309', $11 = '1.35464', $12 = '1.35486', $13 = '1.35439', $14 = '1.35461', $15 = '1915', $16 = '0', $17 = '2025-08-15 07:00:50.412', $18 = '2025-08-15 07:00:50.309'
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:10:35 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-14 21:00:00', $2 = '742.27', $3 = '746.65', $4 = '742.25', $5 = '745.47', $6 = '691', $7 = '515840247901004300', $8 = '0', $9 = '2025-08-15 07:10:35.945', $10 = '2025-08-15 07:10:35.909', $11 = '742.27', $12 = '746.65', $13 = '742.25', $14 = '745.47', $15 = '691', $16 = '0', $17 = '2025-08-15 07:10:35.945', $18 = '2025-08-15 07:10:35.909'
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:01:00 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 07:00:00', $2 = '31.59', $3 = '31.82', $4 = '31.31', $5 = '31.41', $6 = '242', $7 = '515840247893649300', $8 = '0', $9 = '2025-08-15 07:01:00.641', $10 = '2025-08-15 07:01:00.557', $11 = '31.59', $12 = '31.82', $13 = '31.31', $14 = '31.41', $15 = '242', $16 = '0', $17 = '2025-08-15 07:01:00.641', $18 = '2025-08-15 07:01:00.557'
12 112ms 1,072 0ms 0ms 0ms INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;Times Reported Time consuming bind #12
Day Hour Count Duration Avg duration 07 1,072 112ms 0ms [ User: postgres - Total duration: 1s204ms - Times executed: 1072 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s204ms - Times executed: 1072 ]
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:01:12 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 04:00:00', $2 = '171.8365', $3 = '171.8935', $4 = '171.549', $5 = '171.6085', $6 = '16335', $7 = '515840230417229300', $8 = '0', $9 = '2025-08-15 07:01:12.368', $10 = '2025-08-15 07:01:12.367', $11 = '171.8365', $12 = '171.8935', $13 = '171.549', $14 = '171.6085', $15 = '16335', $16 = '0', $17 = '2025-08-15 07:01:12.368', $18 = '2025-08-15 07:01:12.367'
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:03:01 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 04:00:00', $2 = '0.524805', $3 = '0.525105', $4 = '0.523795', $5 = '0.524325', $6 = '11054', $7 = '515840230422758300', $8 = '0', $9 = '2025-08-15 07:03:01.578', $10 = '2025-08-15 07:03:01.578', $11 = '0.524805', $12 = '0.525105', $13 = '0.523795', $14 = '0.524325', $15 = '11054', $16 = '0', $17 = '2025-08-15 07:03:01.578', $18 = '2025-08-15 07:03:01.578'
-
INSERT INTO T240 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = $11, high = $12, low = $13, close = $14, volume = $15, bsf = $16, sastdatetimewritten = $17, sastdatetimereceived = $18;
Date: 2025-08-15 07:02:31 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 04:00:00', $2 = '63.835', $3 = '63.945', $4 = '63.695', $5 = '63.735', $6 = '544', $7 = '515840230546244300', $8 = '0', $9 = '2025-08-15 07:02:31.275', $10 = '2025-08-15 07:02:31.275', $11 = '63.835', $12 = '63.945', $13 = '63.695', $14 = '63.735', $15 = '544', $16 = '0', $17 = '2025-08-15 07:02:31.275', $18 = '2025-08-15 07:02:31.275'
13 112ms 122 0ms 1ms 0ms SELECT timegranularity FROM brokersymbollist bsl INNER JOIN symbols s ON bsl.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss on s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON bdfi.brokerid = $1 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid WHERE s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 AND s.symbol ILIKE $2 AND bsl.brokerid = $3 AND timegranularity >= 15 ORDER BY timegranularity LIMIT 1;Times Reported Time consuming bind #13
Day Hour Count Duration Avg duration 07 122 112ms 0ms [ User: postgres - Total duration: 851ms - Times executed: 122 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 802ms - Times executed: 114 ]
[ Application: [unknown] - Total duration: 48ms - Times executed: 8 ]
-
SELECT timegranularity FROM brokersymbollist bsl INNER JOIN symbols s ON bsl.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss on s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON bdfi.brokerid = $1 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid WHERE s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 AND s.symbol ILIKE $2 AND bsl.brokerid = $3 AND timegranularity >= 15 ORDER BY timegranularity LIMIT 1;
Date: 2025-08-15 07:30:57 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 182.165.1.42 parameters: $1 = '689', $2 = 'WTI', $3 = '689'
-
SELECT timegranularity FROM brokersymbollist bsl INNER JOIN symbols s ON bsl.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss on s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON bdfi.brokerid = $1 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid WHERE s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 AND s.symbol ILIKE $2 AND bsl.brokerid = $3 AND timegranularity >= 15 ORDER BY timegranularity LIMIT 1;
Date: 2025-08-15 07:00:36 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.201 parameters: $1 = '558', $2 = 'BTCUSD', $3 = '558'
-
SELECT timegranularity FROM brokersymbollist bsl INNER JOIN symbols s ON bsl.symbolid = s.symbolid INNER JOIN downloadersymbolsettings dss on s.symbolid = dss.symbolid LEFT OUTER JOIN brokerinstrumentmapping bdfi ON bdfi.brokerid = $1 AND dss.datafeedinstrumentid = bdfi.datafeedinstrumentid WHERE s.nonliquid = 0 and s.deleted = 0 and dss.enabled = 1 AND s.symbol ILIKE $2 AND bsl.brokerid = $3 AND timegranularity >= 15 ORDER BY timegranularity LIMIT 1;
Date: 2025-08-15 07:22:58 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 182.165.1.42 parameters: $1 = '689', $2 = 'WTI', $3 = '689'
14 67ms 14 3ms 6ms 4ms SELECT DISTINCT ON (basegroupname, symbol) ;Times Reported Time consuming bind #14
Day Hour Count Duration Avg duration 07 14 67ms 4ms [ User: postgres - Total duration: 1s720ms - Times executed: 14 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s720ms - Times executed: 14 ]
-
SELECT DISTINCT ON (basegroupname, symbol) ;
Date: 2025-08-15 07:31:09 Duration: 6ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145 parameters: $1 = '627', $2 = '627'
-
SELECT DISTINCT ON (basegroupname, symbol) ;
Date: 2025-08-15 07:17:50 Duration: 6ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145 parameters: $1 = '529', $2 = '529'
-
SELECT DISTINCT ON (basegroupname, symbol) ;
Date: 2025-08-15 07:05:33 Duration: 5ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '689', $2 = '689'
15 52ms 15 1ms 7ms 3ms WITH rcr_max as ( ;Times Reported Time consuming bind #15
Day Hour Count Duration Avg duration 07 15 52ms 3ms [ User: postgres - Total duration: 14ms - Times executed: 15 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 14ms - Times executed: 15 ]
-
WITH rcr_max as ( ;
Date: 2025-08-15 07:38:48 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '606639807663606305', $2 = '606639807663606305', $3 = '606639807663606305'
-
WITH rcr_max as ( ;
Date: 2025-08-15 07:29:48 Duration: 6ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '606639807328174305', $2 = '606639807328174305', $3 = '606639807328174305'
-
WITH rcr_max as ( ;
Date: 2025-08-15 07:29:48 Duration: 6ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '606639807663606305', $2 = '606639807663606305', $3 = '606639807663606305'
16 33ms 1 33ms 33ms 33ms with maxwhid as ( ;Times Reported Time consuming bind #16
Day Hour Count Duration Avg duration 07 1 33ms 33ms [ User: postgres - Total duration: 115ms - Times executed: 1 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 115ms - Times executed: 1 ]
-
with maxwhid as ( ;
Date: 2025-08-15 07:12:46 Duration: 33ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.100 parameters: $1 = '335', $2 = '621', $3 = '637', $4 = '642', $5 = '660', $6 = '666', $7 = '643', $8 = '630', $9 = '680', $10 = '641', $11 = '431', $12 = '622', $13 = '489', $14 = '529', $15 = '576', $16 = '665', $17 = '667', $18 = '558', $19 = '620', $20 = '125', $21 = '488', $22 = '567', $23 = '689', $24 = '700', $25 = '758', $26 = '763', $27 = '765', $28 = '817', $29 = '914', $30 = '972'
17 29ms 377 0ms 0ms 0ms /*server.CPResult*/ SELECT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, symbol, longname, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, breakout, dtt.absolutetimezoneoffset as tzOs, dtt.timezone as tz FROM autochartist_results a INNER JOIN downloadersymbolsettings dss on a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname inner join symbols s on a.symbolid = s.symbolid inner join patterns p on p.patternname = a.pattern where resultuid = $1;Times Reported Time consuming bind #17
Day Hour Count Duration Avg duration 07 377 29ms 0ms [ User: postgres - Total duration: 32ms - Times executed: 377 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 32ms - Times executed: 377 ]
-
/*server.CPResult*/ SELECT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, symbol, longname, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, breakout, dtt.absolutetimezoneoffset as tzOs, dtt.timezone as tz FROM autochartist_results a INNER JOIN downloadersymbolsettings dss on a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname inner join symbols s on a.symbolid = s.symbolid inner join patterns p on p.patternname = a.pattern where resultuid = $1;
Date: 2025-08-15 07:48:13 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.201 parameters: $1 = '606639100802989301'
-
/*server.CPResult*/ SELECT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, symbol, longname, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, breakout, dtt.absolutetimezoneoffset as tzOs, dtt.timezone as tz FROM autochartist_results a INNER JOIN downloadersymbolsettings dss on a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname inner join symbols s on a.symbolid = s.symbolid inner join patterns p on p.patternname = a.pattern where resultuid = $1;
Date: 2025-08-15 07:01:09 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.201 parameters: $1 = '606639337616634301'
-
/*server.CPResult*/ SELECT patternid, resy0, resy1, supporty0, supporty1, predictiontimeto, patternstarttime, s.symbolid, resx0, resx1, supportx0, supportx1, symbol, longname, shortname, timegranularity, patternendtime, pattern, a.direction, trendchange, patternlengthbars, patternquality, resultuid as uid, breakout, initialtrend, volumeincrease, symmetry as uniformity, predictionpricefrom, predictionpriceto, noise, exchange, breakout, dtt.absolutetimezoneoffset as tzOs, dtt.timezone as tz FROM autochartist_results a INNER JOIN downloadersymbolsettings dss on a.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname inner join symbols s on a.symbolid = s.symbolid inner join patterns p on p.patternname = a.pattern where resultuid = $1;
Date: 2025-08-15 07:43:47 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.23 parameters: $1 = '606637822558371301'
18 28ms 6 3ms 6ms 4ms 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 #18
Day Hour Count Duration Avg duration 07 6 28ms 4ms [ User: postgres - Total duration: 34s563ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 34s563ms - 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: 2025-08-15 07:40:02 Duration: 6ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
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: 2025-08-15 07:00:03 Duration: 5ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
-
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: 2025-08-15 07:10:02 Duration: 4ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
19 18ms 122 0ms 1ms 0ms SELECT DISTINCT COALESCE(stddev_15 / 2, 0) AS low_15_stddev, COALESCE(ave_15 / 2, 0) AS low_15_ave, COALESCE(stddev_15 / 2, 0) AS high_15_stddev, COALESCE(ave_15 / 2, 0) AS high_15_ave, COALESCE(stddev_30 / 2, 0) AS low_30_stddev, COALESCE(ave_30 / 2, 0) AS low_30_ave, COALESCE(stddev_30 / 2, 0) AS high_30_stddev, COALESCE(ave_30 / 2, 0) AS high_30_ave, COALESCE(stddev_60 / 2, 0) AS low_60_stddev, COALESCE(ave_60 / 2, 0) AS low_60_ave, COALESCE(stddev_60 / 2, 0) AS high_60_stddev, COALESCE(ave_60 / 2, 0) AS high_60_ave, COALESCE(stddev_240 / 2, 0) AS low_240_stddev, COALESCE(ave_240 / 2, 0) AS low_240_ave, COALESCE(stddev_240 / 2, 0) AS high_240_stddev, COALESCE(ave_240 / 2, 0) AS high_240_ave, COALESCE(stddev_1440 / 2, 0) AS low_1440_stddev, COALESCE(ave_1440 / 2, 0) AS low_1440_ave, COALESCE(stddev_1440 / 2, 0) AS high_1440_stddev, COALESCE(ave_1440 / 2, 0) AS high_1440_ave, s.exchange AS exchange, s.symbol AS symbol, s.longname, ps.enddate AS executiondate, dtt.absolutetimezoneoffset AS datafeedtimezoneoffset, dtt.timezone AS datafeedtimezonename, dss.downloadersymbol FROM powerstats_trumpet ps INNER JOIN downloadersymbolsettings dss ON dss.symbolid = ps.symbolid INNER JOIN datafeedstimetable dtt ON dtt.classname = dss.classname INNER JOIN symbols s ON ps.symbolid = s.symbolid WHERE ps.dayofweek = $1 AND ps.fromtime = $2 AND ps.symbolid = $3 ORDER BY ps.enddate DESC LIMIT 1;Times Reported Time consuming bind #19
Day Hour Count Duration Avg duration 07 122 18ms 0ms [ User: postgres - Total duration: 365ms - Times executed: 122 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 328ms - Times executed: 114 ]
[ Application: [unknown] - Total duration: 37ms - Times executed: 8 ]
-
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: 2025-08-15 07:33:28 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.45 parameters: $1 = '0', $2 = '0', $3 = '0'
-
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: 2025-08-15 07:34:33 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.45 parameters: $1 = '5', $2 = '495', $3 = '515840247879935300'
-
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: 2025-08-15 07:33:33 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.45 parameters: $1 = '5', $2 = '480', $3 = '515840248000537300'
20 17ms 464 0ms 0ms 0ms SELECT df.absolutetimezoneoffset FROM datafeedstimetable df INNER JOIN downloadersymbolsettings dss ON df.classname = dss.classname WHERE dss.symbolid = $1 GROUP BY df.absolutetimezoneoffset LIMIT 1;Times Reported Time consuming bind #20
Day Hour Count Duration Avg duration 07 464 17ms 0ms [ User: postgres - Total duration: 15ms - Times executed: 464 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 15ms - Times executed: 464 ]
-
SELECT df.absolutetimezoneoffset FROM datafeedstimetable df INNER JOIN downloadersymbolsettings dss ON df.classname = dss.classname WHERE dss.symbolid = $1 GROUP BY df.absolutetimezoneoffset LIMIT 1;
Date: 2025-08-15 07:47:47 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.42 parameters: $1 = '515840243867772300'
-
SELECT df.absolutetimezoneoffset FROM datafeedstimetable df INNER JOIN downloadersymbolsettings dss ON df.classname = dss.classname WHERE dss.symbolid = $1 GROUP BY df.absolutetimezoneoffset LIMIT 1;
Date: 2025-08-15 07:17:47 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.201 parameters: $1 = '515840243235939300'
-
SELECT df.absolutetimezoneoffset FROM datafeedstimetable df INNER JOIN downloadersymbolsettings dss ON df.classname = dss.classname WHERE dss.symbolid = $1 GROUP BY df.absolutetimezoneoffset LIMIT 1;
Date: 2025-08-15 07:03:10 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.23 parameters: $1 = '515840233383659300'
-
Events
Log levels
Key values
- 825,404 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
Errors per 5 minutes
NO DATASET
Most Frequent Errors/Events
Key values
- 0 Max number of times the same event was reported
- 0 Total events found
Rank Times reported Error NO DATASET