PERF: Reduce number of queries and size of payload when searching.
1. Remove `cooked` becaused only the blurb is used on the client side to display search results. 2. Remove `ignored` because the result is not used in anyway when searching for pots.
This commit is contained in:
parent
d46ce0cb21
commit
03c6b22c62
|
@ -6,4 +6,12 @@ class SearchPostSerializer < BasicPostSerializer
|
||||||
def blurb
|
def blurb
|
||||||
options[:result].blurb(object)
|
options[:result].blurb(object)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def include_cooked?
|
||||||
|
false
|
||||||
|
end
|
||||||
|
|
||||||
|
def include_ignored?
|
||||||
|
false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue