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

Use a simpler database fetch in fullUpdateFromOld #3615

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

mikiher
Copy link
Contributor

@mikiher mikiher commented Nov 16, 2024

This is followup to #3604.

As discussed privately, the database fetch in LibraryItem.fullUpdateFromOld causes a memory spike because of the query complexity. This uses a simpler query to achieve the same result.

@mikiher mikiher marked this pull request as ready for review November 16, 2024 04:39
@advplyr
Copy link
Owner

advplyr commented Nov 16, 2024

Thanks!

@advplyr advplyr merged commit bbe5949 into advplyr:master Nov 16, 2024
5 checks passed
@mikiher mikiher deleted the fullupdatefromold-fix branch November 18, 2024 07:00
{
model: this.sequelize.models.series,
through: {
attributes: ['id', 'sequence']
Copy link
Owner

Choose a reason for hiding this comment

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

Turns out we were using the bookSeries.id to handle updating series sequence. #3636
I looked for this specifically and didn't see it. Just an fyi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I didn't notice the difference.

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