Hi,
Using SQL Server 2008r2 on an I7 quad processor machine...
This code is so slow, as it took 6 minutes and 38 seconds to do.
It also caused all other inserts and updates to stop for the whole duration...
This is insane as VFP takes 1-2 seconds...
The table has 2.6 million records total, while there is about 325,000 records that matches the (county_id = 'KY066') test, and less than a 100 records that matches the (_Ocr_Text is not null) test.
The full text index includes this _Ocr_text field. All indexes for this table has been rebuilt.
Why is everything else locked as this is only a select statement returning only a 5 char field?
use [Library]
go
select top (100) county_id from Assets.Page
WHERE county_id = 'KY066'
and _Ocr_Text is not null
go
If I take the null test out, results are instant...
The (_ocr_text) field is a vartext memo field.
Any ideas?
Thanks, Stanley
Using SQL Server 2008r2 on an I7 quad processor machine...
This code is so slow, as it took 6 minutes and 38 seconds to do.
It also caused all other inserts and updates to stop for the whole duration...
This is insane as VFP takes 1-2 seconds...
The table has 2.6 million records total, while there is about 325,000 records that matches the (county_id = 'KY066') test, and less than a 100 records that matches the (_Ocr_Text is not null) test.
The full text index includes this _Ocr_text field. All indexes for this table has been rebuilt.
Why is everything else locked as this is only a select statement returning only a 5 char field?
use [Library]
go
select top (100) county_id from Assets.Page
WHERE county_id = 'KY066'
and _Ocr_Text is not null
go
If I take the null test out, results are instant...
The (_ocr_text) field is a vartext memo field.
Any ideas?
Thanks, Stanley