(loader) Correct DocumentLoaderService to properly do bulk inserts

Fixes issue #128
This commit is contained in:
Viktor Lofgren 2024-12-08 13:12:52 +01:00
parent 291ca8daf1
commit 20abb91657

View File

@ -75,7 +75,6 @@ public class DocumentLoaderService {
public void accept(SlopDocumentRecord.MetadataProjection projection) public void accept(SlopDocumentRecord.MetadataProjection projection)
{ {
long urlId = UrlIdCodec.encodeId( long urlId = UrlIdCodec.encodeId(
domainIdRegistry.getDomainId(projection.domain()), domainIdRegistry.getDomainId(projection.domain()),
projection.ordinal() projection.ordinal()
@ -88,7 +87,7 @@ public class DocumentLoaderService {
} }
try { try {
documentDbWriter.add(new DocdbUrlDetail( details.add(new DocdbUrlDetail(
urlId, urlId,
parsedUrl.get(), parsedUrl.get(),
projection.title(), projection.title(),