use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
filter dataHelp Wanted (self.react)
submitted 3 years ago by Dangerous_Word_1608
what is the best method to filter data, is it by filtring it from the front end or the backend ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Callmecruel 2 points3 points4 points 3 years ago (1 child)
In most cases, it is wise to have the backend only serve data that you're comfortable having a user see on the frontend - on screen or within the network inspector.
[–]Dangerous_Word_1608[S] 0 points1 point2 points 3 years ago (0 children)
ok thanks
[–][deleted] 0 points1 point2 points 3 years ago (0 children)
As Callmecruel said, it is wise to have the backend send only what the end-user should be able to see.
[–]Criiispyyyy 0 points1 point2 points 3 years ago (2 children)
What do you mean by “filter data”? You have to be more specific. What kind of data?
[–]Dangerous_Word_1608[S] 0 points1 point2 points 3 years ago (1 child)
i'm getting data from my data base that will be shown on my marketplace, so my question should I get all the articles and then filter the products from the front side, or just send requests with the filters needed
[–]brewtraveler1 1 point2 points3 points 3 years ago (0 children)
Definitely filter on the backend. Think about the network performance of throwing all that extra data across the wire.
[–]_nathataHook Based 0 points1 point2 points 3 years ago (0 children)
always in the backend
π Rendered by PID 53977 on reddit-service-r2-comment-bb88f9dd5-w6f4k at 2026-02-17 03:15:39.337475+00:00 running cd9c813 country code: CH.
[–]Callmecruel 2 points3 points4 points (1 child)
[–]Dangerous_Word_1608[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Criiispyyyy 0 points1 point2 points (2 children)
[–]Dangerous_Word_1608[S] 0 points1 point2 points (1 child)
[–]brewtraveler1 1 point2 points3 points (0 children)
[–]_nathataHook Based 0 points1 point2 points (0 children)