Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YSQL] Request to add Event_ID to the views yb_active_session_history and yb_event_desc. #25503

Open
1 task done
pdvmoto opened this issue Jan 6, 2025 · 0 comments
Open
1 task done
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue

Comments

@pdvmoto
Copy link

pdvmoto commented Jan 6, 2025

Jira Link: DB-14762

Description

[ASH]
Sumary: It will be useful if the view yb_wait_event_desc will display an ID (wait_ev_id) that can be referred by the records in yb_wait_event_descr.

Elaborate...

The view yb_active_session_history is useful, but in some cases we want to "keep that history" and store it into a table.

There are four text-fields: wait_event, _type, _class and _component. For storing the data, having 4 text-fields, in 1000s or millions+ of (history)records, is less efficient.

Furthermore, from saving a few days of ASH-records, we found there are probably less than 100 unique combinations of
event, _type, _class, and _component. This was confirmed by yb_wait_ev_desc: 47 records in our case. Even if multiplied by the possibilities for "component" this remains a manageable nr.

Hence the suggestion to add an (event_)ID field to both views. A simple "int" would suffice for storing the ASH data into a table, saving on storage, memory and network-traffic. Anyone interested in the text-description can join to the yb_wait_event_descr.

Note: Similar arguments can be applied to root_request_id and a number fo fields that seem related to that rr.. different issue.

Issue Type

kind/enhancement

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@pdvmoto pdvmoto added area/ysql Yugabyte SQL (YSQL) status/awaiting-triage Issue awaiting triage labels Jan 6, 2025
@yugabyte-ci yugabyte-ci added kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue labels Jan 6, 2025
@pdvmoto pdvmoto changed the title [YSQL] Request to add Event_ID to the views yb_active_session_history and to yb_event_desc. [YSQL] Request to add Event_ID to the views yb_active_session_history and yb_event_desc. Jan 6, 2025
@yugabyte-ci yugabyte-ci removed the status/awaiting-triage Issue awaiting triage label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

3 participants