-
Global information
- Generated on Fri Aug 15 03:00:41 2025
- Log file: /home/postgres/pg_data/data/pg_log/postgresql-2025-08-15_040000.log, ..., /home/postgres/pg_data/data/pg_log/postgresql-2025-08-15_043156.log
- Parsed 3,500,707 log entries in 1m40s
- Log start from 2025-08-15 04:00:00 to 2025-08-15 04:59:59
-
Overview
Global Stats
- 2,236 Number of unique normalized queries
- 206,972 Number of queries
- 1h53m32s Total query duration
- 2025-08-15 04:00:00 First query
- 2025-08-15 04:59:59 Last query
- 2,077 queries/s at 2025-08-15 04:45:04 Query peak
- 1h53m32s Total query duration
- 10s7ms Prepare/parse total duration
- 1m19s Bind total duration
- 1h52m2s Execute total duration
- 2 Number of events
- 2 Number of unique normalized events
- 1 Max number of times the same event was reported
- 0 Number of cancellation
- 44 Total number of automatic vacuums
- 58 Total number of automatic analyzes
- 566 Number temporary file
- 143.57 MiB Max size of temporary file
- 7.98 MiB Average size of temporary file
- 4,309 Total number of sessions
- 9 sessions at 2025-08-15 04:31:15 Session peak
- 2d18h56m43s Total duration of sessions
- 55s930ms Average duration of sessions
- 48 Average queries per session
- 1s580ms Average queries duration per session
- 54s349ms Average idle time per session
- 4,307 Total number of connections
- 60 connections/s at 2025-08-15 04:02:38 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 2,077 queries/s Query Peak
- 2025-08-15 04:45:04 Date
SELECT Traffic
Key values
- 2,058 queries/s Query Peak
- 2025-08-15 04:45:04 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 184 queries/s Query Peak
- 2025-08-15 04:30:52 Date
Queries duration
Key values
- 1h53m32s 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 04 206,972 0ms 40s502ms 32ms 3m35s 4m1s 5m28s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 15 04 159,566 26 1ms 6s538ms 10s805ms 17s681ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 15 04 30,299 1,737 16 96 2ms 1s293ms 1s389ms 3s169ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Aug 15 04 27,387 183,542 6.70 13.68% Day Hour Count Average / Second Aug 15 04 4,307 1.20/s Day Hour Count Average Duration Average idle time Aug 15 04 4,309 55s930ms 54s370ms -
Connections
Established Connections
Key values
- 60 connections Connection Peak
- 2025-08-15 04:02:38 Date
Connections per database
Key values
- acaweb_fx Main Database
- 4,307 connections Total
Connections per user
Key values
- postgres Main User
- 4,307 connections Total
Connections per host
Key values
- 192.168.4.142 Main host with 1245 connections
- 4,307 Total connections
Host Count 127.0.0.1 112 192.168.0.216 100 192.168.0.74 1,098 192.168.1.145 79 192.168.1.15 571 192.168.1.20 97 192.168.1.231 20 192.168.1.239 19 192.168.1.90 64 192.168.2.126 62 192.168.2.182 12 192.168.2.205 12 192.168.2.82 52 192.168.3.199 36 192.168.4.142 1,245 192.168.4.150 10 192.168.4.17 1 192.168.4.238 20 192.168.4.33 90 192.168.4.98 330 [local] 277 -
Sessions
Simultaneous sessions
Key values
- 9 sessions Session Peak
- 2025-08-15 04:31:15 Date
Histogram of session times
Key values
- 3,366 0-500ms duration
Sessions per database
Key values
- acaweb_fx Main Database
- 4,309 sessions Total
Sessions per user
Key values
- postgres Main User
- 4,309 sessions Total
Sessions per host
Key values
- 192.168.4.142 Main Host
- 4,309 sessions Total
Host Count Total Duration Average Duration 127.0.0.1 112 5s628ms 50ms 192.168.0.216 100 42s923ms 429ms 192.168.0.74 1,098 5h18m24s 17s399ms 192.168.1.145 80 8h9m9s 6m6s 192.168.1.15 571 6h40m13s 42s55ms 192.168.1.20 98 14h50m5s 9m4s 192.168.1.231 20 9h53m34s 29m40s 192.168.1.239 19 164ms 8ms 192.168.1.90 64 34s682ms 541ms 192.168.2.126 62 6s189ms 99ms 192.168.2.182 12 1s90ms 90ms 192.168.2.205 12 580ms 48ms 192.168.2.82 52 1h45m5s 2m1s 192.168.3.199 36 1s57ms 29ms 192.168.4.142 1,245 10m36s 510ms 192.168.4.150 10 20h3m12s 2h19s 192.168.4.17 1 167ms 167ms 192.168.4.238 20 40s939ms 2s46ms 192.168.4.33 90 1m12s 800ms 192.168.4.98 330 13s75ms 39ms [local] 277 2m42s 586ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 15,142 buffers Checkpoint Peak
- 2025-08-15 04:09:14 Date
- 209.939 seconds Highest write time
- 0.004 seconds Sync time
Checkpoints Wal files
Key values
- 6 files Wal files usage Peak
- 2025-08-15 04:09:14 Date
Checkpoints distance
Key values
- 181.34 Mo Distance Peak
- 2025-08-15 04: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 04 60,071 1,962.304s 0.03s 1,962.641s Day Hour Added Removed Recycled Synced files Longest sync Average sync Aug 15 04 0 0 24 1,999 0.003s 0s Day Hour Count Avg time (sec) Aug 15 04 0 0s Day Hour Mean distance Mean estimate Aug 15 04 32,244.75 kB 67,057.50 kB -
Temporary Files
Size of temporary files
Key values
- 169.96 MiB Temp Files size Peak
- 2025-08-15 04:20:07 Date
Number of temporary files
Key values
- 30 per second Temp Files Peak
- 2025-08-15 04:17:08 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Aug 15 04 566 4.41 GiB 7.98 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 108 466.18 MiB 3.23 MiB 9.38 MiB 4.32 MiB with rar_max as ( ;-
WITH rar_max as ( ;
Date: 2025-08-15 04:32:12 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver
2 42 1.66 GiB 3.06 MiB 143.57 MiB 40.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 = ? ), 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 04:00:08 Duration: 6s290ms 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 04:30:08 Duration: 5s713ms 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 04:40:08 Duration: 5s348ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown]
3 16 489.73 MiB 30.60 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 04:01:13 Duration: 1s758ms 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 04:31:13 Duration: 1s679ms 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 04:11:13 Duration: 1s607ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
4 16 878.75 MiB 54.92 MiB 54.92 MiB 54.92 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 04:31:17 Duration: 3s414ms 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 04:01:16 Duration: 2s121ms 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 04:16:15 Duration: 2s22ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
5 8 540.82 MiB 67.60 MiB 67.61 MiB 67.60 MiB select updateresultsmaterializedview ();-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:50:36 Duration: 3s274ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:02:14 Duration: 2s810ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:32:15 Duration: 2s771ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
6 4 327.58 MiB 81.85 MiB 81.95 MiB 81.89 MiB select updateageforrelevantresults ();-
select updateageforrelevantresults ();
Date: 2025-08-15 04:32:13 Duration: 10s321ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:47:12 Duration: 9s893ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:02:12 Duration: 9s726ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
7 1 4.00 MiB 4.00 MiB 4.00 MiB 4.00 MiB 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;-
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 = $1 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 = $2 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 ($3 = 0 OR s.timegranularity in ($4, $5, $6, $7, $8, $9, $10)) AND ($11 = 0 OR s.exchange in ($12)) AND ($13 = 0 OR coalesce(bim.code, s.symbol) in ($14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223, $224, $225, $226)) AND ($227 = 0 OR fr.pattern in ($228)) AND ($229 = 0 OR fr.patternlengthbars <= $230) AND ($231 = 0 OR ($232 = 1 AND fr.timed > cast('1970-01-01' as timestamp)) OR ($233 = 2 AND fr.timed < cast('1970-01-01' as timestamp)))), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results WHERE (FALSE = $234 OR relevant = 1) AND ($235 = 0 OR age <= $236) ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 04:42:13 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver
8 1 9.35 MiB 9.35 MiB 9.35 MiB 9.35 MiB jr.resultuid as resultuid, jr.direction as direction, jr.patternendtime as identified, jr.patternlengthbars as length, jr.patternstarttime as patternstarttime, case when jr.trendchangeid = ? then ? else ? end as trendchange, 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, jp.patternname as pattern_name, dtt.timezone as timezone, ? as age, cps.pip, g.basegroupname from japsticks_results jr inner join brokersymbollist bsl on bsl.brokerid = ? and bsl.symbolid = jr.symbolid inner join relevance_japsticks_results rar on rar.resultuid = jr.resultuid inner join symbols s on jr.symbolid = s.symbolid and s.nonliquid = ? inner join japsticks_patterns jp on jr.patternid = jp.id inner join downloadersymbolsettings dss on jr.symbolid = dss.symbolid inner join datafeedstimetable dtt on dss.classname = dtt.classname and dtt.dayofweek = ? 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 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 jr.gmttimefound > now() - interval ? and s.deleted = ? and (jr.simulation = ? or jr.simulation is null) and (rar.relevant = ?) --and (semicolon_age = ? or rar.age <= semicolon_age) and (? = ? or s.timegranularity in (...)) and (? = ? or s.exchange in (...)) and (? = ? or coalesce(bim.code, s.symbol) in (...)) and (? = ? or jp.patternname in (...)) and (? = ? or jr.patternlengthbars <= ?) ), results as ( select distinct on (symbolid) * from all_results order by symbolid, resultuid ) select * from results order by identified desc, length desc ;-
jr.resultuid AS resultuid, jr.direction AS direction, jr.patternendtime AS identified, jr.patternlengthbars AS length, jr.patternstarttime AS patternstarttime, case when jr.trendchangeid = 1 then 'Continuation' else 'Reversal' end AS trendchange, 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, jp.patternname AS pattern_name, dtt.timezone AS timezone, 0 AS age, cps.pip, g.basegroupname FROM japsticks_results jr INNER JOIN brokersymbollist bsl ON bsl.brokerid = $1 AND bsl.symbolid = jr.symbolid INNER JOIN relevance_japsticks_results rar ON rar.resultuid = jr.resultuid INNER JOIN symbols s ON jr.symbolid = s.symbolid AND s.nonliquid = 0 INNER JOIN japsticks_patterns jp ON jr.patternid = jp.id INNER JOIN downloadersymbolsettings dss ON jr.symbolid = dss.symbolid INNER JOIN datafeedstimetable dtt ON dss.classname = dtt.classname AND dtt.dayofweek = 3 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 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 jr.gmttimefound > now() - INTERVAL '7 DAYS' AND s.deleted = 0 AND (jr.simulation = 0 OR jr.simulation IS NULL) AND (rar.relevant = 1) --AND (semicolon_age = 0 OR rar.age <= semicolon_age) AND ($2 = 0 OR s.timegranularity in ($3)) AND ($4 = 0 OR s.exchange in ($5)) AND ($6 = 0 OR coalesce(bim.code, s.symbol) in ($7)) AND ($8 = 0 OR jp.patternname in ($9)) AND ($10 = 0 OR jr.patternlengthbars <= $11)), results AS ( SELECT DISTINCT ON (symbolid) * FROM all_results ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC;
Date: 2025-08-15 04:31:49 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver
Queries generating the largest temporary files
Rank Size Query 1 143.57 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 04:30:07 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
2 96.94 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 04:10:05 ]
3 95.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 04:00:08 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
4 93.38 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 04:10:05 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
5 91.80 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 04:50:03 ]
6 90.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 04:20:04 ]
7 83.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 04:50:03 ]
8 81.95 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 04:02:04 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
9 81.93 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 04:32:04 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
10 81.86 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 04:47:04 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
11 81.85 MiB select updateageforrelevantresults ();[ Date: 2025-08-15 04:17:04 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
12 81.18 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 04:40:04 ]
13 79.80 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 04:20:07 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.90 - Application: [unknown] ]
14 71.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 04:40:04 ]
15 67.61 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 04:32:13 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
16 67.61 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 04:02:12 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
17 67.60 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 04:47:12 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
18 67.60 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 04:17:12 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
19 67.60 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 04:35:33 - Database: acaweb_fx - User: postgres - Remote: [local] - Application: psql ]
20 67.60 MiB select updateresultsmaterializedview ();[ Date: 2025-08-15 04:50:33 - 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)
- 58 analyzes Total
Table Number of analyzes acaweb_fx.public.solr_relevance_old 16 acaweb_fx.pg_catalog.pg_attribute 7 acaweb_fx.pg_catalog.pg_class 4 acaweb_fx.public.relevance_fibonacci_results 4 acaweb_fx.pg_catalog.pg_type 4 acaweb_fx.public.relevance_autochartist_results 4 acaweb_fx.public.datafeeds_latestrun 3 acaweb_fx.public.relevance_keylevels_results 3 acaweb_fx.pg_catalog.pg_index 2 acaweb_fx.public.autochartist_symbolupdates 2 acaweb_fx.pg_catalog.pg_depend 2 acaweb_fx.public.latest_t15_candle_view 2 socialmedia.public.processes 1 acaweb_fx.public.latest_candle_datetime_per_receng 1 acaweb_fx.public.sa_hist_bigmove 1 acaweb_fx.public.relevance_consecutivecandles_results 1 acaweb_fx.public.bigmovement_results_underlying 1 Total 58 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 20 15,517 0 75 0 274 8,533 334 2,693,721 acaweb_fx.public.datafeeds_latestrun 3 0 343 0 15 0 0 49 14 49,169 acaweb_fx.public.relevance_fibonacci_results 3 3 4,010 0 89 0 147 537 72 269,390 acaweb_fx.pg_toast.pg_toast_2619 2 2 359 0 72 0 0 221 69 280,866 acaweb_fx.public.relevance_keylevels_results 2 2 8,106 0 230 0 182 1,941 698 2,213,480 acaweb_fx.pg_catalog.pg_class 2 2 750 0 96 0 75 259 94 408,749 acaweb_fx.pg_catalog.pg_index 1 1 90 0 11 0 0 27 10 75,236 acaweb_fx.public.autochartist_symbolupdates 1 1 23,060 0 3,853 0 38,572 6,221 4,536 1,930,941 acaweb_fx.public.solr_imports 1 1 43 0 2 0 0 6 2 14,037 acaweb_fx.pg_catalog.pg_attribute 1 1 892 0 155 0 67 383 152 875,781 acaweb_fx.public.latest_t15_candle_view 1 1 65 0 1 0 0 6 1 9,049 acaweb_fx.public.sa_hist_bigmove 1 1 5,326 0 1,034 0 185 1,668 1,032 2,704,493 acaweb_fx.pg_catalog.pg_type 1 1 148 0 20 0 0 56 20 93,738 acaweb_fx.pg_catalog.pg_statistic 1 1 1,040 0 237 0 588 504 216 831,621 acaweb_fx.public.bigmovement_results_underlying 1 1 2,887 0 483 0 0 839 610 1,619,379 acaweb_fx.public.relevance_autochartist_results 1 1 3,443 0 237 2 256 626 468 1,365,665 Total 44 39 66,079 48,443 6,610 2 40,346 21,876 8,328 15,435,315 Tuples removed per table
Key values
- public.solr_relevance_old (23927) Main table with removed tuples on database acaweb_fx
- 46922 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain acaweb_fx.public.solr_relevance_old 22 20 23,927 149,999 21,157 0 4,298 acaweb_fx.public.sa_hist_bigmove 1 1 12,125 55,196 0 0 1,304 acaweb_fx.public.autochartist_symbolupdates 1 1 5,435 43,906 0 0 40,691 acaweb_fx.public.relevance_keylevels_results 2 2 1,645 25,102 0 0 558 acaweb_fx.pg_catalog.pg_attribute 1 1 1,296 9,373 0 0 250 acaweb_fx.pg_catalog.pg_statistic 1 1 681 4,041 0 0 1,194 acaweb_fx.public.relevance_fibonacci_results 3 3 406 4,685 203 0 306 acaweb_fx.public.relevance_autochartist_results 1 1 333 8,673 0 0 380 acaweb_fx.pg_catalog.pg_class 2 2 258 4,017 59 0 300 acaweb_fx.public.bigmovement_results_underlying 1 1 232 5,844 0 0 229 acaweb_fx.pg_toast.pg_toast_2619 2 2 160 346 8 0 106 acaweb_fx.public.datafeeds_latestrun 3 0 160 63 21 0 48 acaweb_fx.pg_catalog.pg_type 1 1 132 1,338 0 0 38 acaweb_fx.public.latest_t15_candle_view 1 1 62 14 0 0 1 acaweb_fx.public.solr_imports 1 1 52 1 0 0 2 acaweb_fx.pg_catalog.pg_index 1 1 18 813 0 0 22 Total 44 39 46,922 313,411 21,448 0 49,727 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed acaweb_fx.pg_toast.pg_toast_2619 2 2 160 0 acaweb_fx.pg_catalog.pg_index 1 1 18 0 acaweb_fx.public.autochartist_symbolupdates 1 1 5435 0 acaweb_fx.public.datafeeds_latestrun 3 0 160 0 acaweb_fx.public.solr_imports 1 1 52 0 acaweb_fx.pg_catalog.pg_attribute 1 1 1296 0 acaweb_fx.public.latest_t15_candle_view 1 1 62 0 acaweb_fx.public.relevance_keylevels_results 2 2 1645 0 acaweb_fx.pg_catalog.pg_class 2 2 258 0 acaweb_fx.public.relevance_fibonacci_results 3 3 406 0 acaweb_fx.public.sa_hist_bigmove 1 1 12125 0 acaweb_fx.pg_catalog.pg_type 1 1 132 0 acaweb_fx.pg_catalog.pg_statistic 1 1 681 0 acaweb_fx.public.bigmovement_results_underlying 1 1 232 0 acaweb_fx.public.solr_relevance_old 22 20 23927 0 acaweb_fx.public.relevance_autochartist_results 1 1 333 0 Total 44 39 46,922 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Aug 15 04 44 58 - 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
- 159,566 Total read queries
- 40,601 Total write queries
Queries by database
Key values
- acaweb_fx Main database
- 199,136 Requests
- 1h51m54s (acaweb_fx)
- Main time consuming database
Database Request type Count Duration acaweb_fx Total 199,136 1h51m54s copy from 96 5s690ms copy to 26 4s900ms cte 7,751 1h46m12s ddl 16 464ms delete 16 24ms insert 22,883 27s394ms others 6,805 7s985ms select 159,206 4m30s tcl 660 186ms update 1,677 24s656ms socialmedia Total 7,836 8s603ms insert 7,416 8s269ms select 360 233ms update 60 99ms Queries by user
Key values
- postgres Main user
- 206,972 Requests
User Request type Count Duration postgres Total 206,972 1h52m2s copy from 96 5s690ms copy to 26 4s900ms cte 7,751 1h46m12s ddl 16 464ms delete 16 24ms insert 30,299 35s664ms others 6,805 7s985ms select 159,566 4m30s tcl 660 186ms update 1,737 24s755ms Duration by user
Key values
- 1h52m2s (postgres) Main time consuming user
User Request type Count Duration postgres Total 206,972 1h52m2s copy from 96 5s690ms copy to 26 4s900ms cte 7,751 1h46m12s ddl 16 464ms delete 16 24ms insert 30,299 35s664ms others 6,805 7s985ms select 159,566 4m30s tcl 660 186ms update 1,737 24s755ms Queries by host
Key values
- 192.168.0.74 Main host
- 129,232 Requests
- 27m41s (192.168.1.20)
- Main time consuming host
Host Request type Count Duration 127.0.0.1 Total 9,416 34s465ms copy to 26 4s900ms cte 24 204ms insert 7,342 9s445ms select 854 19s133ms update 1,170 780ms 182.165.1.42 Total 190 6m57s cte 60 6m57s select 130 144ms 192.168.0.216 Total 400 334ms others 200 20ms select 192 205ms update 8 109ms 192.168.0.239 Total 337 336ms select 337 336ms 192.168.0.42 Total 1,355 655ms insert 459 35ms select 896 619ms 192.168.0.74 Total 129,232 24m28s cte 4,463 22m28s others 2,196 31ms select 122,573 2m 192.168.1.135 Total 70 111ms cte 7 56ms select 63 54ms 192.168.1.145 Total 13,589 26m13s cte 794 26m1s others 158 1ms select 12,637 12s261ms 192.168.1.15 Total 8,446 21m31s cte 1,465 21m26s others 1,142 12ms select 5,839 4s164ms 192.168.1.20 Total 12,193 27m41s cte 815 27m30s others 194 2ms select 11,184 10s863ms 192.168.1.201 Total 1,148 999ms select 1,148 999ms 192.168.1.23 Total 1,413 1s108ms select 1,413 1s108ms 192.168.1.231 Total 40 0ms others 40 0ms 192.168.1.239 Total 76 49ms others 38 3ms select 38 46ms 192.168.1.90 Total 117 32s374ms cte 6 32s285ms others 31 0ms select 79 86ms update 1 2ms 192.168.2.126 Total 80 66ms others 18 0ms select 62 66ms 192.168.2.182 Total 48 290ms others 24 2ms select 12 11ms update 12 276ms 192.168.2.205 Total 138 112ms insert 90 7ms others 24 2ms select 20 22ms update 4 79ms 192.168.2.82 Total 4,126 11s751ms insert 3,598 9s73ms others 104 10ms select 338 2s60ms update 86 607ms 192.168.3.199 Total 144 217ms others 72 7ms select 60 62ms update 12 147ms 192.168.4.142 Total 15,157 9s887ms insert 11,394 8s832ms others 2,490 27ms select 1,273 1s27ms 192.168.4.150 Total 22 978ms others 21 0ms select 1 978ms 192.168.4.17 Total 3 43ms cte 1 43ms others 2 0ms 192.168.4.238 Total 60 39s606ms cte 20 39s605ms others 40 0ms 192.168.4.33 Total 7,836 8s603ms insert 7,416 8s269ms select 360 233ms update 60 99ms 192.168.4.98 Total 996 8s410ms others 6 7s554ms select 6 27ms tcl 660 186ms update 324 641ms [local] Total 340 2m39s copy from 96 5s690ms cte 96 35s33ms ddl 16 464ms delete 16 24ms others 5 306ms select 51 1m35s update 60 22s12ms Queries by application
Key values
- PostgreSQL JDBC Driver Main application
- 179,968 Requests
- 1h40m48s (PostgreSQL JDBC Driver)
- Main time consuming application
Application Request type Count Duration PostgreSQL JDBC Driver Total 179,968 1h40m48s cte 7,565 1h38m6s insert 11,853 8s867ms others 3,153 41ms select 157,397 2m33s [unknown] Total 26,552 8m29s cte 66 7m30s insert 18,446 26s796ms others 3,647 7s637ms select 2,066 21s909ms tcl 660 186ms update 1,667 2s722ms psql Total 452 2m44s copy from 96 5s690ms copy to 26 4s900ms cte 120 35s238ms ddl 16 464ms delete 16 24ms others 5 306ms select 103 1m35s update 70 22s32ms Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-08-15 04:41:34 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 128,168 0-1ms duration
Slowest individual queries
Rank Duration Query 1 40s502ms 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 04:31:49 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
2 37s894ms 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 04:32:36 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
3 37s467ms 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 04:17:41 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
4 36s538ms 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 04:54:11 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
5 36s434ms 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 04:44:50 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
6 36s82ms 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 04:58:20 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
7 35s836ms 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 04:03:09 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
8 35s512ms 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 04:44:14 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
9 35s475ms 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 04:51:26 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
10 35s367ms 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 04:19:28 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
11 35s309ms 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 04:06:58 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
12 34s895ms 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 04:25:39 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
13 22s276ms 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 ('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 p.patternname in ('')) AND ('2' = 0 OR kr.patternclassid in ('1', '2')) AND ('400' = 0 OR kr.patternlengthbars <= '400') 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 ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 04:11:14 - Database: acaweb_fx - User: postgres - Remote: 182.165.1.42 - Application: [unknown] - Bind query: yes ]
14 21s318ms 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 04:31:24 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.145 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
15 20s813ms 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 ('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 p.patternname in ('')) AND ('2' = 0 OR kr.patternclassid in ('1', '2')) AND ('400' = 0 OR kr.patternlengthbars <= '400') 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 ('10' = 0 OR age <= '10') ORDER BY symbolid, resultuid ) SELECT * from results ORDER BY identified DESC, length DESC LIMIT 200;[ Date: 2025-08-15 04:31:16 - Database: acaweb_fx - User: postgres - Remote: 182.165.1.42 - Application: [unknown] - Bind query: yes ]
16 19s651ms 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 04:31:30 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.20 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
17 18s831ms 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 04:10:53 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.145 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
18 18s195ms 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 = '689' 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 ('310' = 0 OR coalesce(bim.code, s.symbol) in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LMT', '#MA', '#MCD', '#META', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#RWE', '#SAP', '#SIE', '#T', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#T', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('700' = 0 OR ar.patternlengthbars <= '700') 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 04:42:37 - Database: acaweb_fx - User: postgres - Remote: 192.168.0.74 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
19 18s85ms 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 = '689' 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 ('400' = 0 OR ar.patternlengthbars <= '400') 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 04:55:48 - Database: acaweb_fx - User: postgres - Remote: 182.165.1.42 - Application: [unknown] - Bind query: yes ]
20 18s19ms 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 = '689' 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 ('310' = 0 OR coalesce(bim.code, s.symbol) in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LMT', '#MA', '#MCD', '#META', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#RWE', '#SAP', '#SIE', '#T', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#T', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR ar.pattern in ('')) AND ('0' = 0 OR ('0' = 1 AND ar.breakout >= 0) OR ('0' = 2 AND ar.breakout < 0)) AND ('700' = 0 OR ar.patternlengthbars <= '700') 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 04:42:38 - Database: acaweb_fx - User: postgres - Remote: 192.168.1.15 - Application: PostgreSQL JDBC Driver - Bind query: yes ]
Time consuming queries
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 47m17s 354 176ms 40s502ms 8s16ms 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 04 354 47m17s 8s16ms [ User: postgres - Total duration: 47m17s - Times executed: 354 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 44m19s - Times executed: 342 ]
[ Application: [unknown] - Total duration: 2m58s - 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 04:31:49 Duration: 40s502ms 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 04:32:36 Duration: 37s894ms 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_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 04:17:41 Duration: 37s467ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
2 41m15s 352 367ms 21s318ms 7s31ms 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 04 352 41m15s 7s31ms [ User: postgres - Total duration: 41m15s - Times executed: 352 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 38m22s - Times executed: 340 ]
[ Application: [unknown] - Total duration: 2m52s - 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 04:31:24 Duration: 21s318ms 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_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 04:31:30 Duration: 19s651ms 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 = '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 04:10:53 Duration: 18s831ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
3 13m50s 314 576ms 8s794ms 2s644ms 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 04 314 13m50s 2s644ms [ User: postgres - Total duration: 13m50s - Times executed: 314 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 12m49s - Times executed: 302 ]
[ Application: [unknown] - Total duration: 1m - 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 = '689' 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 ('310' = 0 OR coalesce(bim.code, s.symbol) in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LMT', '#MA', '#MCD', '#META', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#RWE', '#SAP', '#SIE', '#T', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#T', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('700' = 0 OR fr.patternlengthbars <= '700') 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 04:55:35 Duration: 8s794ms 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_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 = '689' 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 ('0' = 0 OR coalesce(bim.code, s.symbol) in ('')) AND ('0' = 0 OR fr.pattern in ('')) AND ('400' = 0 OR fr.patternlengthbars <= '400') 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 04:30:55 Duration: 7s753ms Database: acaweb_fx User: postgres Remote: 182.165.1.42 Application: [unknown] 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 04:42:20 Duration: 6s373ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
4 1m20s 37,076 0ms 25ms 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 04 37,076 1m20s 2ms [ User: postgres - Total duration: 1m20s - Times executed: 37076 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m20s - Times executed: 37076 ]
-
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 = 'USDSGD' OR dss.downloadersymbol = 'USDSGD') AND dss.enabled = 1;
Date: 2025-08-15 04:00:02 Duration: 25ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = 'NZDCHF' OR dss.downloadersymbol = 'NZDCHF') AND dss.enabled = 1;
Date: 2025-08-15 04:00:02 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = 'Telefonica' OR dss.downloadersymbol = 'Telefonica') AND dss.enabled = 1;
Date: 2025-08-15 04:24:06 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
5 1m1s 211 82ms 896ms 290ms 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 #5
Day Hour Count Duration Avg duration Aug 15 04 211 1m1s 290ms [ User: postgres - Total duration: 1m1s - Times executed: 211 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 54s932ms - Times executed: 199 ]
[ Application: [unknown] - Total duration: 6s258ms - 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 04:57:56 Duration: 896ms 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_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 ('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 ('400' = 0 OR ccr.patternlengthbars <= '400') ), 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 04:21:05 Duration: 842ms Database: acaweb_fx User: postgres Remote: 182.165.1.42 Application: [unknown] 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 ('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 ('400' = 0 OR ccr.patternlengthbars <= '400') ), 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 04:31:18 Duration: 830ms Database: acaweb_fx User: postgres Remote: 182.165.1.42 Application: [unknown] Bind query: yes
6 1m 50,995 0ms 39ms 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 #6
Day Hour Count Duration Avg duration Aug 15 04 50,995 1m 1ms [ User: postgres - Total duration: 1m - Times executed: 50995 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m - Times executed: 50995 ]
-
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 = '667' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '667' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '500991628274886200';
Date: 2025-08-15 04:00:02 Duration: 39ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = '958' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '958' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840233387312300';
Date: 2025-08-15 04:28:23 Duration: 16ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 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 = '958' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '958' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840243160507300';
Date: 2025-08-15 04:10:10 Duration: 16ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
7 51s275ms 150 87ms 1s110ms 341ms 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 04 150 51s275ms 341ms [ User: postgres - Total duration: 51s275ms - Times executed: 150 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 51s275ms - 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 04:24:08 Duration: 1s110ms 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 04:24:08 Duration: 1s77ms 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 04:00:03 Duration: 913ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
8 39s605ms 20 1s333ms 2s804ms 1s980ms 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 04 20 39s605ms 1s980ms [ User: postgres - Total duration: 39s605ms - Times executed: 20 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 39s605ms - Times executed: 20 ]
-
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 04:22:09 Duration: 2s804ms 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 04:22:18 Duration: 2s769ms 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 = '617' 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 = '617')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '617'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '617' 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 = '617' 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 04:36:53 Duration: 2s678ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
9 39s572ms 4 9s631ms 10s321ms 9s893ms select updateageforrelevantresults ();Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 15 04 4 39s572ms 9s893ms [ User: postgres - Total duration: 39s572ms - Times executed: 4 ]
[ Application: psql - Total duration: 39s572ms - Times executed: 4 ]
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:32:13 Duration: 10s321ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:47:12 Duration: 9s893ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:02:12 Duration: 9s726ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
10 33s106ms 16 1s932ms 3s414ms 2s69ms 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 #10
Day Hour Count Duration Avg duration Aug 15 04 16 33s106ms 2s69ms [ User: postgres - Total duration: 33s106ms - Times executed: 16 ]
[ Application: psql - Total duration: 33s106ms - 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 04:31:17 Duration: 3s414ms 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 04:01:16 Duration: 2s121ms 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 04:16:15 Duration: 2s22ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
11 32s285ms 6 4s846ms 6s290ms 5s380ms 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 #11
Day Hour Count Duration Avg duration Aug 15 04 6 32s285ms 5s380ms [ User: postgres - Total duration: 32s285ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 32s285ms - 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 04:00:08 Duration: 6s290ms 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 04:30:08 Duration: 5s713ms 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 04:40:08 Duration: 5s348ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
12 29s132ms 34 12ms 10s630ms 856ms select fixcandlegaps (?, false);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Aug 15 04 34 29s132ms 856ms [ User: postgres - Total duration: 29s132ms - Times executed: 34 ]
[ Application: psql - Total duration: 29s132ms - Times executed: 34 ]
-
select fixcandlegaps ('ICMARKETS-AU-MT5', false);
Date: 2025-08-15 04:06:30 Duration: 10s630ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('ATFX', false);
Date: 2025-08-15 04:06:08 Duration: 3s685ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('AXIORY', false);
Date: 2025-08-15 04:06:11 Duration: 2s707ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
13 22s558ms 8 2s718ms 3s274ms 2s819ms select updateresultsmaterializedview ();Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Aug 15 04 8 22s558ms 2s819ms [ User: postgres - Total duration: 22s558ms - Times executed: 8 ]
[ Application: psql - Total duration: 22s558ms - Times executed: 8 ]
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:50:36 Duration: 3s274ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:02:14 Duration: 2s810ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:32:15 Duration: 2s771ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
14 21s575ms 16 1s250ms 1s758ms 1s348ms 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 #14
Day Hour Count Duration Avg duration Aug 15 04 16 21s575ms 1s348ms [ User: postgres - Total duration: 21s575ms - Times executed: 16 ]
[ Application: psql - Total duration: 21s575ms - 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 04:01:13 Duration: 1s758ms 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 04:31:13 Duration: 1s679ms 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 04:11:13 Duration: 1s607ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
15 10s68ms 149 15ms 208ms 67ms 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 04 149 10s68ms 67ms [ User: postgres - Total duration: 10s68ms - Times executed: 149 ]
[ Application: [unknown] - Total duration: 10s68ms - Times executed: 149 ]
-
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 'FPMARKETS - 1';
Date: 2025-08-15 04:31:17 Duration: 208ms 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 04:31:07 Duration: 173ms 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 'ATFX - 1';
Date: 2025-08-15 04:31:05 Duration: 169ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
16 8s833ms 149 16ms 255ms 59ms 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 04 149 8s833ms 59ms [ User: postgres - Total duration: 8s833ms - Times executed: 149 ]
[ Application: [unknown] - Total duration: 8s833ms - Times executed: 149 ]
-
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 'FPMARKETS - 1';
Date: 2025-08-15 04:31:16 Duration: 255ms 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 'HOTFOREX - 1';
Date: 2025-08-15 04:31:12 Duration: 242ms 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 'ATFX - 1';
Date: 2025-08-15 04:31:04 Duration: 186ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
17 7s903ms 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 04 7,140 7s903ms 1ms [ User: postgres - Total duration: 7s903ms - Times executed: 7140 ]
[ Application: [unknown] - Total duration: 7s903ms - Times executed: 7140 ]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 152, schedule: 0 8 * * 1 Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 04:00:55 Duration: 3ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 53, schedule: 0 8 * * 1 Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 04:27:49 Duration: 3ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 116, schedule: 1 * * * * Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 04:00:55 Duration: 2ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
18 7s554ms 6 1s29ms 1s843ms 1s259ms refresh materialized view concurrently latest_t15_candle_view;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Aug 15 04 6 7s554ms 1s259ms [ User: postgres - Total duration: 7s554ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 7s554ms - Times executed: 6 ]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 04:31:18 Duration: 1s843ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 04:01:18 Duration: 1s319ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 04:16:17 Duration: 1s243ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
19 5s987ms 4,549 0ms 40ms 1ms 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 #19
Day Hour Count Duration Avg duration Aug 15 04 4,549 5s987ms 1ms [ User: postgres - Total duration: 5s987ms - Times executed: 4549 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 5s987ms - Times executed: 4549 ]
-
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 = '606632156081193301' 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 = '606632156081193301' OR a.resultuid = '606632156081193301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:30:54 Duration: 40ms 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 ) 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 = '606603974567587301' 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 = '606603974567587301' OR a.resultuid = '606603974567587301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:30:54 Duration: 38ms 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 = '606620938355300301' 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 = '606620938355300301' OR a.resultuid = '606620938355300301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:30:54 Duration: 31ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
20 5s953ms 5,700 0ms 9ms 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 #20
Day Hour Count Duration Avg duration Aug 15 04 5,700 5s953ms 1ms [ User: postgres - Total duration: 5s953ms - Times executed: 5700 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 5s953ms - Times executed: 5700 ]
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 05:30:00', '1.795485', '1.795685', '1.794525', '1.794595', '904', '605679104142610300', '0', '2025-08-15 04:45:19.354', '2025-08-15 04:45:19.284') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '1.795485', high = '1.795685', low = '1.794525', close = '1.794595', volume = '904', bsf = '0', sastdatetimewritten = '2025-08-15 04:45:19.354', sastdatetimereceived = '2025-08-15 04:45:19.284';
Date: 2025-08-15 04:45:19 Duration: 9ms 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 05:15:00', '3.65448', '3.65663', '3.65448', '3.65623', '226', '515840247873611300', '0', '2025-08-15 04:30:58.253', '2025-08-15 04:30:58.113') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '3.65448', high = '3.65663', low = '3.65448', close = '3.65623', volume = '226', bsf = '0', sastdatetimewritten = '2025-08-15 04:30:58.253', sastdatetimereceived = '2025-08-15 04:30:58.113';
Date: 2025-08-15 04:30:58 Duration: 9ms 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 05:15:00', '4.25924', '4.25944', '4.25869', '4.25931', '358', '515840243918956300', '0', '2025-08-15 04:31:01.117', '2025-08-15 04:31:00.978') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '4.25924', high = '4.25944', low = '4.25869', close = '4.25931', volume = '358', bsf = '0', sastdatetimewritten = '2025-08-15 04:31:01.117', sastdatetimereceived = '2025-08-15 04:31:00.978';
Date: 2025-08-15 04:31:01 Duration: 9ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 63,546 253ms 0ms 0ms 0ms select ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 15 04 63,546 253ms 0ms [ User: postgres - Total duration: 253ms - Times executed: 63546 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 241ms - Times executed: 63303 ]
[ Application: [unknown] - Total duration: 11ms - Times executed: 243 ]
-
select 1;
Date: 2025-08-15 04:17:31 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 04:31:21 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
-
select 1;
Date: 2025-08-15 04:00:05 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
2 50,995 1m 0ms 39ms 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 04 50,995 1m 1ms [ User: postgres - Total duration: 1m - Times executed: 50995 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m - Times executed: 50995 ]
-
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 = '667' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '667' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '500991628274886200';
Date: 2025-08-15 04:00:02 Duration: 39ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = '958' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '958' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840233387312300';
Date: 2025-08-15 04:28:23 Duration: 16ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 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 = '958' AND bsl.symbolid = s.symbolid LEFT OUTER JOIN brokerinstrumentmap bim ON dss.datafeedinstrumentid = bim.datafeedinstrumentid AND bim.brokerid = '958' AND bim.TYPE = 'OUTBOUND' WHERE s.symbolid = '515840243160507300';
Date: 2025-08-15 04:10:10 Duration: 16ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
3 37,076 1m20s 0ms 25ms 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 04 37,076 1m20s 2ms [ User: postgres - Total duration: 1m20s - Times executed: 37076 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m20s - Times executed: 37076 ]
-
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 = 'USDSGD' OR dss.downloadersymbol = 'USDSGD') AND dss.enabled = 1;
Date: 2025-08-15 04:00:02 Duration: 25ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = 'NZDCHF' OR dss.downloadersymbol = 'NZDCHF') AND dss.enabled = 1;
Date: 2025-08-15 04:00:02 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = 'Telefonica' OR dss.downloadersymbol = 'Telefonica') AND dss.enabled = 1;
Date: 2025-08-15 04:24:06 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
4 7,140 7s903ms 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 04 7,140 7s903ms 1ms [ User: postgres - Total duration: 7s903ms - Times executed: 7140 ]
[ Application: [unknown] - Total duration: 7s903ms - Times executed: 7140 ]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 152, schedule: 0 8 * * 1 Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 04:00:55 Duration: 3ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 53, schedule: 0 8 * * 1 Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 04:27:49 Duration: 3ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
-
INSERT INTO executionlogs (executionid, status, message, details, detailtype) VALUES (NULL, 'info', 'evaluating processid: 116, schedule: 1 * * * * Africa/Johannesburg', NULL, NULL);
Date: 2025-08-15 04:00:55 Duration: 2ms Database: socialmedia User: postgres Remote: 192.168.4.33 Application: [unknown]
5 5,700 5s953ms 0ms 9ms 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 04 5,700 5s953ms 1ms [ User: postgres - Total duration: 5s953ms - Times executed: 5700 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 5s953ms - Times executed: 5700 ]
-
INSERT INTO T15 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 05:30:00', '1.795485', '1.795685', '1.794525', '1.794595', '904', '605679104142610300', '0', '2025-08-15 04:45:19.354', '2025-08-15 04:45:19.284') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '1.795485', high = '1.795685', low = '1.794525', close = '1.794595', volume = '904', bsf = '0', sastdatetimewritten = '2025-08-15 04:45:19.354', sastdatetimereceived = '2025-08-15 04:45:19.284';
Date: 2025-08-15 04:45:19 Duration: 9ms 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 05:15:00', '3.65448', '3.65663', '3.65448', '3.65623', '226', '515840247873611300', '0', '2025-08-15 04:30:58.253', '2025-08-15 04:30:58.113') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '3.65448', high = '3.65663', low = '3.65448', close = '3.65623', volume = '226', bsf = '0', sastdatetimewritten = '2025-08-15 04:30:58.253', sastdatetimereceived = '2025-08-15 04:30:58.113';
Date: 2025-08-15 04:30:58 Duration: 9ms 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 05:15:00', '4.25924', '4.25944', '4.25869', '4.25931', '358', '515840243918956300', '0', '2025-08-15 04:31:01.117', '2025-08-15 04:31:00.978') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '4.25924', high = '4.25944', low = '4.25869', close = '4.25931', volume = '358', bsf = '0', sastdatetimewritten = '2025-08-15 04:31:01.117', sastdatetimereceived = '2025-08-15 04:31:00.978';
Date: 2025-08-15 04:31:01 Duration: 9ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
6 4,549 5s987ms 0ms 40ms 1ms 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 04 4,549 5s987ms 1ms [ User: postgres - Total duration: 5s987ms - Times executed: 4549 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 5s987ms - Times executed: 4549 ]
-
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 = '606632156081193301' 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 = '606632156081193301' OR a.resultuid = '606632156081193301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:30:54 Duration: 40ms 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 ) 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 = '606603974567587301' 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 = '606603974567587301' OR a.resultuid = '606603974567587301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:30:54 Duration: 38ms 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 = '606620938355300301' 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 = '606620938355300301' OR a.resultuid = '606620938355300301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:30:54 Duration: 31ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
7 3,796 5s717ms 0ms 12ms 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 04 3,796 5s717ms 1ms [ User: postgres - Total duration: 5s717ms - Times executed: 3796 ]
[ Application: [unknown] - Total duration: 5s717ms - Times executed: 3796 ]
-
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 ('5158402334861813000.7954|45883.9167|45884.0833|45883.625|45884|8.389|8.382|8.303|8.345', 515840233486181300, 2.000000000000000000000000000000, 'Pennant', 4, '2025-08-15 01:57:16'::timestamp without time zone, - 1, 0.928539116551373333600000000000, 0.795358649789118410400000000000, 0.478585038522077732600000000000, 0.067061143984222665320000000000, 0.754129062125712956700000000000, 8.265997085340366368000000000000, 8.317332118891817672000000000000, '2025-08-15 04:00:00'::timestamp without time zone, '2025-08-15 10:30:00'::timestamp without time zone, '2025-08-13 22:00:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 8.403999999999999914000000000000, 8.363666666666667026000000000000, '2025-08-14 22:00:00'::timestamp without time zone, '2025-08-15 02:00:00'::timestamp without time zone, '2025-08-14 15:00:00'::timestamp without time zone, '2025-08-15 00:00:00'::timestamp without time zone, 8.388999999999999346000000000000, 8.381999999999999673000000000000, 8.303000000000000824000000000000, 8.345000000000000640000000000000, 0.004666666666666646236000000000, - 0.001749999999999918288000000000, 6.790775842120942762000000000000, 0.852741421120495557400000000000, 'Continuation', - 0.009666666666667822483000000000, '2025-08-15 04:00:00'::timestamp without time zone, 8.353999999999999204000000000000, 13, 0, 0.027833333333332710420000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:02:12 Duration: 12ms 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 ('5158402458958413000.3059|45883.8229|45884.1771|45883.5|45884.1667|10.2254|10.213|10.1506|10.2048', 515840245895841300, 5.000000000000000000000000000000, 'Triangle', 4, '2025-08-15 01:56:07'::timestamp without time zone, - 1, 0.291350457526118100600000000000, 0.305870148508466166400000000000, 0.361768027015222704000000000000, 0.490632812738208801200000000000, 0.390045467774485565800000000000, 10.171762079922221034000000000000, 10.191360866634258997000000000000, '2025-08-15 04:30:00'::timestamp without time zone, '2025-08-15 12:45:00'::timestamp without time zone, '2025-08-14 10:00:00'::timestamp without time zone, '2025-08-15 04:30:00'::timestamp without time zone, 10.201879999999999171000000000000, 10.206474062499999889000000000000, '2025-08-14 19:45:00'::timestamp without time zone, '2025-08-15 04:15:00'::timestamp without time zone, '2025-08-14 12:00:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 10.225400000000000489000000000000, 10.213010000000000588000000000000, 10.150570000000000093000000000000, 10.204779999999999518000000000000, 0.000847031249999991020500000000, - 0.000364411764705879434300000000, 1.597848184925183324000000000000, 0.374158315267715258000000000000, 'Continuation', 0.001505937499999276952000000000, '2025-08-15 04:30:00'::timestamp without time zone, 10.205360000000000653000000000000, 66, 0, 0.017280000000000406150000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:01:03 Duration: 11ms 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 ('515840245868922300-1|45882.75|45883.6875|45883.1875|45884.1667|1.7899|1.7947|1.7832|1.7922', 515840245868922300, 3.000000000000000000000000000000, 'Rising Wedge', 4, '2025-08-15 02:26:11'::timestamp without time zone, 1, 0.070088874424648131560000000000, - 1.000000000000000000000000000000, 0.350999890722325402800000000000, 0.475779898274237445000000000000, 0.564682717333262584900000000000, 1.796620344085411824000000000000, 1.798426825804988472000000000000, '2025-08-15 05:00:00'::timestamp without time zone, '2025-08-15 22:30:00'::timestamp without time zone, '2025-08-13 13:00:00'::timestamp without time zone, '2025-08-15 05:00:00'::timestamp without time zone, 1.786969999999999947000000000000, 1.795679999999999943000000000000, '2025-08-13 18:00:00'::timestamp without time zone, '2025-08-14 16:30:00'::timestamp without time zone, '2025-08-14 04:30:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 1.789909999999999890000000000000, 1.794720000000000093000000000000, 1.783230000000000093000000000000, 1.792189999999999950000000000000, 0.000190638297872337391500000000, 0.000106888888888893396400000000, 1.629541805640622787000000000000, 0.386330564494557771000000000000, 'Continuation', 0.000000000000000000000000000000, '2025-08-15 05:00:00'::timestamp without time zone, 1.795330000000000092000000000000, 70, 0, 0.000000000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:31:08 Duration: 11ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
8 3,285 1s721ms 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 04 3,285 1s721ms 0ms [ User: postgres - Total duration: 1s721ms - Times executed: 3285 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s721ms - Times executed: 3285 ]
-
INSERT INTO T30 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 05:00:00', '0.8175', '0.81756', '0.81591', '0.81618', '1688', '515840247885957300', '0', '2025-08-15 04:30:54.333', '2025-08-15 04:30:54.075') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '0.8175', high = '0.81756', low = '0.81591', close = '0.81618', volume = '1688', bsf = '0', sastdatetimewritten = '2025-08-15 04:30:54.333', sastdatetimereceived = '2025-08-15 04:30:54.075';
Date: 2025-08-15 04:30:54 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 05:00:00', '3.65573', '3.65663', '3.65395', '3.65623', '545', '515840247873808300', '0', '2025-08-15 04:30:58.252', '2025-08-15 04:30:58.15') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '3.65573', high = '3.65663', low = '3.65395', close = '3.65623', volume = '545', bsf = '0', sastdatetimewritten = '2025-08-15 04:30:58.252', sastdatetimereceived = '2025-08-15 04:30:58.15';
Date: 2025-08-15 04:30:58 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 05:00:00', '1.3536', '1.354', '1.35344', '1.35358', '1446', '515840247884826300', '0', '2025-08-15 04:30:50.202', '2025-08-15 04:30:50.056') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '1.3536', high = '1.354', low = '1.35344', close = '1.35358', volume = '1446', bsf = '0', sastdatetimewritten = '2025-08-15 04:30:50.202', sastdatetimereceived = '2025-08-15 04:30:50.056';
Date: 2025-08-15 04:30:50 Duration: 8ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
9 3,179 36ms 0ms 6ms 0ms set extra_float_digits = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 15 04 3,179 36ms 0ms [ User: postgres - Total duration: 36ms - Times executed: 3179 ]
[ Application: [unknown] - Total duration: 36ms - Times executed: 3179 ]
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:31:24 Duration: 6ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: [unknown] Bind query: yes
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:31:54 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 04:42:22 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: [unknown] Bind query: yes
10 3,152 41ms 0ms 0ms 0ms set application_name = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Aug 15 04 3,152 41ms 0ms [ User: postgres - Total duration: 41ms - Times executed: 3152 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 41ms - Times executed: 3152 ]
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 04:26:22 Duration: 0ms 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 04:30:23 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 04:00:05 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
11 2,164 945ms 0ms 6ms 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 #11
Day Hour Count Duration Avg duration Aug 15 04 2,164 945ms 0ms [ User: postgres - Total duration: 945ms - Times executed: 2164 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 945ms - Times executed: 2164 ]
-
INSERT INTO T60 (pricedatetime, open, high, low, close, volume, symbolid, bsf, sastdatetimewritten, sastdatetimereceived) VALUES ('2025-08-15 04:00:00', '23803.1', '23817.9', '23797.1', '23813.3', '3865', '515840248039327300', '0', '2025-08-15 04:10:53.197', '2025-08-15 04:10:53.134') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '23803.1', high = '23817.9', low = '23797.1', close = '23813.3', volume = '3865', bsf = '0', sastdatetimewritten = '2025-08-15 04:10:53.197', sastdatetimereceived = '2025-08-15 04:10:53.134';
Date: 2025-08-15 04:10:53 Duration: 6ms 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 04:00:00', '45108.95', '45217.75', '45105.95', '45204.75', '1442', '515840248000890300', '0', '2025-08-15 04:10:55.258', '2025-08-15 04:10:55.171') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '45108.95', high = '45217.75', low = '45105.95', close = '45204.75', volume = '1442', bsf = '0', sastdatetimewritten = '2025-08-15 04:10:55.258', sastdatetimereceived = '2025-08-15 04:10:55.171';
Date: 2025-08-15 04:10:55 Duration: 6ms 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 04:00:00', '0.64972', '0.65015', '0.64911', '0.6496', '2419', '515840247873079300', '0', '2025-08-15 04:00:40.93', '2025-08-15 04:00:40.812') ON CONFLICT (pricedatetime, symbolid) DO UPDATE SET open = '0.64972', high = '0.65015', low = '0.64911', close = '0.6496', volume = '2419', bsf = '0', sastdatetimewritten = '2025-08-15 04:00:40.93', sastdatetimereceived = '2025-08-15 04:00:40.812';
Date: 2025-08-15 04:00:40 Duration: 5ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
12 2,063 985ms 0ms 8ms 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 #12
Day Hour Count Duration Avg duration Aug 15 04 2,063 985ms 0ms [ User: postgres - Total duration: 985ms - Times executed: 2063 ]
[ Application: [unknown] - Total duration: 985ms - Times executed: 2063 ]
-
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, 'ABCD', '2025-08-15 01:56:50'::timestamp without time zone, 1, '2025-08-14 19:00:00'::timestamp without time zone, '2025-08-15 01:45:00'::timestamp without time zone, 38.077100000000001500000000000000, 38.006100000000003550000000000000, 4, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 38.077100000000001500000000000000, '2025-08-14 19:00:00'::timestamp without time zone, 37.975250000000002620000000000000, '2025-08-14 20:15:00'::timestamp without time zone, 38.039200000000001010000000000000, '2025-08-14 23:30:00'::timestamp without time zone, 37.871000000000002220000000000000, '2025-08-15 01:15:00'::timestamp without time zone, 0.466089897617961879100000000000, 0.500000000000000000000000000000, 0.365890083440957858400000000000, 21, 38.039200000000001010000000000000, 37.974953316899338060000000000000, 38.143153316899336860000000000000, 38.003230661745959650000000000000, 38.084953705045897720000000000000, 37.955100000000001620000000000000, 37.935246683100665160000000000000, 515840249741206300, 0.467620390587072276600000000000, 'BC=0.618*AB (0.628) CD=1.618*AB (1.651) ', 0, 'ABCD|1|2025-08-14 19:00:00|38.0771|38.0061|4|21|BC=0.618*AB (0.628)","CD=1.618*AB (1.651)|0|515840249741206300|1899-12-29 00:00:00|2025-08-14 19:00:00|2025-08-14 20:15:00|2025-08-14 23:30:00|2025-08-15 01:15:00', 1, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:01:47 Duration: 8ms 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, 'ABCD', '2025-08-15 01:56:21'::timestamp without time zone, - 1, '2025-08-14 22:00:00'::timestamp without time zone, '2025-08-15 04:45:00'::timestamp without time zone, 1.098079999999999945000000000000, - 1.000000000000000000000000000000, 4, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 1.096119999999999983000000000000, '2025-08-15 00:30:00'::timestamp without time zone, 1.097599999999999909000000000000, '2025-08-15 02:30:00'::timestamp without time zone, 1.096729999999999983000000000000, '2025-08-15 04:45:00'::timestamp without time zone, 1.098209999999999908000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 0.796932169997132122600000000000, - 1.000000000000000000000000000000, 4.435615342276510553000000000000, 25, 1.096729999999999983000000000000, 1.097295309696723953000000000000, 1.095815309696724027000000000000, 1.097046495960855905000000000000, 1.096327410918739975000000000000, 1.097469999999999946000000000000, 1.097644690303275938000000000000, 515840217700230300, 0.406135660005735699200000000000, 'BC=0.618*AB (0.588) ', 0, 'ABCD|-1|2025-08-14 22:00:00|1.09808|-1|4|25|BC=0.618*AB (0.588)|0|515840217700230300|1899-12-29 00:00:00|2025-08-15 00:30:00|2025-08-15 02:30:00|2025-08-15 04:45:00|1899-12-29 00:00:00', - 1, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:01:18 Duration: 6ms 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, 'ABCD', '2025-08-15 01:56:50'::timestamp without time zone, 1, '2025-08-14 19:00:00'::timestamp without time zone, '2025-08-15 01:45:00'::timestamp without time zone, 38.077100000000001500000000000000, 38.006100000000003550000000000000, 4, - 1.000000000000000000000000000000, '1899-12-29 00:00:00'::timestamp without time zone, 38.077100000000001500000000000000, '2025-08-14 19:00:00'::timestamp without time zone, 37.975250000000002620000000000000, '2025-08-14 20:15:00'::timestamp without time zone, 38.039200000000001010000000000000, '2025-08-14 23:30:00'::timestamp without time zone, 37.871000000000002220000000000000, '2025-08-15 01:15:00'::timestamp without time zone, 0.466089897617961879100000000000, 0.500000000000000000000000000000, 0.365890083440957858400000000000, 21, 38.039200000000001010000000000000, 37.974953316899338060000000000000, 38.143153316899336860000000000000, 38.003230661745959650000000000000, 38.084953705045897720000000000000, 37.955100000000001620000000000000, 37.935246683100665160000000000000, 515840249741206300, 0.467620390587072276600000000000, 'BC=0.618*AB (0.628) CD=1.618*AB (1.651) ', 0, 'ABCD|1|2025-08-14 19:00:00|38.0771|38.0061|4|21|BC=0.618*AB (0.628)","CD=1.618*AB (1.651)|0|515840249741206300|1899-12-29 00:00:00|2025-08-14 19:00:00|2025-08-14 20:15:00|2025-08-14 23:30:00|2025-08-15 01:15:00', 1, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:01:47 Duration: 6ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
13 1,447 2s652ms 0ms 9ms 1ms 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 04 1,447 2s652ms 1ms [ User: postgres - Total duration: 2s652ms - Times executed: 1447 ]
[ Application: [unknown] - Total duration: 2s652ms - Times executed: 1447 ]
-
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 (2.000000000000000000000000000000, - 1, 1, '2025-08-15 01:56:15'::timestamp without time zone, '2025-08-15 04:00:00', 0.009465000000000209357000000000, 6, 125, 7.848220000000000418000000000000, '2025-08-11 05:00:00', '2025-08-08 23:00:00', '2025-08-08 20:00:00', '2025-08-08 17:00:00', '2025-08-08 13:00:00', '2025-08-07 23:00:00', '', '', '', '', 105, 7.848265999999999742000000000000, '2025-08-15 04:00:00'::timestamp without time zone, '2025-08-15 04:00:00', 7.840729999999999756000000000000, 0.000045999999999990499720000000, 1, 515840243943573300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840243943573300|7.84822|1|2025-08-15 04:00:00|2025-08-15 04:00:00|1|-1', 7.835158299999999798000000000000, 0.013061700000000620040000000000, 2, '2025-08-07 23:00:00', 7.829130000000000144000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:01:12 Duration: 9ms 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 (9.000000000000000000000000000000, - 1, 1, '2025-08-15 02:27:27'::timestamp without time zone, '', 0.500000000000000000000000000000, 5, 124, 0.942150000000000043000000000000, '2025-08-14 12:00:00', '2025-08-12 14:30:00', '2025-08-12 06:00:00', '2025-08-12 01:00:00', '2025-08-11 22:00:00', '', '', '', '', '', 372, 0.942738000000000075900000000000, '2025-08-15 05:00:00'::timestamp without time zone, '2025-08-15 05:00:00', 0.000000000000000000000000000000, 0.000587999999999999655800000000, - 1, 515840217506801300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840217506801300|0.94215|1|2025-08-15 05:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2025-08-11 22:00:00', 0.942520000000000024400000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:32:24 Duration: 9ms 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 (7.000000000000000000000000000000, - 1, 2, '2025-08-15 02:26:45'::timestamp without time zone, '', 0.500000000000000000000000000000, 6, 264, 11.859339999999999550000000000000, '2025-08-14 12:00:00', '2025-08-12 16:00:00', '2025-08-12 07:30:00', '2025-08-11 19:00:00', '2025-08-07 14:30:00', '2025-08-05 20:30:00', '', '', '', '', 924, 11.851828499999999880000000000000, '2025-08-15 05:00:00'::timestamp without time zone, '2025-08-15 05:00:00', 0.000000000000000000000000000000, 0.007511500000000026836000000000, 1, 515840233488008300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840233488008300|11.85934|2|2025-08-15 05:00:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2025-08-05 20:30:00', 11.833040000000000450000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:31:42 Duration: 8ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
14 1,162 753ms 0ms 27ms 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 #14
Day Hour Count Duration Avg duration Aug 15 04 1,162 753ms 0ms [ User: postgres - Total duration: 753ms - Times executed: 1162 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 753ms - Times executed: 1162 ]
-
WITH rar_max as ( SELECT resultuid FROM relevance_keylevels_results ORDER BY resultuid DESC LIMIT 1 ) SELECT CASE WHEN a.old_resultuid = '606636041416027303' 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 = '606636041416027303' OR a.resultuid = '606636041416027303') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:28:53 Duration: 27ms 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 = '606636041416027303' 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 = '606636041416027303' OR a.resultuid = '606636041416027303') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:30:54 Duration: 21ms 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 = '606632280171805303' 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 = '606632280171805303' OR a.resultuid = '606632280171805303') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:26:52 Duration: 16ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
15 1,160 759ms 0ms 9ms 0ms update patternresultsrelevance set relevant = ?, saxo_relevant = ?, notrelevantpricedatetime = ?, reason = ? where uniqueindex = ? and relevant = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Aug 15 04 1,160 759ms 0ms [ User: postgres - Total duration: 759ms - Times executed: 1160 ]
[ Application: [unknown] - Total duration: 759ms - Times executed: 1160 ]
-
UPDATE patternresultsrelevance SET relevant = 0, saxo_relevant = 0, notrelevantpricedatetime = '2025-08-15 04:45:00', reason = 'Price has moved too far in the wrong direction' WHERE uniqueIndex = '|515840247971792300|37.808|2|2025-08-15 04:15:00|2025-08-15 04:15:00|-1|-1' and relevant = 1;
Date: 2025-08-15 04:02:12 Duration: 9ms 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:45:00', reason = 'Approaching pattern wick broke through price level.' WHERE uniqueIndex = '|515840230464169300|1.609855|1|2025-08-15 04:15:00|2025-08-15 04:15:00|1|-1' and relevant = 1;
Date: 2025-08-15 04:01:11 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 05:00:00', reason = 'Emerging pattern broke out in the wrong direction.' WHERE uniqueIndex = '515840233916163300-1|45883.6354|45883.9062|45883.3438|45883.7708|25527.5|25330|25456.5|25260.5' and relevant = 1;
Date: 2025-08-15 04:16:11 Duration: 4ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
16 833 313ms 0ms 5ms 0ms select case when a.old_resultuid = ? then a.old_resultuid else a.resultuid end as resultuid, s.symbol, pattern as patternname, timegranularity as interval, patternlengthbars as length, patternendtime, direction, breakout, predictiontimeto, predictionpricefrom, predictionpriceto, patternstartprice, resy1, supporty1, dtt.timezone, cps.pip, newlevels.profit 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 left join currencypips cps on cps.symbol = s.symbol left join lateral calc_cp_signal (a.resultuid) newlevels on true where (a.old_resultuid = ? or a.resultuid = ?) and dtt.dayofweek = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 15 04 833 313ms 0ms [ User: postgres - Total duration: 313ms - Times executed: 833 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 313ms - Times executed: 833 ]
-
SELECT CASE WHEN a.old_resultuid = '606639103286116301' THEN a.old_resultuid ELSE a.resultuid END as resultuid, s.symbol, pattern as patternname, timegranularity as interval, patternlengthbars AS length, patternendtime, direction, breakout, predictiontimeto, predictionpricefrom, predictionpriceto, patternStartPrice, resy1, supporty1, dtt.timezone, cps.pip, newLevels.profit 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 LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT JOIN LATERAL calc_cp_signal (a.resultuid) newLevels on true WHERE (a.old_resultuid = '606639103286116301' OR a.resultuid = '606639103286116301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:11:00 Duration: 5ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT CASE WHEN a.old_resultuid = '606639217752015301' THEN a.old_resultuid ELSE a.resultuid END as resultuid, s.symbol, pattern as patternname, timegranularity as interval, patternlengthbars AS length, patternendtime, direction, breakout, predictiontimeto, predictionpricefrom, predictionpriceto, patternStartPrice, resy1, supporty1, dtt.timezone, cps.pip, newLevels.profit 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 LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT JOIN LATERAL calc_cp_signal (a.resultuid) newLevels on true WHERE (a.old_resultuid = '606639217752015301' OR a.resultuid = '606639217752015301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:51:35 Duration: 5ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT CASE WHEN a.old_resultuid = '606639100056513301' THEN a.old_resultuid ELSE a.resultuid END as resultuid, s.symbol, pattern as patternname, timegranularity as interval, patternlengthbars AS length, patternendtime, direction, breakout, predictiontimeto, predictionpricefrom, predictionpriceto, patternStartPrice, resy1, supporty1, dtt.timezone, cps.pip, newLevels.profit 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 LEFT JOIN currencypips cps on cps.symbol = s.symbol LEFT JOIN LATERAL calc_cp_signal (a.resultuid) newLevels on true WHERE (a.old_resultuid = '606639100056513301' OR a.resultuid = '606639100056513301') AND dtt.dayofweek = 3;
Date: 2025-08-15 04:34:03 Duration: 3ms Database: acaweb_fx User: postgres Remote: 192.168.1.15 Application: PostgreSQL JDBC Driver Bind query: yes
17 641 2s53ms 2ms 10ms 3ms 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 04 641 2s53ms 3ms [ User: postgres - Total duration: 2s53ms - Times executed: 641 ]
[ Application: [unknown] - Total duration: 2s53ms - Times executed: 641 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 20:15:00'::timestamp without time zone, 96.618, 96.717, 96.59, 96.652, 1132, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 20:30:00'::timestamp without time zone, 96.651, 96.732, 96.64, 96.724, 979, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 20:45:00'::timestamp without time zone, 96.724, 96.754947, 96.69, 96.722, 1046, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:00:00'::timestamp without time zone, 96.717, 96.717, 96.58, 96.609, 1973, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:15:00'::timestamp without time zone, 96.612, 96.626, 96.57, 96.595, 1592, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:30:00'::timestamp without time zone, 96.593, 96.635, 96.55, 96.619, 1887, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:45:00'::timestamp without time zone, 96.618, 96.639869, 96.58, 96.628, 1481, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:00:00'::timestamp without time zone, 96.629, 96.6775387, 96.59, 96.667, 1421, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:15:00'::timestamp without time zone, 96.667, 96.735, 96.65, 96.693, 1330, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:30:00'::timestamp without time zone, 96.701, 96.709, 96.66, 96.7, 1052, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:45:00'::timestamp without time zone, 96.701, 96.7497334, 96.67, 96.725, 1146, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:00:00'::timestamp without time zone, 96.724, 96.77, 96.71, 96.75, 1230, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:15:00'::timestamp without time zone, 96.751, 96.7811466, 96.71, 96.766, 1167, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:30:00'::timestamp without time zone, 96.765, 96.833, 96.74, 96.814, 1358, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:45:00'::timestamp without time zone, 96.811, 96.818, 96.73, 96.74, 1313, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:00:00'::timestamp without time zone, 96.734, 96.75, 96.7, 96.722, 1274, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:15:00'::timestamp without time zone, 96.724, 96.731, 96.63, 96.65, 1181, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:30:00'::timestamp without time zone, 96.641, 96.67, 96.449, 96.636, 1951, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:45:00'::timestamp without time zone, 96.638, 96.677, 96.6, 96.645, 1360, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:00:00'::timestamp without time zone, 96.652, 96.669, 96.41, 96.468, 2660, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:15:00'::timestamp without time zone, 96.467, 96.469, 96.34, 96.363, 1851, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:30:00'::timestamp without time zone, 96.368, 96.448, 96.33, 96.371, 1888, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:45:00'::timestamp without time zone, 96.372, 96.412, 96.31, 96.374, 1990, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:00:00'::timestamp without time zone, 96.374, 96.466, 96.36, 96.378, 2379, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:15:00'::timestamp without time zone, 96.38, 96.388, 96.32, 96.377, 2272, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:30:00'::timestamp without time zone, 96.373, 96.3784684, 96.27, 96.321, 2276, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:45:00'::timestamp without time zone, 96.32, 96.398, 96.31, 96.336, 1866, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:00:00'::timestamp without time zone, 96.342, 96.446, 96.32, 96.44, 2307, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:15:00'::timestamp without time zone, 96.441, 96.466438, 96.38, 96.418, 2152, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:30:00'::timestamp without time zone, 96.419, 96.439, 96.31, 96.366, 2091, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:45:00'::timestamp without time zone, 96.362, 96.417, 96.35, 96.4, 1881, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:00:00'::timestamp without time zone, 96.4, 96.427, 96.29, 96.319, 1989, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:15:00'::timestamp without time zone, 96.322, 96.364, 96.25, 96.318, 1825, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:30:00'::timestamp without time zone, 96.317, 96.385, 96.3, 96.343, 1830, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:45:00'::timestamp without time zone, 96.348, 96.394, 96.3, 96.365, 1659, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:00:00'::timestamp without time zone, 96.36, 96.3980865, 96.32, 96.393, 1716, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:15:00'::timestamp without time zone, 96.392, 96.399, 96.34, 96.378, 1514, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:30:00'::timestamp without time zone, 96.377, 96.388, 96.3, 96.327, 1676, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:45:00'::timestamp without time zone, 96.33, 96.387, 96.29, 96.362, 1782, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:00:00'::timestamp without time zone, 96.363, 96.393, 96.32, 96.377, 1567, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:15:00'::timestamp without time zone, 96.375, 96.39, 96.34, 96.367, 1243, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:30:00'::timestamp without time zone, 96.373, 96.4071555, 96.34, 96.374, 1214, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:45:00'::timestamp without time zone, 96.376, 96.395, 96.31, 96.338, 1169, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:00:00'::timestamp without time zone, 96.339, 96.346, 96.29, 96.324, 1427, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:15:00'::timestamp without time zone, 96.325, 96.325, 96.23, 96.2783511, 1447, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:30:00'::timestamp without time zone, 96.285, 96.297, 96.23, 96.262, 1757, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:45:00'::timestamp without time zone, 96.263, 96.304, 96.21, 96.28, 1952, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:00:00'::timestamp without time zone, 96.281, 96.348, 96.25, 96.327, 2483, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:15:00'::timestamp without time zone, 96.327, 96.3453088, 96.257, 96.276, 2480, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:30:00'::timestamp without time zone, 96.257, 96.393, 96.119, 96.359, 5879, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:45:00'::timestamp without time zone, 96.361, 96.363, 96.24, 96.299, 4874, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 04:31:24 Duration: 10ms 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 (515840221186843300, '2025-08-07 01:15:00'::timestamp without time zone, 0.65175, 0.65185, 0.6516, 0.65185, 177, 0, '2025-08-15 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 04:31:22 Duration: 7ms 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 (515840249494169300, '2025-08-12 09:00:00'::timestamp without time zone, 1.09539, 1.09595, 1.0945, 1.09567, 3688, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 09:15:00'::timestamp without time zone, 1.09566065, 1.096198084, 1.0948, 1.09589, 3213, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 09:30:00'::timestamp without time zone, 1.09602, 1.096511832, 1.095, 1.09603, 3574, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 09:45:00'::timestamp without time zone, 1.09616, 1.096410534, 1.0948, 1.09621, 4180, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:00:00'::timestamp without time zone, 1.09623, 1.096521059, 1.095, 1.0953, 3666, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:15:00'::timestamp without time zone, 1.09627, 1.09666, 1.0953, 1.09651, 3125, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:30:00'::timestamp without time zone, 1.096467449, 1.09667, 1.0952, 1.09615, 3015, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:45:00'::timestamp without time zone, 1.09612, 1.096636181, 1.0952, 1.09635, 2707, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:00:00'::timestamp without time zone, 1.0963101, 1.096890905, 1.0954, 1.09668, 2493, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:15:00'::timestamp without time zone, 1.096548038, 1.09686, 1.0954, 1.096254828, 2461, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:30:00'::timestamp without time zone, 1.09633, 1.096673203, 1.0951, 1.09612, 2839, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:45:00'::timestamp without time zone, 1.09631, 1.096825665, 1.0952, 1.09638, 2588, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:00:00'::timestamp without time zone, 1.09653, 1.096750808, 1.0954, 1.096414898, 2399, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:15:00'::timestamp without time zone, 1.096444845, 1.096773922, 1.0954, 1.09632, 2068, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:30:00'::timestamp without time zone, 1.09643, 1.096675008, 1.0953, 1.09633, 2078, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:45:00'::timestamp without time zone, 1.096332692, 1.096731797, 1.0954, 1.09638, 1978, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:00:00'::timestamp without time zone, 1.09646, 1.09671866, 1.0953, 1.09646, 1792, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:15:00'::timestamp without time zone, 1.09627, 1.096538998, 1.0953, 1.09623, 1672, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:30:00'::timestamp without time zone, 1.096216286, 1.096801552, 1.0952, 1.09634, 1411, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:45:00'::timestamp without time zone, 1.09631, 1.096709633, 1.0954, 1.09656, 1350, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:00:00'::timestamp without time zone, 1.0957, 1.096783382, 1.0953, 1.09649, 1292, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:15:00'::timestamp without time zone, 1.09649, 1.096787086, 1.0955, 1.096469085, 1387, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:30:00'::timestamp without time zone, 1.096496327, 1.096820677, 1.0955, 1.09651, 1385, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:45:00'::timestamp without time zone, 1.096497995, 1.09667, 1.0954, 1.09664, 1104, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:00:00'::timestamp without time zone, 1.0965, 1.096813108, 1.0955, 1.09656, 1177, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:15:00'::timestamp without time zone, 1.09657, 1.096846023, 1.0956, 1.09683, 1069, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:30:00'::timestamp without time zone, 1.09665, 1.096928671, 1.0956, 1.09651, 962, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:45:00'::timestamp without time zone, 1.09671, 1.096816037, 1.0955, 1.09665, 1119, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:00:00'::timestamp without time zone, 1.09666, 1.097004176, 1.0956, 1.0965, 965, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:15:00'::timestamp without time zone, 1.096510132, 1.09677, 1.0955, 1.0957, 920, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:30:00'::timestamp without time zone, 1.09648, 1.096801081, 1.0954, 1.09632, 935, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:45:00'::timestamp without time zone, 1.09649, 1.096692029, 1.0954, 1.096095001, 905, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:00:00'::timestamp without time zone, 1.09535, 1.0964916, 1.09174, 1.0949, 393, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:15:00'::timestamp without time zone, 1.095191922, 1.096274042, 1.0942, 1.0954, 438, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:30:00'::timestamp without time zone, 1.095909894, 1.096432418, 1.09509, 1.095975798, 695, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:45:00'::timestamp without time zone, 1.096028014, 1.096421575, 1.0952, 1.09592, 664, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:00:00'::timestamp without time zone, 1.095946934, 1.096853337, 1.0955, 1.09629, 645, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:15:00'::timestamp without time zone, 1.0956, 1.096593983, 1.0953, 1.09619, 695, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:30:00'::timestamp without time zone, 1.096369335, 1.096557412, 1.0952, 1.0954, 550, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:45:00'::timestamp without time zone, 1.096249633, 1.096502549, 1.0951, 1.09607, 577, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:00:00'::timestamp without time zone, 1.09607, 1.09641, 1.0951, 1.096278108, 607, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:15:00'::timestamp without time zone, 1.09624, 1.096650845, 1.0953, 1.09652, 498, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:30:00'::timestamp without time zone, 1.09649, 1.09748366, 1.0952, 1.096215263, 603, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:45:00'::timestamp without time zone, 1.09627, 1.096451369, 1.095, 1.09589, 749, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:00:00'::timestamp without time zone, 1.0959, 1.096591354, 1.0949, 1.09617, 1161, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:15:00'::timestamp without time zone, 1.096159166, 1.096366195, 1.0951, 1.09622, 943, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:30:00'::timestamp without time zone, 1.09627, 1.096477154, 1.0951, 1.09604, 847, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:45:00'::timestamp without time zone, 1.096128676, 1.09646057, 1.095, 1.096117642, 1062, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 21:00:00'::timestamp without time zone, 1.096096184, 1.09645, 1.0951, 1.096146013, 1318, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 21:15:00'::timestamp without time zone, 1.09602, 1.09616, 1.0948, 1.09595, 1551, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 21:30:00'::timestamp without time zone, 1.095819669, 1.096542289, 1.0949, 1.09628, 1622, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 04:31:24 Duration: 5ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
18 624 903ms 0ms 5ms 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 04 624 903ms 1ms [ User: postgres - Total duration: 903ms - Times executed: 624 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 903ms - Times executed: 624 ]
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol FROM downloadersymbolsettings dss INNER JOIN symbols s ON dss.symbolid = s.symbolid WHERE dss.classname = 'ATFX' AND s.deleted = 0 AND dss.enabled = 1;
Date: 2025-08-15 04:30:26 Duration: 5ms 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 04:00:39 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 04:45:21 Duration: 4ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
19 624 108ms 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 04 624 108ms 0ms [ User: postgres - Total duration: 108ms - Times executed: 624 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 108ms - Times executed: 624 ]
-
SELECT downloadersymbol, spike_threshold FROM price_datafeed_spike_threshold WHERE classname = 'ATFX';
Date: 2025-08-15 04:00:40 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 04:30:52 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 = 'HOTFOREX';
Date: 2025-08-15 04:30:58 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
20 488 16ms 0ms 0ms 0ms select df.absolutetimezoneoffset from datafeedstimetable df inner join downloadersymbolsettings dss on df.classname = dss.classname where dss.symbolid = ? group by df.absolutetimezoneoffset limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 15 04 488 16ms 0ms [ User: postgres - Total duration: 16ms - Times executed: 488 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 16ms - Times executed: 488 ]
-
SELECT df.absolutetimezoneoffset FROM datafeedstimetable df INNER JOIN downloadersymbolsettings dss ON df.classname = dss.classname WHERE dss.symbolid = '515840243152012300' GROUP BY df.absolutetimezoneoffset LIMIT 1;
Date: 2025-08-15 04:18:43 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.23 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT df.absolutetimezoneoffset FROM datafeedstimetable df INNER JOIN downloadersymbolsettings dss ON df.classname = dss.classname WHERE dss.symbolid = '515840233921619300' GROUP BY df.absolutetimezoneoffset LIMIT 1;
Date: 2025-08-15 04:33:29 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.201 Application: PostgreSQL JDBC Driver Bind query: yes
-
SELECT df.absolutetimezoneoffset FROM datafeedstimetable df INNER JOIN downloadersymbolsettings dss ON df.classname = dss.classname WHERE dss.symbolid = '515840243266602300' GROUP BY df.absolutetimezoneoffset LIMIT 1;
Date: 2025-08-15 04:24:07 Duration: 0ms Database: acaweb_fx User: postgres Remote: 192.168.1.201 Application: PostgreSQL JDBC Driver Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 9s631ms 10s321ms 9s893ms 4 39s572ms select updateageforrelevantresults ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 15 04 4 39s572ms 9s893ms [ User: postgres - Total duration: 39s572ms - Times executed: 4 ]
[ Application: psql - Total duration: 39s572ms - Times executed: 4 ]
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:32:13 Duration: 10s321ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:47:12 Duration: 9s893ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateageforrelevantresults ();
Date: 2025-08-15 04:02:12 Duration: 9s726ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
2 176ms 40s502ms 8s16ms 354 47m17s 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 04 354 47m17s 8s16ms [ User: postgres - Total duration: 47m17s - Times executed: 354 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 44m19s - Times executed: 342 ]
[ Application: [unknown] - Total duration: 2m58s - 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 04:31:49 Duration: 40s502ms 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 04:32:36 Duration: 37s894ms 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_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 04:17:41 Duration: 37s467ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
3 367ms 21s318ms 7s31ms 352 41m15s 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 04 352 41m15s 7s31ms [ User: postgres - Total duration: 41m15s - Times executed: 352 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 38m22s - Times executed: 340 ]
[ Application: [unknown] - Total duration: 2m52s - 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 04:31:24 Duration: 21s318ms 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_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 04:31:30 Duration: 19s651ms 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 = '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 04:10:53 Duration: 18s831ms Database: acaweb_fx User: postgres Remote: 192.168.1.145 Application: PostgreSQL JDBC Driver Bind query: yes
4 4s846ms 6s290ms 5s380ms 6 32s285ms 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 04 6 32s285ms 5s380ms [ User: postgres - Total duration: 32s285ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 32s285ms - 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 04:00:08 Duration: 6s290ms 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 04:30:08 Duration: 5s713ms 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 04:40:08 Duration: 5s348ms Database: acaweb_fx User: postgres Remote: 192.168.1.90 Application: [unknown] Bind query: yes
5 2s718ms 3s274ms 2s819ms 8 22s558ms select updateresultsmaterializedview ();Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Aug 15 04 8 22s558ms 2s819ms [ User: postgres - Total duration: 22s558ms - Times executed: 8 ]
[ Application: psql - Total duration: 22s558ms - Times executed: 8 ]
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:50:36 Duration: 3s274ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:02:14 Duration: 2s810ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select updateresultsmaterializedview ();
Date: 2025-08-15 04:32:15 Duration: 2s771ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
6 576ms 8s794ms 2s644ms 314 13m50s 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 04 314 13m50s 2s644ms [ User: postgres - Total duration: 13m50s - Times executed: 314 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 12m49s - Times executed: 302 ]
[ Application: [unknown] - Total duration: 1m - 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 = '689' 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 ('310' = 0 OR coalesce(bim.code, s.symbol) in ('#AAPL', '#ADS', '#AIG', '#ALV', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BAS', '#BAYN', '#BEI', '#BIDU', '#BMW', '#C', '#CAT', '#CBK', '#CL', '#CSCO', '#CVX', '#DAI', '#DB1', '#DBK', '#DIS', '#DPW', '#DTE', '#EBAY', '#EON', '#F', '#FB', '#FDX', '#FME', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#IFX', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LHA', '#LMT', '#MA', '#MCD', '#META', '#MMM', '#MSFT', '#MUV2', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#RWE', '#SAP', '#SIE', '#T', '#UBER', '#V', '#VOW', '#WB', '#XOM', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'AUS200', 'BRENT', 'BTCUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'CHI50', 'ESP35', 'ETHUSD', 'EU50', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'FRA40', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'LTCUSD', 'NAS100', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'SPX500', 'UK100', 'US30', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'WTI', 'XAGUSD', 'XAUUSD', '#ADS', '#ALV', '#BAS', '#BAYN', '#BEI', '#BMW', '#CBK', '#DAI', '#DB1', '#DBK', '#DPW', '#DTE', '#EON', '#FME', '#IFX', '#LHA', '#MUV2', '#RWE', '#SAP', '#SIE', '#VOW', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'AUDUSD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'EURUSD', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'GBPUSD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDJPY', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BTCUSD', 'ETHUSD', 'LTCUSD', 'AUDCAD', 'AUDCHF', 'AUDJPY', 'AUDNZD', 'CADCHF', 'CADJPY', 'CHFJPY', 'EURAUD', 'EURCAD', 'EURCHF', 'EURGBP', 'EURHUF', 'EURJPY', 'EURNZD', 'EURPLN', 'GBPAUD', 'GBPCAD', 'GBPCHF', 'GBPJPY', 'GBPNZD', 'NZDCAD', 'NZDCHF', 'NZDJPY', 'USDCNH', 'USDCZK', 'USDDKK', 'USDHKD', 'USDHUF', 'USDMXN', 'USDNOK', 'USDPLN', 'USDSEK', 'USDSGD', 'USDTRY', 'USDX', 'USDZAR', 'XAGUSD', 'XAUUSD', 'BRENT', 'WTI', 'AUS200', 'CHI50', 'ESP35', 'EU50', 'FRA40', 'GER30', 'HK50', 'HKCH50', 'IT40', 'JP225', 'NAS100', 'SPX500', 'UK100', 'US30', 'AUDUSD', 'EURUSD', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', '#AAPL', '#AIG', '#AMZN', '#AXP', '#BA', '#BABA', '#BAC', '#BIDU', '#C', '#CAT', '#CL', '#CSCO', '#CVX', '#DIS', '#EBAY', '#F', '#FB', '#FDX', '#GE', '#GM', '#GOOG', '#GS', '#HPQ', '#IBM', '#INTC', '#JD', '#JNJ', '#JPM', '#KO', '#LMT', '#MA', '#MCD', '#MMM', '#MSFT', '#NFLX', '#NKE', '#NTES', '#ORCL', '#PFE', '#PG', '#QCOM', '#RACE', '#T', '#UBER', '#V', '#WB', '#XOM')) AND ('0' = 0 OR fr.pattern in ('')) AND ('700' = 0 OR fr.patternlengthbars <= '700') 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 04:55:35 Duration: 8s794ms 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_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 = '689' 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 ('0' = 0 OR coalesce(bim.code, s.symbol) in ('')) AND ('0' = 0 OR fr.pattern in ('')) AND ('400' = 0 OR fr.patternlengthbars <= '400') 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 04:30:55 Duration: 7s753ms Database: acaweb_fx User: postgres Remote: 182.165.1.42 Application: [unknown] 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 04:42:20 Duration: 6s373ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
7 1s932ms 3s414ms 2s69ms 16 33s106ms 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 04 16 33s106ms 2s69ms [ User: postgres - Total duration: 33s106ms - Times executed: 16 ]
[ Application: psql - Total duration: 33s106ms - 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 04:31:17 Duration: 3s414ms 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 04:01:16 Duration: 2s121ms 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 04:16:15 Duration: 2s22ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
8 1s333ms 2s804ms 1s980ms 20 39s605ms 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 04 20 39s605ms 1s980ms [ User: postgres - Total duration: 39s605ms - Times executed: 20 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 39s605ms - Times executed: 20 ]
-
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 04:22:09 Duration: 2s804ms 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 04:22:18 Duration: 2s769ms 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 = '617' 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 = '617')) OR (klresultuid > ( SELECT COALESCE(MAX(klresultuid), 0) FROM correlating_signals acs where acs.basegroupname = 'Forex' and acs.brokerid = '617'))) -- maximum per day and ( select count(distinct cs.cpresultuid) -- count for today from correlating_signals cs where cs.brokerid = '617' 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 = '617' 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 04:36:53 Duration: 2s678ms Database: acaweb_fx User: postgres Remote: 192.168.4.238 Application: PostgreSQL JDBC Driver Bind query: yes
9 1s250ms 1s758ms 1s348ms 16 21s575ms 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 04 16 21s575ms 1s348ms [ User: postgres - Total duration: 21s575ms - Times executed: 16 ]
[ Application: psql - Total duration: 21s575ms - 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 04:01:13 Duration: 1s758ms 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 04:31:13 Duration: 1s679ms 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 04:11:13 Duration: 1s607ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
10 1s29ms 1s843ms 1s259ms 6 7s554ms refresh materialized view concurrently latest_t15_candle_view;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Aug 15 04 6 7s554ms 1s259ms [ User: postgres - Total duration: 7s554ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 7s554ms - Times executed: 6 ]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 04:31:18 Duration: 1s843ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 04:01:18 Duration: 1s319ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
-
refresh materialized view concurrently latest_t15_candle_view;
Date: 2025-08-15 04:16:17 Duration: 1s243ms Database: acaweb_fx User: postgres Remote: 192.168.4.98 Application: [unknown]
11 12ms 10s630ms 856ms 34 29s132ms select fixcandlegaps (?, false);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Aug 15 04 34 29s132ms 856ms [ User: postgres - Total duration: 29s132ms - Times executed: 34 ]
[ Application: psql - Total duration: 29s132ms - Times executed: 34 ]
-
select fixcandlegaps ('ICMARKETS-AU-MT5', false);
Date: 2025-08-15 04:06:30 Duration: 10s630ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('ATFX', false);
Date: 2025-08-15 04:06:08 Duration: 3s685ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
-
select fixcandlegaps ('AXIORY', false);
Date: 2025-08-15 04:06:11 Duration: 2s707ms Database: acaweb_fx User: postgres Remote: [local] Application: psql
12 87ms 1s110ms 341ms 150 51s275ms 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 #12
Day Hour Count Duration Avg duration Aug 15 04 150 51s275ms 341ms [ User: postgres - Total duration: 51s275ms - Times executed: 150 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 51s275ms - 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 04:24:08 Duration: 1s110ms 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 04:24:08 Duration: 1s77ms 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 04:00:03 Duration: 913ms Database: acaweb_fx User: postgres Remote: 192.168.1.20 Application: PostgreSQL JDBC Driver Bind query: yes
13 82ms 896ms 290ms 211 1m1s 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 #13
Day Hour Count Duration Avg duration Aug 15 04 211 1m1s 290ms [ User: postgres - Total duration: 1m1s - Times executed: 211 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 54s932ms - Times executed: 199 ]
[ Application: [unknown] - Total duration: 6s258ms - 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 04:57:56 Duration: 896ms 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_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 ('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 ('400' = 0 OR ccr.patternlengthbars <= '400') ), 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 04:21:05 Duration: 842ms Database: acaweb_fx User: postgres Remote: 182.165.1.42 Application: [unknown] 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 ('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 ('400' = 0 OR ccr.patternlengthbars <= '400') ), 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 04:31:18 Duration: 830ms Database: acaweb_fx User: postgres Remote: 182.165.1.42 Application: [unknown] Bind query: yes
14 15ms 208ms 67ms 149 10s68ms 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 #14
Day Hour Count Duration Avg duration Aug 15 04 149 10s68ms 67ms [ User: postgres - Total duration: 10s68ms - Times executed: 149 ]
[ Application: [unknown] - Total duration: 10s68ms - Times executed: 149 ]
-
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 'FPMARKETS - 1';
Date: 2025-08-15 04:31:17 Duration: 208ms 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 04:31:07 Duration: 173ms 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 'ATFX - 1';
Date: 2025-08-15 04:31:05 Duration: 169ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
15 16ms 255ms 59ms 149 8s833ms 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 #15
Day Hour Count Duration Avg duration Aug 15 04 149 8s833ms 59ms [ User: postgres - Total duration: 8s833ms - Times executed: 149 ]
[ Application: [unknown] - Total duration: 8s833ms - Times executed: 149 ]
-
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 'FPMARKETS - 1';
Date: 2025-08-15 04:31:16 Duration: 255ms 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 'HOTFOREX - 1';
Date: 2025-08-15 04:31:12 Duration: 242ms 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 'ATFX - 1';
Date: 2025-08-15 04:31:04 Duration: 186ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
16 2ms 10ms 3ms 641 2s53ms 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 #16
Day Hour Count Duration Avg duration Aug 15 04 641 2s53ms 3ms [ User: postgres - Total duration: 2s53ms - Times executed: 641 ]
[ Application: [unknown] - Total duration: 2s53ms - Times executed: 641 ]
-
INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 20:15:00'::timestamp without time zone, 96.618, 96.717, 96.59, 96.652, 1132, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 20:30:00'::timestamp without time zone, 96.651, 96.732, 96.64, 96.724, 979, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 20:45:00'::timestamp without time zone, 96.724, 96.754947, 96.69, 96.722, 1046, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:00:00'::timestamp without time zone, 96.717, 96.717, 96.58, 96.609, 1973, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:15:00'::timestamp without time zone, 96.612, 96.626, 96.57, 96.595, 1592, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:30:00'::timestamp without time zone, 96.593, 96.635, 96.55, 96.619, 1887, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 21:45:00'::timestamp without time zone, 96.618, 96.639869, 96.58, 96.628, 1481, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:00:00'::timestamp without time zone, 96.629, 96.6775387, 96.59, 96.667, 1421, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:15:00'::timestamp without time zone, 96.667, 96.735, 96.65, 96.693, 1330, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:30:00'::timestamp without time zone, 96.701, 96.709, 96.66, 96.7, 1052, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 22:45:00'::timestamp without time zone, 96.701, 96.7497334, 96.67, 96.725, 1146, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:00:00'::timestamp without time zone, 96.724, 96.77, 96.71, 96.75, 1230, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:15:00'::timestamp without time zone, 96.751, 96.7811466, 96.71, 96.766, 1167, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:30:00'::timestamp without time zone, 96.765, 96.833, 96.74, 96.814, 1358, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-11 23:45:00'::timestamp without time zone, 96.811, 96.818, 96.73, 96.74, 1313, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:00:00'::timestamp without time zone, 96.734, 96.75, 96.7, 96.722, 1274, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:15:00'::timestamp without time zone, 96.724, 96.731, 96.63, 96.65, 1181, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:30:00'::timestamp without time zone, 96.641, 96.67, 96.449, 96.636, 1951, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 00:45:00'::timestamp without time zone, 96.638, 96.677, 96.6, 96.645, 1360, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:00:00'::timestamp without time zone, 96.652, 96.669, 96.41, 96.468, 2660, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:15:00'::timestamp without time zone, 96.467, 96.469, 96.34, 96.363, 1851, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:30:00'::timestamp without time zone, 96.368, 96.448, 96.33, 96.371, 1888, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 01:45:00'::timestamp without time zone, 96.372, 96.412, 96.31, 96.374, 1990, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:00:00'::timestamp without time zone, 96.374, 96.466, 96.36, 96.378, 2379, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:15:00'::timestamp without time zone, 96.38, 96.388, 96.32, 96.377, 2272, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:30:00'::timestamp without time zone, 96.373, 96.3784684, 96.27, 96.321, 2276, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 02:45:00'::timestamp without time zone, 96.32, 96.398, 96.31, 96.336, 1866, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:00:00'::timestamp without time zone, 96.342, 96.446, 96.32, 96.44, 2307, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:15:00'::timestamp without time zone, 96.441, 96.466438, 96.38, 96.418, 2152, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:30:00'::timestamp without time zone, 96.419, 96.439, 96.31, 96.366, 2091, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 03:45:00'::timestamp without time zone, 96.362, 96.417, 96.35, 96.4, 1881, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:00:00'::timestamp without time zone, 96.4, 96.427, 96.29, 96.319, 1989, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:15:00'::timestamp without time zone, 96.322, 96.364, 96.25, 96.318, 1825, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:30:00'::timestamp without time zone, 96.317, 96.385, 96.3, 96.343, 1830, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 04:45:00'::timestamp without time zone, 96.348, 96.394, 96.3, 96.365, 1659, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:00:00'::timestamp without time zone, 96.36, 96.3980865, 96.32, 96.393, 1716, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:15:00'::timestamp without time zone, 96.392, 96.399, 96.34, 96.378, 1514, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:30:00'::timestamp without time zone, 96.377, 96.388, 96.3, 96.327, 1676, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 05:45:00'::timestamp without time zone, 96.33, 96.387, 96.29, 96.362, 1782, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:00:00'::timestamp without time zone, 96.363, 96.393, 96.32, 96.377, 1567, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:15:00'::timestamp without time zone, 96.375, 96.39, 96.34, 96.367, 1243, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:30:00'::timestamp without time zone, 96.373, 96.4071555, 96.34, 96.374, 1214, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 06:45:00'::timestamp without time zone, 96.376, 96.395, 96.31, 96.338, 1169, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:00:00'::timestamp without time zone, 96.339, 96.346, 96.29, 96.324, 1427, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:15:00'::timestamp without time zone, 96.325, 96.325, 96.23, 96.2783511, 1447, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:30:00'::timestamp without time zone, 96.285, 96.297, 96.23, 96.262, 1757, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 07:45:00'::timestamp without time zone, 96.263, 96.304, 96.21, 96.28, 1952, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:00:00'::timestamp without time zone, 96.281, 96.348, 96.25, 96.327, 2483, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:15:00'::timestamp without time zone, 96.327, 96.3453088, 96.257, 96.276, 2480, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:30:00'::timestamp without time zone, 96.257, 96.393, 96.119, 96.359, 5879, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249504884300, '2025-08-12 08:45:00'::timestamp without time zone, 96.361, 96.363, 96.24, 96.299, 4874, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 04:31:24 Duration: 10ms 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 (515840221186843300, '2025-08-07 01:15:00'::timestamp without time zone, 0.65175, 0.65185, 0.6516, 0.65185, 177, 0, '2025-08-15 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::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 04:31:22'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 04:31:22 Duration: 7ms 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 (515840249494169300, '2025-08-12 09:00:00'::timestamp without time zone, 1.09539, 1.09595, 1.0945, 1.09567, 3688, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 09:15:00'::timestamp without time zone, 1.09566065, 1.096198084, 1.0948, 1.09589, 3213, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 09:30:00'::timestamp without time zone, 1.09602, 1.096511832, 1.095, 1.09603, 3574, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 09:45:00'::timestamp without time zone, 1.09616, 1.096410534, 1.0948, 1.09621, 4180, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:00:00'::timestamp without time zone, 1.09623, 1.096521059, 1.095, 1.0953, 3666, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:15:00'::timestamp without time zone, 1.09627, 1.09666, 1.0953, 1.09651, 3125, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:30:00'::timestamp without time zone, 1.096467449, 1.09667, 1.0952, 1.09615, 3015, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 10:45:00'::timestamp without time zone, 1.09612, 1.096636181, 1.0952, 1.09635, 2707, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:00:00'::timestamp without time zone, 1.0963101, 1.096890905, 1.0954, 1.09668, 2493, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:15:00'::timestamp without time zone, 1.096548038, 1.09686, 1.0954, 1.096254828, 2461, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:30:00'::timestamp without time zone, 1.09633, 1.096673203, 1.0951, 1.09612, 2839, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 11:45:00'::timestamp without time zone, 1.09631, 1.096825665, 1.0952, 1.09638, 2588, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:00:00'::timestamp without time zone, 1.09653, 1.096750808, 1.0954, 1.096414898, 2399, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:15:00'::timestamp without time zone, 1.096444845, 1.096773922, 1.0954, 1.09632, 2068, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:30:00'::timestamp without time zone, 1.09643, 1.096675008, 1.0953, 1.09633, 2078, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 12:45:00'::timestamp without time zone, 1.096332692, 1.096731797, 1.0954, 1.09638, 1978, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:00:00'::timestamp without time zone, 1.09646, 1.09671866, 1.0953, 1.09646, 1792, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:15:00'::timestamp without time zone, 1.09627, 1.096538998, 1.0953, 1.09623, 1672, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:30:00'::timestamp without time zone, 1.096216286, 1.096801552, 1.0952, 1.09634, 1411, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 13:45:00'::timestamp without time zone, 1.09631, 1.096709633, 1.0954, 1.09656, 1350, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:00:00'::timestamp without time zone, 1.0957, 1.096783382, 1.0953, 1.09649, 1292, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:15:00'::timestamp without time zone, 1.09649, 1.096787086, 1.0955, 1.096469085, 1387, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:30:00'::timestamp without time zone, 1.096496327, 1.096820677, 1.0955, 1.09651, 1385, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 14:45:00'::timestamp without time zone, 1.096497995, 1.09667, 1.0954, 1.09664, 1104, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:00:00'::timestamp without time zone, 1.0965, 1.096813108, 1.0955, 1.09656, 1177, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:15:00'::timestamp without time zone, 1.09657, 1.096846023, 1.0956, 1.09683, 1069, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:30:00'::timestamp without time zone, 1.09665, 1.096928671, 1.0956, 1.09651, 962, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 15:45:00'::timestamp without time zone, 1.09671, 1.096816037, 1.0955, 1.09665, 1119, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:00:00'::timestamp without time zone, 1.09666, 1.097004176, 1.0956, 1.0965, 965, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:15:00'::timestamp without time zone, 1.096510132, 1.09677, 1.0955, 1.0957, 920, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:30:00'::timestamp without time zone, 1.09648, 1.096801081, 1.0954, 1.09632, 935, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 16:45:00'::timestamp without time zone, 1.09649, 1.096692029, 1.0954, 1.096095001, 905, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:00:00'::timestamp without time zone, 1.09535, 1.0964916, 1.09174, 1.0949, 393, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:15:00'::timestamp without time zone, 1.095191922, 1.096274042, 1.0942, 1.0954, 438, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:30:00'::timestamp without time zone, 1.095909894, 1.096432418, 1.09509, 1.095975798, 695, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 17:45:00'::timestamp without time zone, 1.096028014, 1.096421575, 1.0952, 1.09592, 664, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:00:00'::timestamp without time zone, 1.095946934, 1.096853337, 1.0955, 1.09629, 645, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:15:00'::timestamp without time zone, 1.0956, 1.096593983, 1.0953, 1.09619, 695, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:30:00'::timestamp without time zone, 1.096369335, 1.096557412, 1.0952, 1.0954, 550, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 18:45:00'::timestamp without time zone, 1.096249633, 1.096502549, 1.0951, 1.09607, 577, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:00:00'::timestamp without time zone, 1.09607, 1.09641, 1.0951, 1.096278108, 607, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:15:00'::timestamp without time zone, 1.09624, 1.096650845, 1.0953, 1.09652, 498, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:30:00'::timestamp without time zone, 1.09649, 1.09748366, 1.0952, 1.096215263, 603, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 19:45:00'::timestamp without time zone, 1.09627, 1.096451369, 1.095, 1.09589, 749, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:00:00'::timestamp without time zone, 1.0959, 1.096591354, 1.0949, 1.09617, 1161, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:15:00'::timestamp without time zone, 1.096159166, 1.096366195, 1.0951, 1.09622, 943, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:30:00'::timestamp without time zone, 1.09627, 1.096477154, 1.0951, 1.09604, 847, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 20:45:00'::timestamp without time zone, 1.096128676, 1.09646057, 1.095, 1.096117642, 1062, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 21:00:00'::timestamp without time zone, 1.096096184, 1.09645, 1.0951, 1.096146013, 1318, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 21:15:00'::timestamp without time zone, 1.09602, 1.09616, 1.0948, 1.09595, 1551, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING; INSERT INTO T15 (SymbolID, PriceDateTime, Open, High, Low, Close, Volume, BSF, sastdatetimereceived) VALUES (515840249494169300, '2025-08-12 21:30:00'::timestamp without time zone, 1.095819669, 1.096542289, 1.0949, 1.09628, 1622, 0, '2025-08-15 04:31:24'::timestamp without time zone) ON CONFLICT (symbolid, pricedatetime) DO NOTHING;
Date: 2025-08-15 04:31:24 Duration: 5ms Database: acaweb_fx User: postgres Remote: 192.168.2.82 Application: [unknown]
17 0ms 25ms 2ms 37,076 1m20s 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 #17
Day Hour Count Duration Avg duration Aug 15 04 37,076 1m20s 2ms [ User: postgres - Total duration: 1m20s - Times executed: 37076 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1m20s - Times executed: 37076 ]
-
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 = 'USDSGD' OR dss.downloadersymbol = 'USDSGD') AND dss.enabled = 1;
Date: 2025-08-15 04:00:02 Duration: 25ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = 'NZDCHF' OR dss.downloadersymbol = 'NZDCHF') AND dss.enabled = 1;
Date: 2025-08-15 04:00:02 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 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 = 'Telefonica' OR dss.downloadersymbol = 'Telefonica') AND dss.enabled = 1;
Date: 2025-08-15 04:24:06 Duration: 19ms Database: acaweb_fx User: postgres Remote: 192.168.0.74 Application: PostgreSQL JDBC Driver Bind query: yes
18 0ms 9ms 1ms 1,447 2s652ms 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 04 1,447 2s652ms 1ms [ User: postgres - Total duration: 2s652ms - Times executed: 1447 ]
[ Application: [unknown] - Total duration: 2s652ms - Times executed: 1447 ]
-
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 (2.000000000000000000000000000000, - 1, 1, '2025-08-15 01:56:15'::timestamp without time zone, '2025-08-15 04:00:00', 0.009465000000000209357000000000, 6, 125, 7.848220000000000418000000000000, '2025-08-11 05:00:00', '2025-08-08 23:00:00', '2025-08-08 20:00:00', '2025-08-08 17:00:00', '2025-08-08 13:00:00', '2025-08-07 23:00:00', '', '', '', '', 105, 7.848265999999999742000000000000, '2025-08-15 04:00:00'::timestamp without time zone, '2025-08-15 04:00:00', 7.840729999999999756000000000000, 0.000045999999999990499720000000, 1, 515840243943573300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840243943573300|7.84822|1|2025-08-15 04:00:00|2025-08-15 04:00:00|1|-1', 7.835158299999999798000000000000, 0.013061700000000620040000000000, 2, '2025-08-07 23:00:00', 7.829130000000000144000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:01:12 Duration: 9ms 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 (9.000000000000000000000000000000, - 1, 1, '2025-08-15 02:27:27'::timestamp without time zone, '', 0.500000000000000000000000000000, 5, 124, 0.942150000000000043000000000000, '2025-08-14 12:00:00', '2025-08-12 14:30:00', '2025-08-12 06:00:00', '2025-08-12 01:00:00', '2025-08-11 22:00:00', '', '', '', '', '', 372, 0.942738000000000075900000000000, '2025-08-15 05:00:00'::timestamp without time zone, '2025-08-15 05:00:00', 0.000000000000000000000000000000, 0.000587999999999999655800000000, - 1, 515840217506801300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840217506801300|0.94215|1|2025-08-15 05:00:00|-1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2025-08-11 22:00:00', 0.942520000000000024400000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:32:24 Duration: 9ms 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 (7.000000000000000000000000000000, - 1, 2, '2025-08-15 02:26:45'::timestamp without time zone, '', 0.500000000000000000000000000000, 6, 264, 11.859339999999999550000000000000, '2025-08-14 12:00:00', '2025-08-12 16:00:00', '2025-08-12 07:30:00', '2025-08-11 19:00:00', '2025-08-07 14:30:00', '2025-08-05 20:30:00', '', '', '', '', 924, 11.851828499999999880000000000000, '2025-08-15 05:00:00'::timestamp without time zone, '2025-08-15 05:00:00', 0.000000000000000000000000000000, 0.007511500000000026836000000000, 1, 515840233488008300, 0.000000000000000000000000000000, 0.000000000000000000000000000000, '1900-01-01 00:00:00'::timestamp without time zone, 0, '|515840233488008300|11.85934|2|2025-08-15 05:00:00|1|-1', 0.000000000000000000000000000000, 0.000000000000000000000000000000, 3, '2025-08-05 20:30:00', 11.833040000000000450000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:31:42 Duration: 8ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
19 0ms 12ms 1ms 3,796 5s717ms 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 #19
Day Hour Count Duration Avg duration Aug 15 04 3,796 5s717ms 1ms [ User: postgres - Total duration: 5s717ms - Times executed: 3796 ]
[ Application: [unknown] - Total duration: 5s717ms - Times executed: 3796 ]
-
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 ('5158402334861813000.7954|45883.9167|45884.0833|45883.625|45884|8.389|8.382|8.303|8.345', 515840233486181300, 2.000000000000000000000000000000, 'Pennant', 4, '2025-08-15 01:57:16'::timestamp without time zone, - 1, 0.928539116551373333600000000000, 0.795358649789118410400000000000, 0.478585038522077732600000000000, 0.067061143984222665320000000000, 0.754129062125712956700000000000, 8.265997085340366368000000000000, 8.317332118891817672000000000000, '2025-08-15 04:00:00'::timestamp without time zone, '2025-08-15 10:30:00'::timestamp without time zone, '2025-08-13 22:00:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 8.403999999999999914000000000000, 8.363666666666667026000000000000, '2025-08-14 22:00:00'::timestamp without time zone, '2025-08-15 02:00:00'::timestamp without time zone, '2025-08-14 15:00:00'::timestamp without time zone, '2025-08-15 00:00:00'::timestamp without time zone, 8.388999999999999346000000000000, 8.381999999999999673000000000000, 8.303000000000000824000000000000, 8.345000000000000640000000000000, 0.004666666666666646236000000000, - 0.001749999999999918288000000000, 6.790775842120942762000000000000, 0.852741421120495557400000000000, 'Continuation', - 0.009666666666667822483000000000, '2025-08-15 04:00:00'::timestamp without time zone, 8.353999999999999204000000000000, 13, 0, 0.027833333333332710420000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:02:12 Duration: 12ms 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 ('5158402458958413000.3059|45883.8229|45884.1771|45883.5|45884.1667|10.2254|10.213|10.1506|10.2048', 515840245895841300, 5.000000000000000000000000000000, 'Triangle', 4, '2025-08-15 01:56:07'::timestamp without time zone, - 1, 0.291350457526118100600000000000, 0.305870148508466166400000000000, 0.361768027015222704000000000000, 0.490632812738208801200000000000, 0.390045467774485565800000000000, 10.171762079922221034000000000000, 10.191360866634258997000000000000, '2025-08-15 04:30:00'::timestamp without time zone, '2025-08-15 12:45:00'::timestamp without time zone, '2025-08-14 10:00:00'::timestamp without time zone, '2025-08-15 04:30:00'::timestamp without time zone, 10.201879999999999171000000000000, 10.206474062499999889000000000000, '2025-08-14 19:45:00'::timestamp without time zone, '2025-08-15 04:15:00'::timestamp without time zone, '2025-08-14 12:00:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 10.225400000000000489000000000000, 10.213010000000000588000000000000, 10.150570000000000093000000000000, 10.204779999999999518000000000000, 0.000847031249999991020500000000, - 0.000364411764705879434300000000, 1.597848184925183324000000000000, 0.374158315267715258000000000000, 'Continuation', 0.001505937499999276952000000000, '2025-08-15 04:30:00'::timestamp without time zone, 10.205360000000000653000000000000, 66, 0, 0.017280000000000406150000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:01:03 Duration: 11ms 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 ('515840245868922300-1|45882.75|45883.6875|45883.1875|45884.1667|1.7899|1.7947|1.7832|1.7922', 515840245868922300, 3.000000000000000000000000000000, 'Rising Wedge', 4, '2025-08-15 02:26:11'::timestamp without time zone, 1, 0.070088874424648131560000000000, - 1.000000000000000000000000000000, 0.350999890722325402800000000000, 0.475779898274237445000000000000, 0.564682717333262584900000000000, 1.796620344085411824000000000000, 1.798426825804988472000000000000, '2025-08-15 05:00:00'::timestamp without time zone, '2025-08-15 22:30:00'::timestamp without time zone, '2025-08-13 13:00:00'::timestamp without time zone, '2025-08-15 05:00:00'::timestamp without time zone, 1.786969999999999947000000000000, 1.795679999999999943000000000000, '2025-08-13 18:00:00'::timestamp without time zone, '2025-08-14 16:30:00'::timestamp without time zone, '2025-08-14 04:30:00'::timestamp without time zone, '2025-08-15 04:00:00'::timestamp without time zone, 1.789909999999999890000000000000, 1.794720000000000093000000000000, 1.783230000000000093000000000000, 1.792189999999999950000000000000, 0.000190638297872337391500000000, 0.000106888888888893396400000000, 1.629541805640622787000000000000, 0.386330564494557771000000000000, 'Continuation', 0.000000000000000000000000000000, '2025-08-15 05:00:00'::timestamp without time zone, 1.795330000000000092000000000000, 70, 0, 0.000000000000000000000000000000, 0, CURRENT_TIMESTAMP::timestamp without time zone) ON CONFLICT DO NOTHING;
Date: 2025-08-15 04:31:08 Duration: 11ms Database: acaweb_fx User: postgres Remote: 127.0.0.1 Application: [unknown]
20 0ms 5ms 1ms 624 903ms 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 #20
Day Hour Count Duration Avg duration Aug 15 04 624 903ms 1ms [ User: postgres - Total duration: 903ms - Times executed: 624 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 903ms - Times executed: 624 ]
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol FROM downloadersymbolsettings dss INNER JOIN symbols s ON dss.symbolid = s.symbolid WHERE dss.classname = 'ATFX' AND s.deleted = 0 AND dss.enabled = 1;
Date: 2025-08-15 04:30:26 Duration: 5ms 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 04:00:39 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 04:45:21 Duration: 4ms Database: acaweb_fx User: postgres Remote: 192.168.4.142 Application: PostgreSQL JDBC Driver Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3s782ms 3,326 0ms 21ms 1ms WITH rar_max as ( ;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Aug 15 04 3,326 3s782ms 1ms [ User: postgres - Total duration: 1h14m57s - Times executed: 3326 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1h14m57s - Times executed: 3326 ]
-
WITH rar_max as ( ;
Date: 2025-08-15 04:29:23 Duration: 21ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
WITH rar_max as ( ;
Date: 2025-08-15 04:32:24 Duration: 19ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
WITH rar_max as ( ;
Date: 2025-08-15 04:28:53 Duration: 15ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
2 3s397ms 6,682 0ms 19ms 0ms SELECT ;Times Reported Time consuming prepare #2
Day Hour Count Duration Avg duration 04 6,682 3s397ms 0ms [ User: postgres - Total duration: 12s539ms - Times executed: 6682 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 12s539ms - Times executed: 6682 ]
-
SELECT ;
Date: 2025-08-15 04:31:24 Duration: 19ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SELECT ;
Date: 2025-08-15 04:31:24 Duration: 16ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
SELECT ;
Date: 2025-08-15 04:29:53 Duration: 12ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
3 728ms 624 0ms 1ms 1ms SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;Times Reported Time consuming prepare #3
Day Hour Count Duration Avg duration 04 624 728ms 1ms [ User: postgres - Total duration: 903ms - Times executed: 624 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 903ms - Times executed: 624 ]
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 04:31:00 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 04:30:26 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 04:32:03 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
4 467ms 3,179 0ms 7ms 0ms SET extra_float_digits = 3;Times Reported Time consuming prepare #4
Day Hour Count Duration Avg duration 04 3,179 467ms 0ms [ User: postgres - Total duration: 36ms - Times executed: 3179 ]
[ Application: [unknown] - Total duration: 36ms - Times executed: 3179 ]
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:32:24 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:31:24 Duration: 5ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:53:28 Duration: 4ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
5 435ms 1,086 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 #5
Day Hour Count Duration Avg duration 04 1,086 435ms 0ms [ User: postgres - Total duration: 3s539ms - Times executed: 1086 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 3s539ms - Times executed: 1086 ]
-
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 04:31: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 04:46:14 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 04:17:35 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
6 262ms 2,844 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 prepare #6
Day Hour Count Duration Avg duration 04 2,844 262ms 0ms [ User: postgres - Total duration: 1s590ms - Times executed: 2844 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s590ms - Times executed: 2844 ]
-
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 04:31:00 Duration: 0ms 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 04:30:50 Duration: 0ms 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 04:30:58 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
7 230ms 4,264 0ms 4ms 0ms select 1;Times Reported Time consuming prepare #7
Day Hour Count Duration Avg duration 04 4,264 230ms 0ms [ User: postgres - Total duration: 21ms - Times executed: 4264 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 21ms - Times executed: 4264 ]
-
select 1;
Date: 2025-08-15 04:20:04 Duration: 4ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
select 1;
Date: 2025-08-15 04:31:24 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
select 1;
Date: 2025-08-15 04:49:19 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
8 189ms 1,718 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 04 1,718 189ms 0ms [ User: postgres - Total duration: 862ms - Times executed: 1718 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 862ms - Times executed: 1718 ]
-
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 04:02:36 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 04:10:37 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 04:02:34 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
9 113ms 20 4ms 7ms 5ms with sym_info as ( ;Times Reported Time consuming prepare #9
Day Hour Count Duration Avg duration 04 20 113ms 5ms [ User: postgres - Total duration: 39s605ms - Times executed: 20 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 39s605ms - Times executed: 20 ]
-
with sym_info as ( ;
Date: 2025-08-15 04:51:57 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238
-
with sym_info as ( ;
Date: 2025-08-15 04:51:45 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238
-
with sym_info as ( ;
Date: 2025-08-15 04:52:02 Duration: 7ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238
10 105ms 90 0ms 3ms 1ms WITH last_candle AS ( ;Times Reported Time consuming prepare #10
Day Hour Count Duration Avg duration 04 90 105ms 1ms [ User: postgres - Total duration: 30s192ms - Times executed: 90 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 30s192ms - Times executed: 90 ]
-
WITH last_candle AS ( ;
Date: 2025-08-15 04:36:10 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
WITH last_candle AS ( ;
Date: 2025-08-15 04:24:08 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
WITH last_candle AS ( ;
Date: 2025-08-15 04:16:23 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
11 46ms 18 1ms 3ms 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 #11
Day Hour Count Duration Avg duration 04 18 46ms 2ms [ User: postgres - Total duration: 31ms - Times executed: 18 ]
[ Application: [unknown] - Total duration: 31ms - 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 04:31:01 Duration: 3ms 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 04:51:01 Duration: 3ms 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 04:01:02 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
12 42ms 3,152 0ms 3ms 0ms SET application_name = 'PostgreSQL JDBC Driver';Times Reported Time consuming prepare #12
Day Hour Count Duration Avg duration 04 3,152 42ms 0ms [ User: postgres - Total duration: 41ms - Times executed: 3152 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 41ms - Times executed: 3152 ]
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 04:25:53 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 04:32:24 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
SET application_name = 'PostgreSQL JDBC Driver';
Date: 2025-08-15 04:28:23 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
13 27ms 69 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 #13
Day Hour Count Duration Avg duration 04 69 27ms 0ms [ User: postgres - Total duration: 108ms - Times executed: 69 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 108ms - Times executed: 69 ]
-
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 04:10:30 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 04:10:32 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 04:10:53 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142
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 04 24 17ms 0ms [ User: postgres - Total duration: 57ms - Times executed: 24 ]
[ Application: [unknown] - Total duration: 57ms - Times executed: 24 ]
-
select count(*) from datafeed_restarter_events where is_current_entry = 1;
Date: 2025-08-15 04:15:00 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 04:00: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 04:55:00 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
15 17ms 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 #15
Day Hour Count Duration Avg duration 04 6 17ms 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 04:10: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 04:20: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 04:00:04 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.2.126
16 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 #16
Day Hour Count Duration Avg duration 04 6 16ms 2ms [ User: postgres - Total duration: 32s285ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 32s285ms - 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 04:00: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 04:30:02 Duration: 2ms 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 04:20:02 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
17 16ms 11 0ms 2ms 1ms with wh_patitioned as ( ;Times Reported Time consuming prepare #17
Day Hour Count Duration Avg duration 04 11 16ms 1ms [ User: postgres - Total duration: 82ms - Times executed: 11 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 82ms - Times executed: 11 ]
-
with wh_patitioned as ( ;
Date: 2025-08-15 04:10:01 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145
-
with wh_patitioned as ( ;
Date: 2025-08-15 04:35:01 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20
-
with wh_patitioned as ( ;
Date: 2025-08-15 04:16:00 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145
18 12ms 11 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 #18
Day Hour Count Duration Avg duration 04 11 12ms 1ms [ User: postgres - Total duration: 34ms - Times executed: 11 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 34ms - Times executed: 11 ]
-
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 04:57:38 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 04:17:33 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 04:22:34 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
19 8ms 11 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 04 11 8ms 0ms [ User: postgres - Total duration: 10ms - Times executed: 11 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 10ms - Times executed: 11 ]
-
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 04:17:33 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 04:57:38 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 04:42:36 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
20 7ms 17 0ms 1ms 0ms WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;Times Reported Time consuming prepare #20
Day Hour Count Duration Avg duration 04 17 7ms 0ms [ User: postgres - Total duration: 0ms - Times executed: 17 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 0ms - Times executed: 17 ]
-
WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;
Date: 2025-08-15 04:42:24 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;
Date: 2025-08-15 04:51:26 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;
Date: 2025-08-15 04:32:36 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 37s949ms 7,382 0ms 53ms 5ms WITH rar_max as ( ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Aug 15 04 7,382 37s949ms 5ms [ User: postgres - Total duration: 1h43m16s - Times executed: 7382 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1h36m19s - Times executed: 7322 ]
[ Application: [unknown] - Total duration: 6m57s - Times executed: 60 ]
-
WITH rar_max as ( ;
Date: 2025-08-15 04:28:53 Duration: 53ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '606636041449389301', $2 = '606636041449389301', $3 = '606636041449389301'
-
WITH rar_max as ( ;
Date: 2025-08-15 04:27:53 Duration: 51ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '606620957084347301', $2 = '606620957084347301', $3 = '606620957084347301'
-
WITH rar_max as ( ;
Date: 2025-08-15 04:27:53 Duration: 45ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '606603973948639301', $2 = '606603973948639301', $3 = '606603973948639301'
2 35s373ms 91,455 0ms 42ms 0ms SELECT ;Times Reported Time consuming bind #2
Day Hour Count Duration Avg duration 04 91,455 35s373ms 0ms [ User: postgres - Total duration: 2m25s - Times executed: 91455 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2m25s - Times executed: 91455 ]
-
SELECT ;
Date: 2025-08-15 04:30:54 Duration: 42ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '958', $2 = '958', $3 = '515840243152971300'
-
SELECT ;
Date: 2025-08-15 04:27:53 Duration: 40ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '958', $2 = '958', $3 = '515840249415001300'
-
SELECT ;
Date: 2025-08-15 04:17:32 Duration: 40ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '958', $2 = '958', $3 = '515840217487255300'
3 1s118ms 624 1ms 2ms 1ms SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;Times Reported Time consuming bind #3
Day Hour Count Duration Avg duration 04 624 1s118ms 1ms [ User: postgres - Total duration: 903ms - Times executed: 624 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 903ms - Times executed: 624 ]
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 04:01:12 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = 'MILLENNIUMPF'
-
SELECT s.symbolid, dss.downloadfrequency, dss.downloadersymbol;
Date: 2025-08-15 04:32:03 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 04:02:27 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = 'GLOBALGTMT5'
4 1s109ms 150 4ms 29ms 7ms WITH last_candle AS ( ;Times Reported Time consuming bind #4
Day Hour Count Duration Avg duration 04 150 1s109ms 7ms [ User: postgres - Total duration: 51s275ms - Times executed: 150 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 51s275ms - Times executed: 150 ]
-
WITH last_candle AS ( ;
Date: 2025-08-15 04:00:04 Duration: 29ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20 parameters: $1 = '958', $2 = '958'
-
WITH last_candle AS ( ;
Date: 2025-08-15 04:44:06 Duration: 19ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '667', $2 = '667'
-
WITH last_candle AS ( ;
Date: 2025-08-15 04:00:01 Duration: 18ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.20 parameters: $1 = '558', $2 = '558'
5 910ms 63,398 0ms 4ms 0ms select 1;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 04 63,398 910ms 0ms [ User: postgres - Total duration: 242ms - Times executed: 63398 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 241ms - Times executed: 63303 ]
[ Application: [unknown] - Total duration: 0ms - Times executed: 95 ]
-
select 1;
Date: 2025-08-15 04:05:41 Duration: 4ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
select 1;
Date: 2025-08-15 04:12:33 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
select 1;
Date: 2025-08-15 04:29:53 Duration: 2ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
6 742ms 27 0ms 114ms 27ms with wh_patitioned as ( ;Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 04 27 742ms 27ms [ User: postgres - Total duration: 216ms - Times executed: 27 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 216ms - Times executed: 27 ]
-
with wh_patitioned as ( ;
Date: 2025-08-15 04:00:02 Duration: 114ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145 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 04:21:14 Duration: 39ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145 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 04:21:13 Duration: 38ms 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 655ms 20 28ms 45ms 32ms with sym_info as ( ;Times Reported Time consuming bind #7
Day Hour Count Duration Avg duration 04 20 655ms 32ms [ User: postgres - Total duration: 39s605ms - Times executed: 20 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 39s605ms - Times executed: 20 ]
-
with sym_info as ( ;
Date: 2025-08-15 04:51:57 Duration: 45ms 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'
-
with sym_info as ( ;
Date: 2025-08-15 04:52:02 Duration: 44ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.238 parameters: $1 = '692', $2 = 'Forex', $3 = 'Forex', $4 = '692', $5 = 'Forex', $6 = '692', $7 = '692', $8 = 'Forex', $9 = '692'
-
with sym_info as ( ;
Date: 2025-08-15 04:51:48 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'
8 473ms 5,700 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 #8
Day Hour Count Duration Avg duration 04 5,700 473ms 0ms [ User: postgres - Total duration: 5s953ms - Times executed: 5700 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 5s953ms - Times executed: 5700 ]
-
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 04:15:07 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 04:45:00', $2 = '182.4815', $3 = '182.4835', $4 = '182.3905', $5 = '182.424', $6 = '1305', $7 = '515840230446458300', $8 = '0', $9 = '2025-08-15 04:15:07.053', $10 = '2025-08-15 04:15:06.894', $11 = '182.4815', $12 = '182.4835', $13 = '182.3905', $14 = '182.424', $15 = '1305', $16 = '0', $17 = '2025-08-15 04:15:07.053', $18 = '2025-08-15 04:15:06.894'
-
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 04:45:59 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 05:30:00', $2 = '3337.76', $3 = '3339.92', $4 = '3337.16', $5 = '3339.03', $6 = '1524', $7 = '515840247906526300', $8 = '0', $9 = '2025-08-15 04:45:59.576', $10 = '2025-08-15 04:45:59.455', $11 = '3337.76', $12 = '3339.92', $13 = '3337.16', $14 = '3339.03', $15 = '1524', $16 = '0', $17 = '2025-08-15 04:45:59.576', $18 = '2025-08-15 04:45:59.455'
-
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 04:31:02 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 05:15:00', $2 = '147.298', $3 = '147.385', $4 = '147.298', $5 = '147.334', $6 = '798', $7 = '515840233441200300', $8 = '0', $9 = '2025-08-15 04:31:02.474', $10 = '2025-08-15 04:31:02.17', $11 = '147.298', $12 = '147.385', $13 = '147.298', $14 = '147.334', $15 = '798', $16 = '0', $17 = '2025-08-15 04:31:02.474', $18 = '2025-08-15 04:31:02.17'
9 353ms 37 0ms 21ms 9ms WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;Times Reported Time consuming bind #9
Day Hour Count Duration Avg duration 04 37 353ms 9ms [ User: postgres - Total duration: 0ms - Times executed: 37 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 0ms - Times executed: 37 ]
-
WITH /*Latest.JapSticks*/ all_results AS ( SELECT ;
Date: 2025-08-15 04:42:24 Duration: 21ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '489', $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 04:51:26 Duration: 17ms 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 04:40:07 Duration: 13ms 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'
10 247ms 3,285 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 04 3,285 247ms 0ms [ User: postgres - Total duration: 1s721ms - Times executed: 3285 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s721ms - Times executed: 3285 ]
-
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 04:31:00 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 05:00:00', $2 = '31.7', $3 = '31.7', $4 = '31.3', $5 = '31.35', $6 = '99', $7 = '515840247893477300', $8 = '0', $9 = '2025-08-15 04:31:00.348', $10 = '2025-08-15 04:31:00.175', $11 = '31.7', $12 = '31.7', $13 = '31.3', $14 = '31.35', $15 = '99', $16 = '0', $17 = '2025-08-15 04:31:00.348', $18 = '2025-08-15 04:31:00.175'
-
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 04:30:50 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 05:00:00', $2 = '1.3536', $3 = '1.354', $4 = '1.35344', $5 = '1.35358', $6 = '1446', $7 = '515840247884826300', $8 = '0', $9 = '2025-08-15 04:30:50.202', $10 = '2025-08-15 04:30:50.056', $11 = '1.3536', $12 = '1.354', $13 = '1.35344', $14 = '1.35358', $15 = '1446', $16 = '0', $17 = '2025-08-15 04:30:50.202', $18 = '2025-08-15 04:30:50.056'
-
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 04:30:52 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 05:00:00', $2 = '120.09', $3 = '120.42', $4 = '119.9', $5 = '120.3', $6 = '1404', $7 = '515840247891126300', $8 = '0', $9 = '2025-08-15 04:30:52.176', $10 = '2025-08-15 04:30:52.035', $11 = '120.09', $12 = '120.42', $13 = '119.9', $14 = '120.3', $15 = '1404', $16 = '0', $17 = '2025-08-15 04:30:52.176', $18 = '2025-08-15 04:30:52.035'
11 169ms 2,164 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 04 2,164 169ms 0ms [ User: postgres - Total duration: 945ms - Times executed: 2164 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 945ms - Times executed: 2164 ]
-
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 04:10:37 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-14 21:00:00', $2 = '520.92', $3 = '522.02', $4 = '520.1', $5 = '521.38', $6 = '3220', $7 = '515840247896450300', $8 = '0', $9 = '2025-08-15 04:10:37.042', $10 = '2025-08-15 04:10:36.943', $11 = '520.92', $12 = '522.02', $13 = '520.1', $14 = '521.38', $15 = '3220', $16 = '0', $17 = '2025-08-15 04:10:37.042', $18 = '2025-08-15 04:10:36.943'
-
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 04:02:34 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-14 21:00:00', $2 = '179.88', $3 = '179.95', $4 = '178.69', $5 = '178.98', $6 = '737', $7 = '515840247929791300', $8 = '0', $9 = '2025-08-15 04:02:34.342', $10 = '2025-08-15 04:02:34.299', $11 = '179.88', $12 = '179.95', $13 = '178.69', $14 = '178.98', $15 = '737', $16 = '0', $17 = '2025-08-15 04:02:34.342', $18 = '2025-08-15 04:02:34.299'
-
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 04:10:41 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-15 03:00:00', $2 = '8892.7', $3 = '8899.5', $4 = '8886.7', $5 = '8886.8', $6 = '556', $7 = '515840248015562300', $8 = '0', $9 = '2025-08-15 04:10:41.166', $10 = '2025-08-15 04:10:41.068', $11 = '8892.7', $12 = '8899.5', $13 = '8886.7', $14 = '8886.8', $15 = '556', $16 = '0', $17 = '2025-08-15 04:10:41.166', $18 = '2025-08-15 04:10:41.068'
12 67ms 75 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 #12
Day Hour Count Duration Avg duration 04 75 67ms 0ms [ User: postgres - Total duration: 467ms - Times executed: 75 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 412ms - Times executed: 67 ]
[ Application: [unknown] - Total duration: 54ms - 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 04:50:14 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 182.165.1.42 parameters: $1 = '689', $2 = 'XAUUSD', $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 04:32:13 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 182.165.1.42 parameters: $1 = '689', $2 = 'XAUUSD', $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 04:54:57 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 182.165.1.42 parameters: $1 = '689', $2 = 'WTI', $3 = '689'
13 57ms 13 3ms 6ms 4ms SELECT DISTINCT ON (basegroupname, symbol) ;Times Reported Time consuming bind #13
Day Hour Count Duration Avg duration 04 13 57ms 4ms [ User: postgres - Total duration: 1s821ms - Times executed: 13 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 1s821ms - Times executed: 13 ]
-
SELECT DISTINCT ON (basegroupname, symbol) ;
Date: 2025-08-15 04:31:08 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 04:36:05 Duration: 5ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '538', $2 = '538'
-
SELECT DISTINCT ON (basegroupname, symbol) ;
Date: 2025-08-15 04:17:34 Duration: 5ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74 parameters: $1 = '689', $2 = '689'
14 30ms 1 30ms 30ms 30ms with maxwhid as ( ;Times Reported Time consuming bind #14
Day Hour Count Duration Avg duration 04 1 30ms 30ms [ User: postgres - Total duration: 43ms - Times executed: 1 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 43ms - Times executed: 1 ]
-
with maxwhid as ( ;
Date: 2025-08-15 04:11:41 Duration: 30ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.17 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'
15 28ms 375 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 #15
Day Hour Count Duration Avg duration 04 375 28ms 0ms [ User: postgres - Total duration: 31ms - Times executed: 375 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 31ms - Times executed: 375 ]
-
/*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 04:47:59 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.42 parameters: $1 = '606638745524468301'
-
/*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 04:30:48 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.23 parameters: $1 = '606637821529783301'
-
/*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 04:02:45 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.23 parameters: $1 = '606636982862711301'
16 27ms 230 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 #16
Day Hour Count Duration Avg duration 04 230 27ms 0ms [ User: postgres - Total duration: 185ms - Times executed: 230 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 185ms - Times executed: 230 ]
-
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 04:01:52 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-14 15:00:00', $2 = '25527.1', $3 = '25529.1', $4 = '25261.3', $5 = '25299.1', $6 = '22776', $7 = '515840247934272300', $8 = '0', $9 = '2025-08-15 04:01:52.154', $10 = '2025-08-15 04:01:52.09', $11 = '25527.1', $12 = '25529.1', $13 = '25261.3', $14 = '25299.1', $15 = '22776', $16 = '0', $17 = '2025-08-15 04:01:52.154', $18 = '2025-08-15 04:01:52.09'
-
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 04:02:30 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-14 16:00:00', $2 = '234.4', $3 = '234.77', $4 = '230.81', $5 = '232.89', $6 = '24534', $7 = '515840247917569300', $8 = '0', $9 = '2025-08-15 04:02:30.302', $10 = '2025-08-15 04:02:30.247', $11 = '234.4', $12 = '234.77', $13 = '230.81', $14 = '232.89', $15 = '24534', $16 = '0', $17 = '2025-08-15 04:02:30.302', $18 = '2025-08-15 04:02:30.247'
-
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 04:02:32 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.4.142 parameters: $1 = '2025-08-14 16:00:00', $2 = '94.32', $3 = '95.17', $4 = '94.21', $5 = '94.9', $6 = '8771', $7 = '515840247879567300', $8 = '0', $9 = '2025-08-15 04:02:32.314', $10 = '2025-08-15 04:02:32.27', $11 = '94.32', $12 = '95.17', $13 = '94.21', $14 = '94.9', $15 = '8771', $16 = '0', $17 = '2025-08-15 04:02:32.314', $18 = '2025-08-15 04:02:32.27'
17 24ms 6 3ms 5ms 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 #17
Day Hour Count Duration Avg duration 04 6 24ms 4ms [ User: postgres - Total duration: 32s285ms - Times executed: 6 ]
[ Application: [unknown] - Total duration: 32s285ms - 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 04:00:02 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 04:30:02 Duration: 4ms 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 04:40:03 Duration: 3ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.90
18 19ms 5 1ms 8ms 3ms WITH rcr_max as ( ;Times Reported Time consuming bind #18
Day Hour Count Duration Avg duration 04 5 19ms 3ms [ User: postgres - Total duration: 2ms - Times executed: 5 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 2ms - Times executed: 5 ]
-
WITH rcr_max as ( ;
Date: 2025-08-15 04:34:04 Duration: 8ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '606638867348901305', $2 = '606638867348901305', $3 = '606638867348901305'
-
WITH rcr_max as ( ;
Date: 2025-08-15 04:34:04 Duration: 5ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15 parameters: $1 = '606638867348901305', $2 = '606638867348901305', $3 = '606638867348901305'
-
WITH rcr_max as ( ;
Date: 2025-08-15 04:30:31 Duration: 1ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.145 parameters: $1 = '606638867348901305', $2 = '606638867348901305', $3 = '606638867348901305'
19 17ms 488 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 #19
Day Hour Count Duration Avg duration 04 488 17ms 0ms [ User: postgres - Total duration: 16ms - Times executed: 488 ]
[ Application: PostgreSQL JDBC Driver - Total duration: 16ms - Times executed: 488 ]
-
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 04:32:51 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.23 parameters: $1 = '515840249414411300'
-
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 04:18:14 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.23 parameters: $1 = '515840249414624300'
-
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 04:18:04 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.23 parameters: $1 = '515840217496798300'
20 14ms 3,179 0ms 0ms 0ms SET extra_float_digits = 3;Times Reported Time consuming bind #20
Day Hour Count Duration Avg duration 04 3,179 14ms 0ms [ User: postgres - Total duration: 36ms - Times executed: 3179 ]
[ Application: [unknown] - Total duration: 36ms - Times executed: 3179 ]
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:52:03 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:31:37 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.0.74
-
SET extra_float_digits = 3;
Date: 2025-08-15 04:34:04 Duration: 0ms Database: postgres User: acaweb_fx Remote: postgres Application: 192.168.1.15
-
Events
Log levels
Key values
- 659,611 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 2 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 1 Max number of times the same event was reported
- 2 Total events found
Rank Times reported Error 1 1 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #1
Day Hour Count Aug 15 04 1 - ERROR: relation "t0" does not exist at character 83
Statement: SELECT * FROM ( SELECT PriceDateTime, Open, High, Low, Close, Volume, BSF FROM T0 WHERE symbolid = $1 AND (BSF = 0 OR BSF IS NULL) ORDER BY PriceDateTime DESC LIMIT 1050 ) a ORDER BY PriceDateTime ASC
Date: 2025-08-15 04:13:40 Database: acaweb_fx Application: PostgreSQL JDBC Driver User: postgres Remote: 192.168.1.23
2 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Aug 15 04 1 - ERROR: duplicate key value violates unique constraint "ar_idx_sa_hist_conscandles_symbolid_datetime_direction"
Detail: Key (symbolid, datetime, direction)=(500991627550361200, 2025-06-12 10:00:00, -1) already exists.
Context: SQL statement "with aa as ( select symbolid, direction, "datetime", row_number() over(partition by symbolid,direction order by datetime desc) r from sa_hist_consecutivecandles ), sel AS ( select distinct sa.* from sa_hist_consecutivecandles sa inner join (select * from aa where r = 1) b on sa.symbolid = b.symbolid INNER JOIN downloadersymbolsettings dss on sa.symbolid = dss.symbolid where sa.direction = b.direction and sa.datetime != b.datetime AND (dss.archive is null OR dss.archive is true) LIMIT v_NumRecordsToArchive ), del AS ( DELETE FROM sa_hist_consecutivecandles USING sel WHERE sa_hist_consecutivecandles.symbolid = sel.symbolid and sa_hist_consecutivecandles."datetime" = sel.datetime and sa_hist_consecutivecandles.direction = sel.direction RETURNING sa_hist_consecutivecandles.* ) INSERT INTO archive.sa_hist_consecutivecandles (symbolid, "datetime", image, qty, percentile, direction, lastupdated, height) SELECT symbolid, "datetime", image, qty, percentile, direction, lastupdated, height FROM del WHERE NOT EXISTS (select 1 FROM archive.sa_hist_consecutivecandles WHERE symbolid = del.symbolid and direction = del.direction and "datetime" = del."datetime")" PL/pgSQL function cleanupconsecutivecandlesresults(integer,integer) line 7 at SQL statement
Statement: select cleanupconsecutivecandlesresults()Date: 2025-08-15 04:05:04 Database: acaweb_fx Application: psql User: postgres Remote: [local]