Closed
Bug 620760
Opened 14 years ago
Closed 12 years ago
Find a way to make manufacturers and devices searchable more easily
Categories
(Input :: General, defect, P2)
Input
General
Tracking
(Not tracked)
RESOLVED
WORKSFORME
4.x
People
(Reporter: wenzel, Unassigned)
References
Details
(Whiteboard: [redis])
Currently, we hard-code every known manufacturer and device in order to be able to search for them, as search works something like:
"Samsung" -> CRC32 -> Sphinx: search for this number.
So we need to know what to look for in order to make Sphinx search for this.
I propose we find a way to automate this somehow. Two ideas:
- auto-generate the list of "known" devices from the feedback database, and keep it in memcache for a long time. This adds a performance hit to one request, but should be relatively slim since we'll add an index to the manufacturer / device field.
- search case-insensitively. My Samsung device sends "samsung" as its manufacturer, and I don't think this can currently be found, because our this spelling is not in the "known" list.
Reporter | ||
Comment 2•14 years ago
|
||
(In reply to comment #1)
> We can do this via redis.
We should talk one of these days (tomorrow?) about what redis can do for us. Another option would be migrating to mongodb, but that involves getting rid of all MySQL-ness in our code. So if adding redis to the mix is a less invasive change, that'd be the way to go.
If redis also helps us do something useful in bug 623650, thumbs up.
Comment 3•14 years ago
|
||
I'd rather not abort mysql - it does what it's doing well.
I'd have all submissions trigger a post-save hook that just adds random metadata to redis.
Think of redis as memcached with pythonic like structures: lists, sets, dictionaries, etc.
Updated•14 years ago
|
Target Milestone: 3.0 → 3.1
Reporter | ||
Updated•14 years ago
|
Target Milestone: 3.1 → ---
Assignee | ||
Updated•14 years ago
|
Component: Input → General
Product: Webtools → Input
Comment 4•14 years ago
|
||
There's a lot of messages on mobile that are unknown. It's been like that for awhile and it's just going to get worse. We should nip this in the bud before it gets really bad.
Target Milestone: --- → 4.x
Comment 5•12 years ago
|
||
This isn't an issue anymore since we no longer use Sphinx search. Closing out as WORKSFORME.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•