|
37 | 37 | * <ol> |
38 | 38 | * <li>Name/location of DB: use {@link #name(String)}/{@link #baseDirectory}/{@link #androidContext(Object)} |
39 | 39 | * OR {@link #directory(File)}(default: name "objectbox)</li> |
40 | | - * <li>Max DB size: see {@link #maxSizeInKByte} (default: 512 MB)</li> |
| 40 | + * <li>Max DB size: see {@link #maxSizeInKByte} (default: 1 GB)</li> |
41 | 41 | * <li>Max readers: see {@link #maxReaders(int)} (default: 126)</li> |
42 | 42 | * </ol> |
43 | 43 | */ |
@@ -47,7 +47,7 @@ public class BoxStoreBuilder { |
47 | 47 | public static final String DEFAULT_NAME = "objectbox"; |
48 | 48 |
|
49 | 49 | /** The default maximum size the DB can grow to, which can be overwritten using {@link #maxSizeInKByte}. */ |
50 | | - public static final int DEFAULT_MAX_DB_SIZE_KBYTE = 512 * 1024; |
| 50 | + public static final int DEFAULT_MAX_DB_SIZE_KBYTE = 1024 * 1024; |
51 | 51 |
|
52 | 52 | final byte[] model; |
53 | 53 |
|
@@ -60,7 +60,7 @@ public class BoxStoreBuilder { |
60 | 60 | /** Ignored by BoxStore */ |
61 | 61 | private String name; |
62 | 62 |
|
63 | | - // 512 MB |
| 63 | + /** Defaults to {@link #DEFAULT_MAX_DB_SIZE_KBYTE}. */ |
64 | 64 | long maxSizeInKByte = DEFAULT_MAX_DB_SIZE_KBYTE; |
65 | 65 |
|
66 | 66 | ModelUpdate modelUpdate; |
@@ -218,10 +218,10 @@ BoxStoreBuilder modelUpdate(ModelUpdate modelUpdate) { |
218 | 218 |
|
219 | 219 | /** |
220 | 220 | * Sets the maximum size the database file can grow to. |
221 | | - * By default this is 512 MB, which should be sufficient for most applications. |
| 221 | + * By default this is 1 GB, which should be sufficient for most applications. |
222 | 222 | * <p> |
223 | 223 | * In general, a maximum size prevents the DB from growing indefinitely when something goes wrong |
224 | | - * (for example you insert data in an infinite look). |
| 224 | + * (for example you insert data in an infinite loop). |
225 | 225 | * |
226 | 226 | * @param maxSizeInKByte |
227 | 227 | */ |
|