Good morning guys, how are you?
I have a performance problem on a system and need to solve customizing a SQL.
Let's imagine the following scenario: - A table with millions of records, each record has an ID (PK) and a TIMESTAMP.
-
I currently check the data for the TIMESTAMP range, for example last week's records.
-
We expect 1,000,000 (one million) records in that one-week period. I currently redeem these values to create a chart.
Let's agree that this is costly and somewhat stupid, since from one record to the other there is minimal change of values and I need to create a line chart where the value of X is TIMESTAMP.
DOUBT: Can you tell the bank to refer to this range but bring me up to 1,000 records only? But these records would have to be spaced out so they could understand the whole period, it would be a kind of sampling. Attempting to process this in system programming is sendable.
From now on I thank you so that you can help me, Gustavo Ferreira.