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

Minimize number of db queries in enodebd update cbsd #576

Open
jkmar opened this issue Oct 6, 2022 · 0 comments
Open

Minimize number of db queries in enodebd update cbsd #576

jkmar opened this issue Oct 6, 2022 · 0 comments
Assignees

Comments

@jkmar
Copy link
Contributor

jkmar commented Oct 6, 2022

Currently we have following queries
SELECT * FROM CBSDS FOR UPDATE;
UPDATE CBSDS;
SELECT * FROM CBSDS;
SELECT * FROM GRANTS;
we want the following:
SELECT * FROM CBSDS JOIN GRANTS; // without for update
UPDATE CBSDS;

Implement the following interface:

type EnodebdManager interface {
	FetchCbsd(runner sq.BaseRunner, serial string) (*DetailedCbsd, error)
	UpdateCbsd(runner sq.BaseRunner, cbsd *DBCbsd) error
}
@WojSad WojSad self-assigned this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants