on 2018 Sep 06 7:33 PM
Hi. I think we have a problem with our e-commerce platform. Each time Hybris generates an order or anonymous user, an ID for SAP is generated and the range is for example: 0320000000-0330000000. The problem is when it generates this ID generates the identifier by skipping numbers, leaving others unused. The same for anonymous users ... We believe that this number can reach its limit soon. We use Hybris 6.4
Thanks you and regards.
Request clarification before answering.
The gaps in the number is due to the implementation of the number series in hybris.
The logic caches a certain range of numbers in-memory (for every server!) to avoid round-trips to the database. And, this also means as you restart the server(s), the unused range is lost.
The default range is configurable via the property numberseries.cache.size (default = 1000), you can also configure it per number series ( numberseries.cache.size.<key>, for example numberseries.cache.size.order_code=50)
Some additional information:
Number series are configured via PersistentKeyGenerator beans, which in turn use the various keygen... properties
Documentation can be found here: Transitioning to the ServiceLayer - Persistent Key Generation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.