Oracle sequence caching

前端 未结 3 763
心在旅途
心在旅途 2021-02-15 18:22

I am trying to implement a sequence in an Oracle database to act as a surrogate key creator for a table. For performance reasons, I want this sequence to be cached. I have rea

3条回答
  •  余生分开走
    2021-02-15 18:46

    Say the cache has the values 101-200. The value written on disk is 201. Your insert uses 101-150. Instance goes down. Instance starts up. Next time the sequence is used 201-300 will be cached.

提交回复
热议问题