From 4ce1b29d86b7fee64d0add4b36dbd86b4848cff2 Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Date: Wed, 26 Feb 2025 13:59:41 +0330 Subject: [PATCH] Update some packages - Add some personal notes --- PersonalNotes/faster-query.md | 5 +++++ mstdnCats.csproj | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 PersonalNotes/faster-query.md diff --git a/PersonalNotes/faster-query.md b/PersonalNotes/faster-query.md new file mode 100755 index 0000000..1c50f61 --- /dev/null +++ b/PersonalNotes/faster-query.md @@ -0,0 +1,5 @@ +# How did I go from 4 second on each API request to under 1 second? + +### 1. Using projection to limit fields +### 2. Using proper indexes +### 3. Using $sample along with aggregation \ No newline at end of file diff --git a/mstdnCats.csproj b/mstdnCats.csproj index 9600161..db2148e 100755 --- a/mstdnCats.csproj +++ b/mstdnCats.csproj @@ -11,8 +11,8 @@ - - + +