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

What does "modified frequently" actually mean? #95

Open
lucasmarcelli opened this issue Aug 6, 2024 · 1 comment
Open

What does "modified frequently" actually mean? #95

lucasmarcelli opened this issue Aug 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@lucasmarcelli
Copy link

lucasmarcelli commented Aug 6, 2024

IVM is effective when we want to keep an IMMV up-to-date and small fraction of a base table is modified infrequently. Due to the overhead of immediate maintenance, IVM is not effective when a base table is modified frequently.

What does frequently mean in this context? Specifically for IVM is not effective when a base table is modified frequently. If I'm inserting/updating thousands of rows per hour on one or more base table, is this too frequent? The size of the base tables are in the 100-1000k rows range, so the proportion of updates is relatively low compared to the totals.

@yugo-n yugo-n added the question Further information is requested label Oct 14, 2024
@yugo-n
Copy link
Collaborator

yugo-n commented Oct 14, 2024

What does frequently mean in this context? Specifically for IVM is not effective when a base table is modified frequently.

This mean that pg_ivm causes low performance of base table modification due to the overhead, so pg_ivm is not suitable for use cases where the response time of table modification is crucial. If the table is modified frequently with the interval shorter than the response time, the impact on performance would be larger.

If I'm inserting/updating thousands of rows per hour on one or more base table, is this too frequent? The size of the base tables are in the 100-1000k rows range, so the proportion of updates is relatively low compared to the totals.

What frequency is acceptable would depend on the actual response time of table modification. You will need to make a performance measurement to know it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants