0

ドキュメントを Marklogic に挿入するために、Marklogic XCC .Net ライブラリを使用しています。ただし、負荷がかかる (45 人の同時ユーザー) と、メッセージ Provider com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl not foundで例外が発生し始め ます。

コードは

using (var session = ContentSourceFactory.NewContentSource(new Uri(_connectionUriString)).NewSession())
        {

                var contentCreateOptions = new ContentCreateOptions
                                               {
                                                   Format = DocumentFormat.Format.XML,
                                                   Collections =
                                                       new[]
                                                           {
                                                            "Docs"
                                                           }
                                               };
                var options = contentCreateOptions;
                var fileName = string.Format("/doc/{0}.xml", doc.Id);
                session.InsertContent(ContentFactory.NewContent(fileName, doc.Serialize(), options));
            }
4

1 に答える 1