简体   繁体   English

简单的基于文件的记录存储,具有用于Compact Framework和Silverlight的快速文本搜索功能

[英]Simple File-based Record Storage with Fast Text Searching for Compact Framework and Silverlight

I have a single table with lots of records (> 100k) that I need to be able to index and search on several text fields. 我有一个带有很多记录(> 100k)的表,我需要能够在几个文本字段上进行索引和搜索。 The easiest searches will have the first part of the string specified (eg, LIKE 'ABC%' in SQL). 最简单的搜索将指定字符串的第一部分(例如,SQL中的LIKE'ABC%')。 The tougher searches will need to search for any substring within the text fields (eg, LIKE '%ABC%' in SQL). 较难的搜索将需要搜索文本字段内的任何子字符串(例如,SQL中的LIKE'%ABC%')。

I need to run on the Compact Framework. 我需要在Compact Framework上运行。 SQL Compact is a memory hog and overkill for my one table. SQL Compact是我的一张桌子的浪费内存和过度使用的内存。 Besides, I'd like to be able to run on Silverlight 4 eventually. 此外,我希望最终能够在Silverlight 4上运行。

The file and indexes can be generated on the full .NET Framework and I only need read capability on the Compact Framework. 可以在完整的.NET Framework上生成文件和索引,而我只需要在Compact Framework上具有读取功能。 My records are not especially large and can be expressed in fix length format. 我的记录不是特别大,可以以固定长度格式表示。

I'm looking for some existing code or libraries to avoid having to write a file-based BTree implementation from scratch. 我正在寻找一些现有的代码或库,以避免不得不从头开始编写基于文件的BTree实现。

我最终选择了bplusdotnet

I would suggest System.Data.SQLite . 我建议System.Data.SQLite It runs on the ADO.NET framework so It may not be what you're looking for but it supports the compact framework and may be lighter. 它运行在ADO.NET框架上,因此它可能不是您所需要的,但它支持紧凑的框架,并且可能更轻巧。

Take a look, hopefully it can suit your needs. 看一看,希望它可以满足您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM