Opened 16 years ago
Closed 16 years ago
#466 closed defect (fixed)
Search engine real time updates do not work
| Reported by: | bweaver | Owned by: | bweaver |
|---|---|---|---|
| Priority: | blocker | Milestone: | Release Candidate 1 |
| Component: | Search Engine | Version: | 1.5.1337 |
| Severity: | Keywords: | ||
| Cc: | Database Engine: | N/A | |
| Operating System: | N/A |
Description
Since integrating sql into dataview definitions and various schema changes, real time updates do not seem to be working.
Need to remove /*_ _*/ hack from search engine and all associated dataviews, adding a :readall parameter to enable pulling all rows or just the ones in the given :idlist
Change History (8)
comment:1 by , 16 years ago
| Status: | new → addressed |
|---|
comment:2 by , 16 years ago
| Status: | addressed → released |
|---|
comment:3 by , 16 years ago
| Resolution: | → invalid |
|---|---|
| Status: | released → closed |
comment:4 by , 16 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
| Version: | 1.5.1335 → 1.5.1337 |
SE updating is working for most data that was being updated, but usually not for new data being inserted. This is actually on a case-by-case basis, so the bug must be related to the actual data involved.
comment:5 by , 16 years ago
| Status: | reopened → addressed |
|---|
(In [1338]) - fixes #466, 466 was fixed for updated data, but for new data it would fail most times because the resolver SQL are all defined as LEFT JOIN, meaning it was possible for the SE to pull in a NULL value for the resolved id. The NULL value was bombing when being read from the datareader into an integer variable, causing the realtime update to fail. Since resolving a pk to a NULL value will not result in a hit, I simply added code to check for NULL values first and skip the actual tree and data file updates when needed.
comment:6 by , 16 years ago
| Status: | addressed → released |
|---|
comment:7 by , 16 years ago
| Status: | released → verified |
|---|
Real time indexes do not throw errors in GRIN-Global Admin v 1.5.1340.0 in sqlserver although slow 17 records per minute on accession adds on Windows 7 64-bit with 8 gig of memory on local curator tool to local database adding 1,000+ records.
comment:8 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | verified → closed |
Tested using web page to pass data into savedata() middle tier, and verified that real time update works with updated index/data file. Subsequent search also proved the result.

(In [1336]) - fixes #466 Altered SE code to allow the use of the following two kinds of sql queries for index creation and real-time update use:
(a) WHERE table.pk in (:idlist) or :readall = 1
(b) /*_ WHERE table.pk in (:idlist) */
I allow the use of either type because:
(a) is the cleanest, most obvious way to do this using our dataview definition and verification paradigm.
(b) is backwards-compatible and is known to work in all database engines. MySQL especially may have performance issues using style (a), so by leaving support in for (a) or (b), I'm hoping to prevent future database engine-specific issues
I also tweaked the config file to fit the new schema (code_value.title) for certain calculated fields (calculated from a subquery)
Made Parameter names readonly because in certain situations allowing renaming via the gridview would cause the SQL to get corrupted.