Skip to main content

Please help me understand FS_RELEASE_TO in code

Comments

1 comment

  • Zendesk API User
    Author: hoebbel - 5/17/2022 10:12

    Dear Mark,

    FS_RELEASE_TO indicates the time until which the corresponding version of the dataset was released. For currently released records the value is 9223372036854775807 (Long.MAX_VALUE), for changed datasets the value is 0.
    Other values can be found only in historical versions of the dataset.
    Example: If a dataset is modified and then released, the version of the dataset that was previously released (i.e. which had the value 9223372036854775807) gets the current date (in milliseconds since 1/1/1970 0am) (and the new version gets the value 9223372036854775807)
    Other corresponding internal columns in the database are FS_VALID_FROM (since when is the dataset valid) and FS_VALID_TO (until when was the dataset valid). A dataset visible within the SiteArchitect/Content creator needs to have a FS_VALID_FROM value of a past date and a FS_VALID_TO value of a future date (normally 9223372036854775807).

    It is somewhat more difficult to make a statement about why the query sometimes does not work. Based on the available information I can only guess, that it might be either because the query is executed with an outdated date or that a cache hits that does not yet contain the changes. Solution for the second case would be to reset the cache [<schema>.resetReadTimestamp() (https://docs.e-spirit.com/odfs/access/de/espirit/firstspirit/access/store/templatestore/Schema.html#resetReadTimestamp())].

    Best regards
    Holger

    0

Please sign in to leave a comment.