From 50185fb534e204b1acb750826dd9880fed2844f5 Mon Sep 17 00:00:00 2001 From: ^ Date: Thu, 2 May 2024 22:49:08 +0100 Subject: [PATCH] mpe_requests --- docs/dcc-options.md | 3 +++ docs/tables/mpe_requests.md | 23 +++++++++++++++++++++++ mkdocs.yml | 1 + 3 files changed, 27 insertions(+) create mode 100644 docs/tables/mpe_requests.md diff --git a/docs/dcc-options.md b/docs/dcc-options.md index 1c18ee8..520eb1d 100644 --- a/docs/dcc-options.md +++ b/docs/dcc-options.md @@ -27,6 +27,9 @@ By default, a maximum of 100 observations can be edited in the browser at one ti * Number (and size) of columns * Speed of client machine (laptop/desktop) +### DC_REQUEST_LOGS +On SASjs Server and SAS9 Server types, at the end of each DC SAS request, a record is added to the [MPE_REQUESTS](/tables/mpe_requests) table. In some situations this can cause table locks. To prevent this issue from occuring, the `DC_REQUEST_LOGS` option can be set to `NO` (Default is `YES`). + ### DC_RESTRICT_EDITRECORD Setting YES will prevent the EDIT RECORD dialog appearing in the EDIT screen by removing the "Edit Row" option in the right click menu, and the "ADD RECORD" button in the bottom left. diff --git a/docs/tables/mpe_requests.md b/docs/tables/mpe_requests.md new file mode 100644 index 0000000..580f2a4 --- /dev/null +++ b/docs/tables/mpe_requests.md @@ -0,0 +1,23 @@ +--- +layout: article +title: MPE_REQUESTS +description: The MPE_REQUESTS table contains an entry with details for every backend request (user, timestamp, job name) +og_image: /img/mpe_requests.png +--- + +# MPE_REQUESTS +The MPE_REQUESTS table contains an entry with details for every backend request. This is applied in the [mpeterm.sas](https://code.datacontroller.io/mpeterm_8sas.html) macro. + +In some scenarios this can cause table locks. To avoid this, you can set the [dc_request_logs](/dcc-options/#dc_request_logs) option to NO. + +![](/img/mpe_requests.png) + +## Columns + +There is explicitly **no primary key** on this (transaction) table for the purpose of speedy updates + + - `REQUEST_DTTM num`: Timestamp of the request + - `REQUEST_USER char(64)`: The user making the request + - `REQUEST_SERVICE char(64)`: The STP/Job being executed (under $apploc/services) + - `REQUEST_PARAMS char(128)`: Empty for now + diff --git a/mkdocs.yml b/mkdocs.yml index 3345921..4d7cc99 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -24,6 +24,7 @@ nav: - MPE_DATASTATUS_LIBS: tables/mpe_datastatus_libs.md - MPE_DATASTATUS_TABS: tables/mpe_datastatus_tabs.md - MPE_LOCKANYTABLE: tables/mpe_lockanytable.md + - MPE_REQUESTS: tables/mpe_requests.md - MPE_REVIEW: tables/mpe_review.md - MPE_SUBMIT: tables/mpe_submit.md - MPE_SECURITY: tables/mpe_security.md