wso2 - Problem commad merge API_REQ_USER_BROW_SUMMARY
up vote
0
down vote
favorite
I'm using Wso2 Analytic, but when I was checking my database I found the following command executing by many time.
I'm use Oracle database version 11.2.0.4.
WSO2 API Manager Analytics
Version: 2.1.0
Command:
MERGE INTO API_REQ_USER_BROW_SUMMARY dest USING( SELECT :1 api, :2
version, :3 apiPublisher, :4 tenantDomain, :5 total_request_count, :6
year, :7 month, :8 day, :9 requestTime, :10 os, :11 browser FROM dual)
src ON(dest.api=src.api AND dest.version=src.version AND
dest.apiPublisher=src.apiPublisher AND dest.year=src.year AND
dest.month=src.month AND dest.day=src.day AND dest.os=src.os AND
dest.browser=src.browser AND dest.tenantDomain=src.tenantDomain)WHEN NOT
MATCHED THEN INSERT(api, version, apiPublisher, tenantDomain,
total_request_count, year, month, day, requestTime, os, browser)
VALUES(src.api, src.version, src.apiPublisher, src.tenantDomain,
src.total_request_count, src.year, src.month, src.day, src.requestTime,
src.os, src.browser) WHEN MATCHED THEN UPDATE SET
dest.total_request_count=src.total_request_count,
dest.requestTime=src.requestTime
wso2 wso2-das
add a comment |
up vote
0
down vote
favorite
I'm using Wso2 Analytic, but when I was checking my database I found the following command executing by many time.
I'm use Oracle database version 11.2.0.4.
WSO2 API Manager Analytics
Version: 2.1.0
Command:
MERGE INTO API_REQ_USER_BROW_SUMMARY dest USING( SELECT :1 api, :2
version, :3 apiPublisher, :4 tenantDomain, :5 total_request_count, :6
year, :7 month, :8 day, :9 requestTime, :10 os, :11 browser FROM dual)
src ON(dest.api=src.api AND dest.version=src.version AND
dest.apiPublisher=src.apiPublisher AND dest.year=src.year AND
dest.month=src.month AND dest.day=src.day AND dest.os=src.os AND
dest.browser=src.browser AND dest.tenantDomain=src.tenantDomain)WHEN NOT
MATCHED THEN INSERT(api, version, apiPublisher, tenantDomain,
total_request_count, year, month, day, requestTime, os, browser)
VALUES(src.api, src.version, src.apiPublisher, src.tenantDomain,
src.total_request_count, src.year, src.month, src.day, src.requestTime,
src.os, src.browser) WHEN MATCHED THEN UPDATE SET
dest.total_request_count=src.total_request_count,
dest.requestTime=src.requestTime
wso2 wso2-das
Anyone can help-me ?
– valdir
Nov 20 at 12:50
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using Wso2 Analytic, but when I was checking my database I found the following command executing by many time.
I'm use Oracle database version 11.2.0.4.
WSO2 API Manager Analytics
Version: 2.1.0
Command:
MERGE INTO API_REQ_USER_BROW_SUMMARY dest USING( SELECT :1 api, :2
version, :3 apiPublisher, :4 tenantDomain, :5 total_request_count, :6
year, :7 month, :8 day, :9 requestTime, :10 os, :11 browser FROM dual)
src ON(dest.api=src.api AND dest.version=src.version AND
dest.apiPublisher=src.apiPublisher AND dest.year=src.year AND
dest.month=src.month AND dest.day=src.day AND dest.os=src.os AND
dest.browser=src.browser AND dest.tenantDomain=src.tenantDomain)WHEN NOT
MATCHED THEN INSERT(api, version, apiPublisher, tenantDomain,
total_request_count, year, month, day, requestTime, os, browser)
VALUES(src.api, src.version, src.apiPublisher, src.tenantDomain,
src.total_request_count, src.year, src.month, src.day, src.requestTime,
src.os, src.browser) WHEN MATCHED THEN UPDATE SET
dest.total_request_count=src.total_request_count,
dest.requestTime=src.requestTime
wso2 wso2-das
I'm using Wso2 Analytic, but when I was checking my database I found the following command executing by many time.
I'm use Oracle database version 11.2.0.4.
WSO2 API Manager Analytics
Version: 2.1.0
Command:
MERGE INTO API_REQ_USER_BROW_SUMMARY dest USING( SELECT :1 api, :2
version, :3 apiPublisher, :4 tenantDomain, :5 total_request_count, :6
year, :7 month, :8 day, :9 requestTime, :10 os, :11 browser FROM dual)
src ON(dest.api=src.api AND dest.version=src.version AND
dest.apiPublisher=src.apiPublisher AND dest.year=src.year AND
dest.month=src.month AND dest.day=src.day AND dest.os=src.os AND
dest.browser=src.browser AND dest.tenantDomain=src.tenantDomain)WHEN NOT
MATCHED THEN INSERT(api, version, apiPublisher, tenantDomain,
total_request_count, year, month, day, requestTime, os, browser)
VALUES(src.api, src.version, src.apiPublisher, src.tenantDomain,
src.total_request_count, src.year, src.month, src.day, src.requestTime,
src.os, src.browser) WHEN MATCHED THEN UPDATE SET
dest.total_request_count=src.total_request_count,
dest.requestTime=src.requestTime
wso2 wso2-das
wso2 wso2-das
edited Nov 20 at 13:04
asked Nov 16 at 15:38
valdir
12
12
Anyone can help-me ?
– valdir
Nov 20 at 12:50
add a comment |
Anyone can help-me ?
– valdir
Nov 20 at 12:50
Anyone can help-me ?
– valdir
Nov 20 at 12:50
Anyone can help-me ?
– valdir
Nov 20 at 12:50
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
This is the expected behavior. DAS works with DB through a Data Access Layer(DAL). DAL uses merge queries to perform data inserts. When events does not come in batches this query can run on the DB per each event which will lead to above behavior.
It is a very strange behavior because the command keeps running and never ends and thus consuming database resource. Can not fix it? In my case the process is already over 24 hours running.
– valdir
Nov 21 at 18:10
Are you saying that this query is executes repeatedly or single execution does not complete and continues forever?
– Tishan
Nov 25 at 15:08
Just a single execution and not complete and continues forever.
– valdir
Nov 26 at 16:24
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53341043%2fwso2-problem-commad-merge-api-req-user-brow-summary%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
This is the expected behavior. DAS works with DB through a Data Access Layer(DAL). DAL uses merge queries to perform data inserts. When events does not come in batches this query can run on the DB per each event which will lead to above behavior.
It is a very strange behavior because the command keeps running and never ends and thus consuming database resource. Can not fix it? In my case the process is already over 24 hours running.
– valdir
Nov 21 at 18:10
Are you saying that this query is executes repeatedly or single execution does not complete and continues forever?
– Tishan
Nov 25 at 15:08
Just a single execution and not complete and continues forever.
– valdir
Nov 26 at 16:24
add a comment |
up vote
0
down vote
This is the expected behavior. DAS works with DB through a Data Access Layer(DAL). DAL uses merge queries to perform data inserts. When events does not come in batches this query can run on the DB per each event which will lead to above behavior.
It is a very strange behavior because the command keeps running and never ends and thus consuming database resource. Can not fix it? In my case the process is already over 24 hours running.
– valdir
Nov 21 at 18:10
Are you saying that this query is executes repeatedly or single execution does not complete and continues forever?
– Tishan
Nov 25 at 15:08
Just a single execution and not complete and continues forever.
– valdir
Nov 26 at 16:24
add a comment |
up vote
0
down vote
up vote
0
down vote
This is the expected behavior. DAS works with DB through a Data Access Layer(DAL). DAL uses merge queries to perform data inserts. When events does not come in batches this query can run on the DB per each event which will lead to above behavior.
This is the expected behavior. DAS works with DB through a Data Access Layer(DAL). DAL uses merge queries to perform data inserts. When events does not come in batches this query can run on the DB per each event which will lead to above behavior.
answered Nov 20 at 17:44
Tishan
58537
58537
It is a very strange behavior because the command keeps running and never ends and thus consuming database resource. Can not fix it? In my case the process is already over 24 hours running.
– valdir
Nov 21 at 18:10
Are you saying that this query is executes repeatedly or single execution does not complete and continues forever?
– Tishan
Nov 25 at 15:08
Just a single execution and not complete and continues forever.
– valdir
Nov 26 at 16:24
add a comment |
It is a very strange behavior because the command keeps running and never ends and thus consuming database resource. Can not fix it? In my case the process is already over 24 hours running.
– valdir
Nov 21 at 18:10
Are you saying that this query is executes repeatedly or single execution does not complete and continues forever?
– Tishan
Nov 25 at 15:08
Just a single execution and not complete and continues forever.
– valdir
Nov 26 at 16:24
It is a very strange behavior because the command keeps running and never ends and thus consuming database resource. Can not fix it? In my case the process is already over 24 hours running.
– valdir
Nov 21 at 18:10
It is a very strange behavior because the command keeps running and never ends and thus consuming database resource. Can not fix it? In my case the process is already over 24 hours running.
– valdir
Nov 21 at 18:10
Are you saying that this query is executes repeatedly or single execution does not complete and continues forever?
– Tishan
Nov 25 at 15:08
Are you saying that this query is executes repeatedly or single execution does not complete and continues forever?
– Tishan
Nov 25 at 15:08
Just a single execution and not complete and continues forever.
– valdir
Nov 26 at 16:24
Just a single execution and not complete and continues forever.
– valdir
Nov 26 at 16:24
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53341043%2fwso2-problem-commad-merge-api-req-user-brow-summary%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Anyone can help-me ?
– valdir
Nov 20 at 12:50