Advertisement
marrtins

Untitled

Jun 4th, 2024
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 5.64 KB | None | 0 0
  1. ###########################################################################################################################################
  2. # Generated        : 2024-06-04 17:31
  3. # Cmdline          : fbtrace_parser.php --sort=perf_natural trace.log
  4. # Queries          : 145
  5. # Excluded queries : 0
  6. ###########################################################################################################################################
  7.  
  8. Databases: AUTEX.FDB
  9. Time range: 2024-06-04 14:25:21 - 2024-06-04 14:25:43
  10. Queries: 4288
  11.  +----------- +----------- +----------- +
  12.  |            |   Avarage  |     Total  |
  13.  +----------- +----------- +----------- +
  14.  |  time (ms) |          0 |          1 |
  15.  |      reads |          0 |          0 |
  16.  |    fetches |         87 |     373058 |
  17.  |     writes |          0 |          0 |
  18.  |      reads |          0 |          0 |
  19.  |    records |          1 |       4288 |
  20.  +----------- +----------- +----------- +
  21. Sample SQL:
  22. SELECT FIRST 1 bar.ACCOUNT_ABBR FROM BOOKKEEPING_ACCOUNT_RULES bar
  23.             LEFT JOIN BOOKKEEPING_RULE_GOOD_TREE brgt ON(brgt.BOOKKEEPING_ACCOUNT_RULE_ID = bar.BOOKKEEPING_ACCOUNT_RULE_ID)
  24.             JOIN BOOKKEEPING_ACCOUNT_TYPES bat on (bat.TYPE_NAME = bar.ACCOUNT_ABBR)
  25.             WHERE bat.IS_ACTIVE = 'T' AND bar.DOC_KIND = 'S'  AND (bar.IS_PAKALPOJUMS = 'F' OR COALESCE(bar.IS_PAKALPOJUMS, '') = '') AND (bar.COUNTRY_GROUP_ID = 2 OR bar.COUNTRY_GROUP_ID IS NULL) AND (bat.LOCATION_ID = 2 OR bat.LOCATION_ID IS NULL) AND (COALESCE(bar.DOC_TYPE, '') = '' OR bar.DOC_TYPE = 'Y') AND (COALESCE(bar.DOC_PAY_TYPE, '') = '' OR bar.DOC_PAY_TYPE = 'N') AND (COALESCE(bar.PVN_RATE, '') = '' OR bar.PVN_RATE = '0') AND ((brgt.SUBGROUP_ID IS NULL AND brgt.GROUP_ID IS NULL AND brgt.CATEGORY_ID IS NULL) OR (brgt.SUBGROUP_ID = 26 OR (brgt.GROUP_ID = 3 AND brgt.SUBGROUP_ID IS NULL) OR (brgt.CATEGORY_ID = 3 AND brgt.SUBGROUP_ID IS NULL AND brgt.GROUP_ID IS NULL)))
  26.             ORDER BY IIF(bar.DOC_TYPE IS NULL, 0, 1) + IIF(bar.DOC_PAY_TYPE IS NULL, 0, 1) + IIF(bar.COUNTRY_GROUP_ID IS NULL OR (SELECT COALESCE(COUNTRIES.COUNTRY_GROUP_ID, CLIENTS.COUNTRY_GROUP_ID) FROM CLIENTS JOIN COUNTRIES ON(COUNTRIES.COUNTRY_ID = CLIENTS.COUNTRY_ID) WHERE CLIENT_ID = 3851) IS NULL, 0, 1) + IIF(bar.IS_PAKALPOJUMS IS NULL, 0, 1) + IIF(bat.LOCATION_ID IS NULL, 0, 1) + IIF(brgt.CATEGORY_ID IS NULL, 0, 1) + IIF(brgt.GROUP_ID IS NULL, 0, 1) + IIF(brgt.SUBGROUP_ID IS NULL, 0, 1) + IIF(COALESCE(bar.PVN_RATE, '') = '', 0, 1) DESC
  27.  
  28. Table                             Natural     Index    Update    Insert    Delete   Backout     Purge   Expunge
  29. ***************************************************************************************************************
  30. BOOKKEEPING_ACCOUNT_RULES          188672                                                                      
  31. BOOKKEEPING_ACCOUNT_TYPES           85760                                                                      
  32. BOOKKEEPING_RULE_GOOD_TREE          12864                                                                      
  33. ############################################################################################################################################
  34.  
  35. Databases: AUTEX.FDB
  36. Time range: 2024-06-04 14:25:21 - 2024-06-04 14:25:43
  37. Queries: 8576
  38.  +----------- +----------- +----------- +
  39.  |            |   Avarage  |     Total  |
  40.  +----------- +----------- +----------- +
  41.  |  time (ms) |          0 |          0 |
  42.  |      reads |          0 |          0 |
  43.  |    fetches |         24 |     205824 |
  44.  |     writes |          0 |          0 |
  45.  |      reads |          0 |          0 |
  46.  |    records |         20 |     171520 |
  47.  +----------- +----------- +----------- +
  48. Sample SQL:
  49. SELECT DISTINCT TYPE_NAME ACCOUNT_ABBR FROM BOOKKEEPING_ACCOUNT_TYPES WHERE IS_ACTIVE = 'T'  AND (LOCATION_ID = 2 OR LOCATION_ID IS NULL)
  50.  
  51. Table                             Natural     Index    Update    Insert    Delete   Backout     Purge   Expunge
  52. ***************************************************************************************************************
  53. BOOKKEEPING_ACCOUNT_TYPES          171520                                                                      
  54. ############################################################################################################################################
  55.  
  56. Databases: AUTEX.FDB
  57. Time range: 2024-06-04 14:25:21 - 2024-06-04 14:25:43
  58. Queries: 4288
  59.  +----------- +----------- +----------- +
  60.  |            |   Avarage  |     Total  |
  61.  +----------- +----------- +----------- +
  62.  |  time (ms) |          0 |          1 |
  63.  |      reads |          0 |          0 |
  64.  |    fetches |        156 |     668928 |
  65.  |     writes |          0 |          0 |
  66.  |      reads |          0 |          0 |
  67.  |    records |          2 |       8576 |
  68.  +----------- +----------- +----------- +
  69. Sample SQL:
  70. SELECT ba.BA_ID, ba.ACCOUNT_CODE1, ba.ACCOUNT_CODE2, ba.ACCOUNT_TYPE, bat.TYPE_NAME ACCOUNT_ABBR
  71.     FROM BOOKKEEPING_ACCOUNTS ba
  72.     JOIN BOOKKEEPING_ACCOUNT_TYPES bat ON(bat.TYPE_ID = ba.TYPE_ID)
  73.     WHERE bat.IS_ACTIVE = 'T' AND bat.TYPE_NAME = 'PPES'  AND (bat.LOCATION_ID = 2 OR bat.LOCATION_ID IS NULL)
  74.  
  75. Table                             Natural     Index    Update    Insert    Delete   Backout     Purge   Expunge
  76. ***************************************************************************************************************
  77. BOOKKEEPING_ACCOUNTS               162944                                                                      
  78. BOOKKEEPING_ACCOUNT_TYPES                    162944                                                            
  79. ############################################################################################################################################
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement