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 String title;
private String description;
private String contentPlain;
private String sourceUrl;
private String coverPath;
private Integer wordCount;
@@ -65,13 +64,6 @@ public class StorySearchDto {
this.description = description;
}
public String getContentPlain() {
return contentPlain;
}
public void setContentPlain(String contentPlain) {
this.contentPlain = contentPlain;
}
public String getSourceUrl() {
return sourceUrl;

View File

@@ -563,7 +563,7 @@ public class TypesenseService {
dto.setId(UUID.fromString((String) doc.get("id")));
dto.setTitle((String) doc.get("title"));
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");
if (authorId != null && !authorId.trim().isEmpty()) {

View File

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

View File

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