Skip to content

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

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 👍

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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