I am customizing the Tax Parcel Viewer for our organization. While still at 10.1 there is a bug (NIM068681) that degrades the performance of the OBJECTID search in ArcGIS Server of an ArcSDE Geodatabase. Those who are defining such a data source for their Tax Parcel Viewer will encounter this problem. I did find a work around with the help of an ESRI Tech Support analyst. The tax parcel viewer is written using the Javascript API. In the "js" folder of the 10.1 Nov 2012 release of the Tax Parcel Viewer there is a file called "locator.js". The following code (lines 293 - 295): else {
query.objectIds = [objectId];
}should be updated to include a where clause essentially doing the same thing... else {
//query.objectIds = [objectId];
query.where = "OBJECTID = '" + [objectId] + "'";
}This will search using the objectid using a where clause. This method is not subject to the aforementioned bug.