EclipseStore And Postgres Demo Application #143
-
Hi Team, However if I start java application in multiple instances and try to add or update records to root and perform storeroot operation,facing below issue: Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "Userdemo$channel_0_pk" I am unable to fetch latest storageManager and root content, before storing root. How to get latest storagemanger so that while storing data latest start and end values from User$channel_0 will be available and next offset value will be stored ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, this is unfortunately not possible. It is embedded storage. One storage - one JVM. PostgreSQL only serves as storage instead of disk at the moment. You can solve it with for example Rest API, one JVM will be the writer and another will communicate with him during rest. |
Beta Was this translation helpful? Give feedback.
-
Query has been answered. |
Beta Was this translation helpful? Give feedback.
Hello, this is unfortunately not possible. It is embedded storage. One storage - one JVM. PostgreSQL only serves as storage instead of disk at the moment. You can solve it with for example Rest API, one JVM will be the writer and another will communicate with him during rest.