Skip to content

High performance self-hosted photo and video management solution.

docs: update community Guide/Projects, small PG query updates (#8844)

Matthew Momjian28d081338baf
diff --git a/docs/docs/guides/database-queries.md b/docs/docs/guides/database-queries.md
index 65aa357fc8..a8748f65f9 100644
--- a/docs/docs/guides/database-queries.md
+++ b/docs/docs/guides/database-queries.md
@@ -37,15 +37,20 @@ SELECT * FROM "assets" WHERE "checksum" = decode('69de19c87658c4c15d9cacb9967b8e
```
```sql title="Live photos"
-SELECT * FROM "assets" where "livePhotoVideoId" IS NOT NULL;
+SELECT * FROM "assets" WHERE "livePhotoVideoId" IS NOT NULL;
```
```sql title="Without metadata"
-SELECT "assets".* FROM "exif" LEFT JOIN "assets" ON "assets"."id" = "exif"."assetId" WHERE "exif"."assetId" IS NULL;
+SELECT "assets".* FROM "exif"
+ LEFT JOIN "assets" ON "assets"."id" = "exif"."assetId"
+ WHERE "exif"."assetId" IS NULL;
```
```sql title="size < 100,000 bytes, smallest to largest"
-SELECT * FROM "assets" JOIN "exif" ON "assets"."id" = "exif"."assetId" WHERE "exif"."fileSizeInByte" < 100000 ORDER BY "exif"."fileSizeInByte" ASC;
+SELECT * FROM "assets"
+ JOIN "exif" ON "assets"."id" = "exif"."assetId"
+ WHERE "exif"."fileSizeInByte" < 100000
+ ORDER BY "exif"."fileSizeInByte" ASC;
```
```sql title="Without thumbnails"
@@ -62,8 +67,7 @@ SELECT "assets"."type", COUNT(*) FROM "assets" GROUP BY "assets"."type";
```
```sql title="Count by type (per user)"
-SELECT "users"."email", "assets"."type", COUNT(*)
- FROM "assets"
+SELECT "users"."email", "assets"."type", COUNT(*) FROM "assets"
JOIN "users" ON "assets"."ownerId" = "users"."id"
GROUP BY "assets"."type", "users"."email"
ORDER BY "users"."email";
@@ -75,7 +79,7 @@ SELECT * FROM "move_history";
## Users
-```sql title="List"
+```sql title="List all users"
SELECT * FROM "users";
```
diff --git a/docs/src/components/community-guides.tsx b/docs/src/components/community-guides.tsx
index b3da8575f9..5a17e3b295 100644
--- a/docs/src/components/community-guides.tsx
+++ b/docs/src/components/community-guides.tsx
@@ -28,6 +28,11 @@ const guides: CommunityGuidesProps[] = [
description: `synchronize folders in imported library with albums having the folders name.`,
url: 'https://github.com/immich-app/immich/discussions/3382',
},
+ {
+ title: 'Podman/Quadlets Install',
+ description: 'Documentation for simple podman setup using quadlets.',
+ url: 'https://github.com/tbelway/immich-podman-quadlets/blob/main/docs/install/podman-quadlet.md',
+ },
];
function CommunityGuide({ title, description, url }: CommunityGuidesProps): JSX.Element {
diff --git a/docs/src/components/community-projects.tsx b/docs/src/components/community-projects.tsx
index 3abfd73429..f49509eb2f 100644
--- a/docs/src/components/community-projects.tsx
+++ b/docs/src/components/community-projects.tsx
@@ -33,11 +33,6 @@ const projects: CommunityProjectProps[] = [
description: 'A Python script to create albums based on the folder structure of an external library.',
url: 'https://github.com/Salvoxia/immich-folder-album-creator',
},
- {
- title: 'Podman/Quadlets Install',
- description: 'Documentation for simple podman setup using quadlets.',
- url: 'https://github.com/tbelway/immich-podman-quadlets/blob/main/docs/install/podman-quadlet.md',
- },
{
title: 'Lightroom Publisher: mi.Immich.Publisher',
description: 'Lightroom plugin to publish photos from Lightroom collections to Immich albums.',
@@ -48,6 +43,16 @@ const projects: CommunityProjectProps[] = [
description: 'Webapp that uses machine learning to identify near-duplicate images.',
url: 'https://github.com/vale46n1/immich_duplicate_finder',
},
+ {
+ title: 'Immich-Tiktok-Remover',
+ description: 'Script to search for and remove TikTok videos from your Immich library.',
+ url: 'https://github.com/mxc2/immich-tiktok-remover',
+ },
+ {
+ title: 'Immich Android TV',
+ description: 'Unofficial Immich Android TV app.',
+ url: 'https://github.com/giejay/Immich-Android-TV',
+ },
];
function CommunityProject({ title, description, url }: CommunityProjectProps): JSX.Element {