mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-11 15:47:13 -07:00
perf(backend): ⚡ remove validation on recipe summary response (#718)
* count responses * perf(backend): ⚡ remove validation on recipe summary response use the construct() method from pydantic to reduce get time as well as optimize the SQL query for recipes * update UI to support new categories/tags * fix(backend): 🐛 restrict recipes by group Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
parent
f9829141c0
commit
568215cf70
10 changed files with 82 additions and 37 deletions
|
@ -40,7 +40,9 @@ def populate_data(token):
|
|||
|
||||
def time_request(url, headers):
|
||||
start = time.time()
|
||||
_ = requests.get(url, headers=headers)
|
||||
r = requests.get(url, headers=headers)
|
||||
|
||||
print(f"Total Recipes {len(r.json())}")
|
||||
end = time.time()
|
||||
print(end - start)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue