小编syn*_*ned的帖子

将UpdateSourceTrigger = PropertyChanged应用于所有文本框wpf

我怎么写模板看起来像这样?

    <DataTemplate ... TextBlock>
    UpdateSourceTrigger=PropertyChanged
    </DataTemplate>
Run Code Online (Sandbox Code Playgroud)

.net c# wpf

14
推荐指数
2
解决办法
2685
查看次数

为什么 Postgres 选择索引扫描而不是索引寻求通过主键获取一条记录?

我有下表:

create table documents 
(
     id serial not null primary key,
     key varchar(50) not null,
     document jsonb
);
Run Code Online (Sandbox Code Playgroud)

它有超过 1 亿条记录,当我运行查询以通过主键获取 1 条记录时:

 select * from documents where id = 20304050
Run Code Online (Sandbox Code Playgroud)

它使用索引扫描来获取它:

create table documents 
(
     id serial not null primary key,
     key varchar(50) not null,
     document jsonb
);
Run Code Online (Sandbox Code Playgroud)

为什么 Postgres 选择使用索引扫描而不是索引查找?

编辑:我来自 SQL Server 世界,它是索引扫描和索引查找之间的区别。在 Postgres 中,没有索引查找这样的东西。

sql postgresql

6
推荐指数
1
解决办法
980
查看次数

标签 统计

.net ×1

c# ×1

postgresql ×1

sql ×1

wpf ×1