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

Forbedre ytelse på identpool #3647

Merged
merged 10 commits into from
Oct 14, 2024
Merged

Conversation

krharum
Copy link
Contributor

@krharum krharum commented Oct 8, 2024

Introduced new methods in IdentRepository to count and find Ident entities based on various parameters including Rekvireringsstatus, Identtype, Syntetisk, Kjoenn, and date range. Updated DatabaseService to utilize these new repository methods, enhancing the service's querying capabilities.

Introduced new methods in `IdentRepository` to count and find `Ident` entities based on various parameters including `Rekvireringsstatus`, `Identtype`, `Syntetisk`, `Kjoenn`, and date range. Updated `DatabaseService` to utilize these new repository methods, enhancing the service's querying capabilities.
#deploy-testnav-ident-pool

Revised methods for fetching and counting Idents in `DatabaseService` to improve query efficiency. Enabled H2 database console for local development and included sample data for testing. Adjusted security configurations to accommodate new endpoints and data sources.
@krharum krharum marked this pull request as ready for review October 9, 2024 08:29
@krharum krharum requested a review from a team as a code owner October 9, 2024 08:29
krharum and others added 6 commits October 9, 2024 10:29
#deploy-testnav-ident-pool

Modified the tests to ensure that identifier generation does not throw an exception when the desired amount of identifiers cannot be generated. Instead, the tests now assert that the resulting set size is less than the requested amount.
#deploy-testnav-ident-pool

Added HikariCP datasource configuration with minimum idle connections set to 10 and maximum pool size set to 100 to improve database connection management. This change is intended to optimize performance and resource utilization.
#deploy-testnav-ident-pool

This commit adds a new SQL migration script (V1.3.1__IndeksSyntetisk.sql) that creates an index for the 'syntetisk' column in the 'personidentifikator' table. This change is aimed at improving query performance involving the 'syntetisk' column.
#deploy-testnav-ident-pool

Changed the PostgreSQL version from 15 to 16 in the configuration file. This update ensures compatibility with the latest features and improvements provided by PostgreSQL 16.
#deploy-testnav-ident-pool

Adjusting the CPU request limit ensures that the application has sufficient resources to handle increased load. This change aims to prevent potential performance issues under higher demand.
Copy link
Contributor

@stigus stigus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser flott ut og stilig med PG16, bare endre litt på sql før merge 🤩

…t-pool

Inserted additional `personidentifikator` entries to the H2 database initialization script and adjusted the sequence restart point. Enhanced logging in `PoolService` to include the count of generated identifiers and increased the number of attempts for synthetic identifier generation.
Changed variable names to improve code readability and consistency in the `allocateIdenter` method. Replaced `List<Ident>` with `var` keyword for type inference. These changes should help streamline future modifications and maintenance.
@krharum krharum merged commit 1ead41f into master Oct 14, 2024
4 of 5 checks passed
@krharum krharum deleted the feature/identpool-improve-performance branch October 14, 2024 07:01
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

Successfully merging this pull request may close these issues.

2 participants