performance optimization in library view

This commit is contained in:
Stefan Hardegger
2025-08-18 19:03:42 +02:00
parent 241a15a174
commit 3dc02420fe
4 changed files with 3 additions and 11 deletions

View File

@@ -9,7 +9,6 @@ public class StorySearchDto {
private UUID id; private UUID id;
private String title; private String title;
private String description; private String description;
private String contentPlain;
private String sourceUrl; private String sourceUrl;
private String coverPath; private String coverPath;
private Integer wordCount; private Integer wordCount;
@@ -65,13 +64,6 @@ public class StorySearchDto {
this.description = description; this.description = description;
} }
public String getContentPlain() {
return contentPlain;
}
public void setContentPlain(String contentPlain) {
this.contentPlain = contentPlain;
}
public String getSourceUrl() { public String getSourceUrl() {
return sourceUrl; return sourceUrl;

View File

@@ -563,7 +563,7 @@ public class TypesenseService {
dto.setId(UUID.fromString((String) doc.get("id"))); dto.setId(UUID.fromString((String) doc.get("id")));
dto.setTitle((String) doc.get("title")); dto.setTitle((String) doc.get("title"));
dto.setDescription((String) doc.get("description")); dto.setDescription((String) doc.get("description"));
dto.setContentPlain((String) doc.get("contentPlain")); // contentPlain excluded for performance - not needed in search results
String authorId = (String) doc.get("authorId"); String authorId = (String) doc.get("authorId");
if (authorId != null && !authorId.trim().isEmpty()) { if (authorId != null && !authorId.trim().isEmpty()) {

View File

@@ -2,7 +2,7 @@
import { useState, useEffect, useRef } from 'react'; import { useState, useEffect, useRef } from 'react';
import { seriesApi, storyApi } from '../../lib/api'; import { seriesApi, storyApi } from '../../lib/api';
import { Series, Story } from '../../types/api'; import { Series } from '../../types/api';
interface SeriesSelectorProps { interface SeriesSelectorProps {
value: string; value: string;

View File

@@ -5,7 +5,7 @@ export interface Story {
authorId: string; authorId: string;
authorName: string; authorName: string;
contentHtml: string; contentHtml: string;
contentPlain: string; contentPlain?: string; // Optional - only included in reading/detail views
sourceUrl?: string; sourceUrl?: string;
wordCount: number; wordCount: number;
seriesId?: string; seriesId?: string;