|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileEntityStoreConfiguration
Configuration for the FileEntityStoreService
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity |
---|
Identity.IdentityMixin |
Method Summary | |
---|---|
Property<java.lang.String> |
directory()
The directory where the File Entity Store will be keep its persisted state. |
Property<java.lang.Integer> |
slices()
Defines how many slice directories the store should use. |
Methods inherited from interface org.qi4j.api.entity.Identity |
---|
identity |
Method Detail |
---|
@Optional Property<java.lang.String> directory()
Default: System.getProperty( "user.dir" ) + "/qi4j/filestore";
Ignored if the FileConfiguration service is found.
The content inside this directory should not be modified directly, and doing so may corrupt the data.
@Optional Property<java.lang.Integer> slices()
Many operating systems run into performance problems when the number of files in a directory grows. If you expect a large number of entities in the file entity store, it is wise to set the number of slices (default is 1) to an approximation of the square root of number of expected entities.
For instance, if you estimate that you will have 1 million entities in the file entity store, you should set the slices to 1000.
There is an limit of minimum 1 slice and maximum 10,000 slices, and if more slices than that is needed, you are probably pushing this entitystore beyond its capabilities.
Note that the slices() can not be changed once it has been set, as it would cause the entity store not to find the entities anymore.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |