Автор | Сообщение |
|
| |
Пост N: 6497
Зарегистрирован: 17.05.05
|
|
Отправлено: 14.07.17 13:08. Заголовок: Max размер базы (DBF) ADS
В доке пишут (я о размере файла) , что 1 файл не более 2 гиг , под NTFS. Решил проверить. Поэтапно довел размер до 4 627 729 075 байт , в конце делал dbseek для теста. Seek работает , ни чего не падает. ADS 10.x PS Получается доке нельзя верить или я что то пропустил ?
|
|
|
Ответов - 7
[только новые]
|
|
|
| |
Пост N: 6498
Зарегистрирован: 17.05.05
|
|
Отправлено: 14.07.17 13:17. Заголовок: Загнал еще 5 лямов з..
Загнал еще 5 лямов записей. Размер вырос до 5 607 729 271 байта. База открывается , Dbseek работает норм...
|
|
|
|
| |
Пост N: 6499
Зарегистрирован: 17.05.05
|
|
Отправлено: 14.07.17 14:23. Заголовок: Ответ нашел. File S..
Ответ нашел. File Size Support Greater Than 4 Gigabytes The Advantage proprietary file format (ADT/ADM/ADI) can support files sizes greater than 4 GB when used on NTFS or Linux file systems. Beginning with v8.0, Advantage Database Server can utilize DBF tables and their associated memo files (FPT and DBT) with file sizes greater than 4 GB. Index files associated with DBF tables (CDX, IDX, NTX) cannot exceed the 4 GB limit due to file format limitations, but this problem can be avoided by using multiple index files. When using DBF tables over 4 GB in size, you must use Advantage Proprietary Locking. Also, note that CA-Clipper applications must turn off rights checking (AX_RightsCheck( .F. )) when opening tables that exceed 4 GB in size.
|
|
|
|
| постоянный участник
|
Пост N: 5431
Зарегистрирован: 12.09.06
|
|
Отправлено: 19.07.17 12:46. Заголовок: Интересно, а какой м..
Интересно, а какой максимальный размер DBF/CDX для Харбора ? Вроде давались раньше цифры, но уже забылись...
|
|
|
|
| |
Пост N: 6502
Зарегистрирован: 17.05.05
|
|
Отправлено: 19.07.17 13:22. Заголовок: Andrey а тут пишут ..
Andrey а тут пишут core-master\doc\xhb-diff.txt + locks.txt
|
|
|
|
| постоянный участник
|
Пост N: 5432
Зарегистрирован: 12.09.06
|
|
Отправлено: 19.07.17 15:21. Заголовок: Вот это что ли ? In ..
Вот это что ли ? ... Тогда круто ! In both compilers maximal file size for tables, memos and indexes is limited only by OS and file format structures. Neither Harbour nor xHarbour introduce own limits here. The maximal file size for DBFs is limited by number of records 2^32-1 = 4294967295 and maximal record size: 2^16-1 = 65535 what gives nearly 2^48 = 256TB as maximal .dbf file size. The maximal memo format size depends on used memo type: DBT, FPT or SMT and size of memo block. It's limited by maximal number of memo blocks = 2^32 and size of memo block so it's 2^32*<size_of_memo_block>. The default memo block size for DBT is 512 bytes, FPT - 64 bytes and for SMT 32 bytes. So for standard memo block sizes the maximum are: DBT->l2TB, FPT->256GB, SMT->128GB. The maximal memo block size in Harbour is 2^32 and minimal is 1 byte and it can be any value between 1 and 65536 and then any number of 64KB blocks. The last limitation is introduced as workaround for some wrongly implemented in other languages memo drivers which were setting only 16 bits in 32bit field in memo header. Most of other languages has limit for memo block size at 2^15 and the block size has to be power of 2. Some of them also introduce minimal block size limits. If programmers plans to share data with programs compiled by such languages then he should check their documentation to not create memo files which cannot be accessed by them.
|
|
|
|
| |
Пост N: 6503
Зарегистрирован: 17.05.05
|
|
Отправлено: 19.07.17 15:24. Заголовок: А почитай еще по лок..
А почитай еще по локам , второй документ. В той же папке.
|
|
|
|
| постоянный участник
|
Пост N: 5433
Зарегистрирован: 12.09.06
|
|
Отправлено: 19.07.17 17:27. Заголовок: Понял... HARBOUR 32-..
Понял... HARBOUR 32-bit locking ================ DBF FLOCK SIZE: 294967295 => maximum records: 294'967'295 maximum file size in non POSIX systems: 4'000'000'000 HARBOUR 64-bit locking DBF FLOCK SIZE: 0xfffffffeUL => maximum records: 4'294'967'294 maximum file size: no limits created by locks
|
|
|
|