How to call to an existing bucket ? ( JDBC integrations psql) #352
-
Need help understanding how I get an existing bucket. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In most cases Bucket Proxy is cheap wrapper arround primary key, so there are no differences between creation proxy each time and storing once created proxy somewhere, caching the proxy will not allow to save somesing significant. So you should prefer the way that makes your code more clean. If build use and forget makes your code simpler then use this way. But if you have deal with a few buckets that are well known at development time then it is obviosly that all thes buckets can be created at application start time and just reused during application life time. Ptoxy manager in opposite to BucketProxy should be created only once. |
Beta Was this translation helpful? Give feedback.
In most cases Bucket Proxy is cheap wrapper arround primary key, so there are no differences between creation proxy each time and storing once created proxy somewhere, caching the proxy will not allow to save somesing significant. So you should prefer the way that makes your code more clean. If build use and forget makes your code simpler then use this way. But if you have deal with a few buckets that are well known at development time then it is obviosly that all thes buckets can be created at application start time and just reused during application life time.
Ptoxy manager in opposite to BucketProxy should be created only once.