Persistence problem RRD4j recording everyChange

Hi everyone,
I have a RPI3 system with OH 4.2.3.
I used RRD4j persistence to store numerical data and to display them in chart.
I noticed an anomalous behavior when using persistence with the everyChang strategy.
When I change a piece of data, for example a setpoint, the previous value to the one set is written to the persistence file, also sometimes it happens that the data is not recorded in the file. To overcome this I added the everyHour strategy to be sure to have the last value saved in the file but it does not seem to be the right solution.
Can someone help me?
Below I attach some example files of the problem.

main.items

Number		SP_Allarme                      "Setpoint allarme  [%.0f]"                  (gSetpoint)

rrd4j.persist

Strategies {
  everyMinute : "0 * * * * ?"
  everyHour : "0 0 * * * ?"
  everyDay : "0 0 0 * * ?"
  default = everyChange
}

Items {
	gSetpoint*, gSpTempo*, gSwitchCaldo*  : strategy = everyChange, restoreOnStartup //everyMinute
	gTemperatura*, gHumidity* : strategy = everyMinute
}

image

file SP_Allamre.rrd empty:

{
  "name": "SP_Allarme",
  "datapoints": "0",
  "data": []
}

Change SP_Allarme:

image

file SP_Allamre.rrd empty:

{
  "name": "SP_Allarme",
  "datapoints": "1",
  "data": [
    {
      "time": 1735567440000,
      "state": "4800.0"
    }
  ]
}

With rrd4j you must use the everyMinute strategy:

Ok, thank you very much for the answer,
I had not found the thread you reported to me.