orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

CREATE/ALTER CLUSTER command enhancement

Open dm-ordb opened this issue 13 years ago • 6 comments

Hi,

What about the following enhancement request:

new SIZE attribute for CREATE CLUSTER and ALTER CLUSTER commands:

  • CREATE CLUSTER - to specify initial size (replace the defaults)
  • ALTER CLUSTER - shrink/enlarge cluster's size

Thank you.

dm-ordb avatar Feb 06 '13 13:02 dm-ordb

I definitely support this proposal.

I'm using OrientDB as a local object store for a client application. There I have quite a few classes which will have only a handful of records each, e.g. to populate dropdown controls etc. Currently the "local" storage seems to always allocate a cluster file of 1 MB per class so the overall solution grows unnecessarily fast.

Btw. the method "to change the default settings of new clusters" you describe in your wiki seems to have no effect on the initial cluster file size, or am I missing something here? https://github.com/orientechnologies/orientdb/wiki/Configuration

dxxr avatar Oct 29 '13 17:10 dxxr

Hi, Initial size of cluster in plocal storage is about 65K. I do not think that it will cause problems, does not it ?

andrii0lomakin avatar Oct 30 '13 13:10 andrii0lomakin

There used to be a comment in your wiki that plocal storage doesn't support transactions - this was the main reason i chose the older local storage. I can't find this comment anymore, so are transactions supported with plocal storage as of ODB 1.5.1 or newer? Can i migrate schema and data without loss from local to plocal? Would it make sense to combine this with a migration to version 1.6?

dxxr avatar Nov 01 '13 09:11 dxxr

Hi, plocal is 100% transactional. The only "new" thing not yet transactional are hash index. So Use plocal and SBTree indexes (the default one in 1.6) if you want to stay transactional.

Lvc@

On 1 November 2013 10:25, dxxr [email protected] wrote:

There used to be a comment in your wiki that plocal storage doesn't support transactions - this was the main reason i chose the older local storage. I can't find this comment anymore, so are transactions supported with plocal storage as of ODB 1.5.1 or newer? Can i migrate schema and data without loss from local to plocal? Would it make sense to combine this with a migration to version 1.6?

— Reply to this email directly or view it on GitHubhttps://github.com/orientechnologies/orientdb/issues/1337#issuecomment-27554837 .

lvca avatar Nov 01 '13 09:11 lvca

Thanks for the quick responses, I'll go for plocal when I migrate to 1.6.

dxxr avatar Nov 01 '13 11:11 dxxr

Not relevant anymore. Closing it.

lvca avatar Aug 03 '17 12:08 lvca