Closed Bug 745845 Opened 13 years ago Closed 13 years ago

Stack search should happen more frequently then web search

Categories

(Pancake Graveyard :: Front-end, enhancement)

x86
macOS
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gbrander, Assigned: gbrander)

References

Details

Since stack search is a query against the Pancake database and is so much faster than Bing search, let's decrease the fetch timeout for stack search to make it near-real-time.
So here's the plan: * Instead of creating and throwing away search views and models, share the same stack collection and bing search collection, changing the search URL. `fetch` with the `diff` option set to `true`. * Ditto search and stack views: create once, and allow rendering to happen via events on the changing collection. * Create a function that creates the search view from sub-views, configures it and memoizes the result so the function is safe to call many times without a performance drain. * Create debounced fetch method for the collections, debouncing search and stack at different rates.
Depends on: 746301
Further experience polish is needed, but this is working as of https://bitbucket.org/mozillapancake/pancake/changeset/69ce1253b22e
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.