描述
我通过使用一个带有实体框架的sqlite数据库,从一个数据库中获得了一个大对象。然后,我需要检查数据库中的一些条目是否不再存在于我从导入文件中获得的新数据集。这些对象的长度约为120.000。我唯一找到的是where和any扩展,但这需要几分钟的时间。有没有更有效的解决方案?
来源
var delData = old.Where(o => !content.Data.Any(n => n.Row == o.Row));
列表的类
namespace GCS.Db
{
public class GcsContent
{
public int Id
这是一种在第一列而不是第一行显示GWT CellTable标题的方法吗?这是因为我有太多的列和太长的数据,我相信它们可以用这种格式更好地显示:
|Header 01|And we will have the data for header 01 here|
|Header 02|And we will have the data for header 02 here|
|Header 03|And we will have the data for header 03 here|
|Header 04|And we will have the data for header 04 here|
我把麦克风的输入录制到了sample.wav。但它播放得太快了。3秒内的10秒文件。
int RECORDER_SAMPLERATE = 44100;
int RECORDER_BitsPerSample = 16;
int RECORDER_CHANNELS = AudioFormat.CHANNEL_IN_MONO;
int RECORDER_AUDIO_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
int channels = 2;
long byteRate = RECORDER_BPP * RECORDER_SAMPLERATE * chan
我已经为wave文件创建了头文件,但是创建的wave文件不播放。
我已经使用这个作为参考来创建波头。
public void WriteWaveFileHeader() throws IOException {
File f = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/aaa.wav");
f.createNewFile();
FileOutputStream fos = new FileOutputStream(f);
long lon
我有两列与标题的网格视图,我想使在每个页面上都可见。
在以下函数中创建Header:
Protected Sub grdOriginal_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grdOriginal.RowCreated
If e.Row.RowType = DataControlRowType.Header Then
Dim HeaderRow As GridViewRow = New GridVie