Skip to content

Control/filter database results through SQL queries rathen than using JS #58

@marisid

Description

@marisid
  • Better practice to limit database results when you query because of size and time required to make the query and then filter the results using JS.
  • Instead of slicing here you could add LIMIT 8 at the end of your sql query.
  • You could query the database for a specific user_id instead of filtering after you've got a big database set.
  • Nice modularised structure of your JS code to get reviews and filter them though 👍

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions