Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Поиск в ADO
|
|||
|---|---|---|---|
|
#18+
Как в ADO организовать быстрый поиск, а то его метод Find ужасно тормозной ADO работает в связке с DataGrid и хотелось бы при наборе фразы позиционировать ADO на идентичную запись причем делать это динамически, а записей много и поиск длиться довольно долго ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.11.2001, 04:26 |
|
||
|
Поиск в ADO
|
|||
|---|---|---|---|
|
#18+
А сколько у тебя записей, что ADODB.Find тормозит? По каким полям (типы) ищеш? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.11.2001, 16:23 |
|
||
|
Поиск в ADO
|
|||
|---|---|---|---|
|
#18+
Перед первым запуском поиска нужно построить индекс на клиентском рекордсете. Притормаживание произойдет только на время создания индекса. Все последующие нажатия (при уже построенном индексе) отрабатываются как ракета. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.11.2001, 18:17 |
|
||
|
Поиск в ADO
|
|||
|---|---|---|---|
|
#18+
записей у меня 150000 как построить индекс?? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.11.2001, 04:37 |
|
||
|
Поиск в ADO
|
|||
|---|---|---|---|
|
#18+
если проиндексировать таблицы на сервере поможет ли это ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.11.2001, 04:58 |
|
||
|
Поиск в ADO
|
|||
|---|---|---|---|
|
#18+
По поводу создания временного индекса на лету: ADO provides the Find and Seek methods for locating a particular record in a Recordset. The Find method is supported by a variety of providers but is limited to a single search criterion. The Seek method supports searching on multiple criteria, but is not supported by many providers. Indexes on fields can greatly enhance the performance of the Recordset object's Find method and Sort and Filter properties. You can create an internal index for a Field object by setting its dynamic Optimize property. This dynamic property is added to the Field object's Properties collection when you set the CursorLocation property to adUseClient. Remember that this index is internal to ADO—you cannot gain access to it or use it for any other purpose. Also, this index is distinct from the Recordset object's Index property. Optimize Property—Dynamic (ADO) Specifies whether an index should be created on a field. Settings and Return Values Sets or returns a Boolean value that indicates whether an index should be created. Remarks An index can improve the performance of operations that find or sort values in a Recordset. The index is internal to ADO—you cannot explicitly access or use it in your application. To create an index on a field, set the Optimize property to True. To delete the index, set this property to False. Optimize is a dynamic property appended to the Field object Properties collection when the CursorLocation property is set to adUseClient. Usage Dim rs As New Recordset Dim fld As Field rs.CursorLocation = adUseClient 'Enable index creation rs.Fields.Append "Field1", adChar, 35, adFldIsNullable rs.Open Set fld = rs.Fields(0) fld.Properties("Optimize") = True 'Create an index fld.Properties("Optimize") = False 'Delete an index ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 16.11.2001, 14:39 |
|
||
|
|

start [/forum/topic.php?fid=46&msg=32016880&tid=1824963]: |
0ms |
get settings: |
10ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
52ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
55ms |
get tp. blocked users: |
2ms |
| others: | 251ms |
| total: | 412ms |

| 0 / 0 |
