<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/zephyr71/">
    <title>オッサンの外部記憶装置</title>
    <link>http://w.atwiki.jp/zephyr71/</link>
    <atom:link href="https://w.atwiki.jp/zephyr71/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>オッサンの外部記憶装置</description>

    <dc:language>ja</dc:language>
    <dc:date>2017-04-20T11:40:38+09:00</dc:date>
    <utime>1492656038</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/32.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/30.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/31.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/29.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/27.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/28.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/19.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/zephyr71/pages/25.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/32.html">
    <title>LINQの使用</title>
    <link>https://w.atwiki.jp/zephyr71/pages/32.html</link>
    <description>
          </description>
    <dc:date>2017-04-20T11:40:38+09:00</dc:date>
    <utime>1492656038</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/30.html">
    <title>DataGridView</title>
    <link>https://w.atwiki.jp/zephyr71/pages/30.html</link>
    <description>
      *DataGridView
-[[一覧作成の性能実験]]
-[[LINQの使用]]    </description>
    <dc:date>2017-04-20T11:35:39+09:00</dc:date>
    <utime>1492655739</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/31.html">
    <title>一覧作成の性能実験</title>
    <link>https://w.atwiki.jp/zephyr71/pages/31.html</link>
    <description>
      **DataGridViewの一覧作成方法の性能検証
***確認パターン
+[[DataGridView]]に直接値設定
+DataGridViewに直接値設定(一覧明細を1000件毎に追加)
+DataGridViewに直接値設定(一覧明細を一括追加)
+DataSouceを設定(データバインド)
***確認条件
-データ取得時間は含まない
-カラムは４列（文字×３、チェックボックス×１）
-指定データを選択行にするロジックあり
-各件数毎に５回処理しその平均値　※200,000件のパターン１は１回のみ
-VisualStudio2015
***確認結果
#right(){|~件数|~パターン1|~パターン2|~パターン3|~パターン4|h
|1,000件|0.217秒|0.086秒|0.071秒|0.012秒|
|10,000件|8.251秒|0.818秒|0.770秒|0.008秒|
|20,000件|30.284秒|1.671秒|1.617秒|0.016秒|
|30,000件|1分06.833秒|2.560秒|0.081秒|0.021秒|
|40,000件|2分06.513秒|3.744秒|3.487秒|0.042秒|
|50,000件|3分37.362秒|4.432秒|3.529秒|0.036秒|
|200,000件|1時間32分55.714秒|27.575秒|29.530秒|0.144秒|
}
***確認ソース
1.DataGridViewに直接値設定
 Dim oleRS As New OleDb.OleDbDataReader(ds.Tables(0))　&#039;DataReaderで取得時を想定
 Do While oleRS.Read()
     .RowCount = lRow + 1
     .Item(EnumColList.Code, lRow).Value = oleRS(&quot;CD&quot;) &#039;コード
     .Item(EnumColList.Name, lRow).Value = oleRS(&quot;NM&quot;) &#039;名
     .Item(EnumColList.Gnm, lRow).Value = oleRS(&quot;GN&quot;)  &#039;名
     .Item(EnumColList.Flg, lRow).Value = oleRS(&quot;FLG&quot;) &#039;有効区分
     &#039;カレント行を設定
     If oleRS(&quot;CD&quot;).Equals(sKey) Then
         .CurrentCell = .Item(EnumColList.Code, lRow)
     End If
     lRow += 1
 Loop
 oleRS.Close()
 oleRS = Nothing

2.DataGridViewに直接値設定(一覧明細を1000毎に追加)
 Dim oleRS As New OleDb.OleDbDataReader(ds.Tables(0))　&#039;DataReaderで取得時を想定
 Do While oleRS.Read()
     If .RowCount &lt;= lRow Then .RowCount += 1000
     .Item(EnumColList.Code, lRow).Value = oleRS(&quot;CD&quot;) &#039;コード
     .Item(EnumColList.Name, lRow).Value = oleRS(&quot;NM&quot;) &#039;名
     .Item(EnumColList.Gnm, lRow).Value = oleRS(&quot;GN&quot;)  &#039;名
     .Item(EnumColList.Flg, lRow).Value = oleRS(&quot;FLG&quot;) &#039;有効区分
     &#039;カレント行を設定
     If oleRS(&quot;CD&quot;).Equals(sKey) Then
         .CurrentCell = .Item(EnumColList.Code, lRow)
     End If
     lRow += 1
 Loop
 .RowCount = lRow
 oleRS.Close()
 oleRS = Nothing

3.DataGridViewに直接値設定(一覧明細を一括追加)
 Dim oleRS As New OleDb.OleDbDataReader(ds.Tables(0))　&#039;DataReaderで取得時を想定
 Dim lstRow As New List(Of DataGridViewRow)
 Do While oleRS.Read()
     Dim row As DataGridViewRow = New DataGridViewRow()
     row.CreateCells(dgvList)
     With row
         .Item(EnumColList.Code).Value = oleRS(&quot;CD&quot;) &#039;コード
         .Item(EnumColList.Name).Value = oleRS(&quot;NM&quot;) &#039;名
         .Item(EnumColList.Gnm).Value = oleRS(&quot;GN&quot;)  &#039;名
         .Item(EnumColList.Flg).Value = oleRS(&quot;FLG&quot;) &#039;有効区分
     End With
     lstRow.Add(row)
     &#039;カレント行を設定
     If oleRS(&quot;CD&quot;).Equals(sKey) Then
         lRow = lstRow.Count - 1
     End If
 Loop
 .Rows.AddRange(lstRow.ToArray)
 .CurrentCell = .Item(EnumColList.Code, lRow)
 oleRS.Close()
 oleRS = Nothing

4.DataSouceを設定(データバインド)
 If String.IsNullOrEmpty(.Columns(EnumColList.Code).DataPropertyName) Then
     .Columns(EnumColList.Code).DataPropertyName = &quot;CD&quot;
     .Columns(EnumColList.Name).DataPropertyName = &quot;NM&quot;
     .Columns(EnumColList.Gnm).DataPropertyName = &quot;GN&quot;
     .Columns(EnumColList.Flg).DataPropertyName = &quot;FLG&quot;
 End If
 .DataSource = ds.Tables(0)
 &#039;カレント行を設定
 Dim current As DataGridViewRow = .Rows.Cast(Of DataGridViewRow)
                                  .FirstOrDefault(Function(n) n.Cells(EnumColList.Code).Value?.Equals(sKey))
 If current Is Nothing = False Then
     .CurrentCell = .Item(EnumColList.Code, current.Index)
 End If    </description>
    <dc:date>2017-04-19T17:10:52+09:00</dc:date>
    <utime>1492589452</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/zephyr71/pages/1.html</link>
    <description>
      **OS
-[[Win 2008]]
-[[linux]]

**App
-[[VS2010]]
-[[VS2012]]
-[[SQL Server]]
-[[Oracle]]
-[[Access Tips]]
-[[jquery]]

**VB.Net
-[[DataGridView]]

**etc
-[[PDF一括印刷]]


















----    </description>
    <dc:date>2017-04-18T11:09:54+09:00</dc:date>
    <utime>1492481394</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/29.html">
    <title>VS2012</title>
    <link>https://w.atwiki.jp/zephyr71/pages/29.html</link>
    <description>
          </description>
    <dc:date>2013-01-18T23:33:04+09:00</dc:date>
    <utime>1358519584</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/27.html">
    <title>Excel VBE 文字化け</title>
    <link>https://w.atwiki.jp/zephyr71/pages/27.html</link>
    <description>
          </description>
    <dc:date>2012-12-28T12:11:30+09:00</dc:date>
    <utime>1356664290</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/28.html">
    <title>Oracle</title>
    <link>https://w.atwiki.jp/zephyr71/pages/28.html</link>
    <description>
          </description>
    <dc:date>2012-12-28T11:54:47+09:00</dc:date>
    <utime>1356663287</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/19.html">
    <title>Win 2008</title>
    <link>https://w.atwiki.jp/zephyr71/pages/19.html</link>
    <description>
          </description>
    <dc:date>2011-01-27T12:27:28+09:00</dc:date>
    <utime>1296098848</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/26.html">
    <title>PDF一括印刷</title>
    <link>https://w.atwiki.jp/zephyr71/pages/26.html</link>
    <description>
          </description>
    <dc:date>2010-09-29T12:01:39+09:00</dc:date>
    <utime>1285729299</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/zephyr71/pages/25.html">
    <title>Win2008に2008をインストール</title>
    <link>https://w.atwiki.jp/zephyr71/pages/25.html</link>
    <description>
          </description>
    <dc:date>2010-08-05T22:20:23+09:00</dc:date>
    <utime>1281014423</utime>
  </item>
  </rdf:RDF>
