performance optimization in library view
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user