(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)
{
long urlId = UrlIdCodec.encodeId(
domainIdRegistry.getDomainId(projection.domain()),
projection.ordinal()
@ -88,7 +87,7 @@ public class DocumentLoaderService {
}
try {
documentDbWriter.add(new DocdbUrlDetail(
details.add(new DocdbUrlDetail(
urlId,
parsedUrl.get(),
projection.title(),