mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(loader) Correct DocumentLoaderService to properly do bulk inserts
Fixes issue #128
This commit is contained in:
parent
291ca8daf1
commit
20abb91657
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user