gpt4 book ai didi

ravendb - 使用 RavenDB 进行调试非常慢

转载 作者:行者123 更新时间:2023-12-04 21:44:55 28 4
gpt4 key购买 nike

我使用的是 RavenDB 2.0.3.0 版。连接调试器后,涉及 RavenDB 的所有内容都运行得非常缓慢。每个查询需要几秒钟才能完成。

如果我在调试器坐在那里时按下暂停键,我总是看到它挂断了以下调用跟踪:

Lucene.Net.dll!Lucene.Net.QueryParsers.FastCharStream.Refill() Line 91 C# Lucene.Net.dll!Lucene.Net.QueryParsers.FastCharStream.ReadChar() Line 53 C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParserTokenManager.JjMoveNfa_3(int startState, int curPos) Line 604 + 0x1b bytes C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParserTokenManager.JjMoveStringLiteralDfa0_3() Line 94 + 0xd bytes C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParserTokenManager.GetNextToken() Line 1379 + 0x9 bytes C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParser.Jj_ntk() Line 1929 + 0x1d bytes C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParser.Clause(string field) Line 1373 + 0x1d bytes C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParser.Query(string field) Line 1301 + 0xc bytes C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParser.TopLevelQuery(string field) Line 1287 + 0xc bytes C# Lucene.Net.dll!Lucene.Net.QueryParsers.QueryParser.Parse(string query) Line 223 + 0xf bytes C# Raven.Database.dll!Raven.Database.Indexing.QueryBuilder.BuildQuery(string query, Raven.Abstractions.Data.IndexQuery indexQuery, Raven.Database.Indexing.RavenPerFieldAnalyzerWrapper analyzer) Line 56 + 0xe bytes C# Raven.Database.dll!Raven.Database.Indexing.Index.IndexQueryOperation.GetLuceneQuery(string query, Raven.Abstractions.Data.IndexQuery indexQuery) Line 1120 + 0x1d bytes C# Raven.Database.dll!Raven.Database.Indexing.Index.IndexQueryOperation.GetLuceneQuery() Line 1081 + 0x28 bytes C# Raven.Database.dll!Raven.Database.Indexing.Index.IndexQueryOperation.Query() Line 803 + 0x26 bytes C# [External Code] Raven.Database.dll!Raven.Database.DocumentDatabase.Query.AnonymousMethod__8e(Raven.Database.Storage.IStorageActionsAccessor actions) Line 1220 + 0x145 bytes C# Raven.Database.dll!Raven.Database.DocumentDatabase.Query(string index, Raven.Abstractions.Data.IndexQuery query) Line 1237 C# Raven.Database.dll!Raven.Database.Queries.DynamicQueryRunner.ExecuteActualQuery(Raven.Abstractions.Data.IndexQuery query, Raven.Database.Data.DynamicQueryMapping map, System.Tuple touchTemporaryIndexResult, string realQuery) Line 82 + 0x32b bytes C# Raven.Database.dll!Raven.Database.Queries.DynamicQueryRunner.ExecuteDynamicQuery(string entityName, Raven.Abstractions.Data.IndexQuery query) Line 49 + 0x15 bytes C# Raven.Database.dll!Raven.Database.Queries.DynamicQueryExtensions.ExecuteDynamicQuery(Raven.Database.DocumentDatabase self, string entityName, Raven.Abstractions.Data.IndexQuery indexQuery) Line 19 + 0x11 bytes C# Raven.Client.Embedded.dll!Raven.Client.Embedded.EmbeddedDatabaseCommands.Query(string index, Raven.Abstractions.Data.IndexQuery query, string[] includes, bool metadataOnly, bool indexEntriesOnly) Line 389 + 0x47 bytes C# Raven.Client.Lightweight.dll!Raven.Client.Document.AbstractDocumentQuery>.ExecuteActualQuery() Line 535 + 0x50 bytes C# Raven.Client.Lightweight.dll!Raven.Client.Document.AbstractDocumentQuery>.InitSync() Line 518 C# Raven.Client.Lightweight.dll!Raven.Client.Document.AbstractDocumentQuery>.QueryResult.get() Line 505 C# Raven.Client.Lightweight.dll!Raven.Client.Linq.RavenQueryProviderProcessor.ExecuteQuery() Line 1425 + 0x1b bytes C# Raven.Client.Lightweight.dll!Raven.Client.Linq.RavenQueryProviderProcessor.Execute(System.Linq.Expressions.Expression expression) Line 1398 + 0x3d bytes C#



如果我在没有连接调试器的情况下运行,一切都运行良好且快速......我在昨天之前从未遇到过这个问题。

我正在使用带有 DataDir=~\App_Data\RavenDB 的 EmbeddableDocumentStore。

我尝试删除 RavenDB 目录,但即使使用全新的数据库,Raven 仍然同样缓慢。

知道出了什么问题或如何排除故障吗?

最佳答案

如果您正在使用 IntelliTrace,请将其关闭。
在异常设置中,标记 Just My Code 并且不要停止处理异常。

关于ravendb - 使用 RavenDB 进行调试非常慢,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16028011/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com