ArcGIS Pro 3.1.1; mobile geodatabase
I have a standalone table called TEST_TABLE (14,538 rows) that is joined to a database view:
--test_table_nt_flag_vw
select
objectid,
case when type = 'NT' then 1 else 0 end as flag
from
test_table
I've sorted on the view's FLAG field in the attribute table.
Use case:
When opening the joined/sorted attribute table, I noticed that the Diagnostic Monitor logs show that redundant queries were sent to the database.
Video:
I've taken the logs from Diagnostic Monitor and pivoted/filtered them in the attached Excel spreadsheet (in the Pivoted and Filtered worksheet). That makes it easier to compare the queries against each other to see which ones are redundant. Source
Observations about the queries in the spreadsheet (each row in the spreadsheet summarizes a query from the logs):
Question:
Why does opening a table with a sorted join produce redundant queries?
I'm investigating this simple mobile geodatabase example in hopes that I can solve performance issues when doing the same thing, but with larger Oracle tables, as a way of coming up with a workaround for Virtual Attributes (ad hoc) that performs well.
Here's the SQLite query I used to pivot and filter the logs: Copy Diagnostic Monitor logs as Excel table, not as vertical tags