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