Hi,
Have anyone ever benchmark the TableAdapter performance compared to
DataTable's Load method? I found out that the DataTable's Load method is
about 10x faster than TableAdapter's Fill method.
I used the same SELECT query and DataSet (predefined), for both test.
For the DataTable's Load method, we first need to create a DataReader.
Anyone know why? Or is there any other configuration needed to make
TableAdapter faster?
Thanks for reading. 5 7559
I would have to see what you are attempting to do to better understand. One
of my former coworkers did some tests with the TableAdapter that absolutely
smoked. It was compared to filling DataSets, however, so the tests may be
invalid in your world.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************** ************
Think Outside the Box!
*************** ************
"Programati x" wrote: Hi,
Have anyone ever benchmark the TableAdapter performance compared to DataTable's Load method? I found out that the DataTable's Load method is about 10x faster than TableAdapter's Fill method.
I used the same SELECT query and DataSet (predefined), for both test.
For the DataTable's Load method, we first need to create a DataReader.
Anyone know why? Or is there any other configuration needed to make TableAdapter faster?
Thanks for reading.
The DataTable's Load method also fill the dataset. But it reads from a
DataReader that we need to supply. Take a look at the Load method for
DataTable.
"Cowboy (Gregory A. Beamer) - MVP" <No************ @comcast.netNoS pamM> wrote
in message news:74******** *************** ***********@mic rosoft.com... I would have to see what you are attempting to do to better understand. One of my former coworkers did some tests with the TableAdapter that absolutely smoked. It was compared to filling DataSets, however, so the tests may be invalid in your world.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
*************** ************ Think Outside the Box! *************** ************
"Programati x" wrote:
Hi,
Have anyone ever benchmark the TableAdapter performance compared to DataTable's Load method? I found out that the DataTable's Load method is about 10x faster than TableAdapter's Fill method.
I used the same SELECT query and DataSet (predefined), for both test.
For the DataTable's Load method, we first need to create a DataReader.
Anyone know why? Or is there any other configuration needed to make TableAdapter faster?
Thanks for reading.
Are you filling a DataSet, or a DataTable with a lot of relations in it?
- Sahil Malik [MVP]
ADO.NET 2.0 book - http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
_______________ _______________ _______________ _____________
"Programati x" <N$************ ********@msn.co m> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Hi,
Have anyone ever benchmark the TableAdapter performance compared to DataTable's Load method? I found out that the DataTable's Load method is about 10x faster than TableAdapter's Fill method.
I used the same SELECT query and DataSet (predefined), for both test.
For the DataTable's Load method, we first need to create a DataReader.
Anyone know why? Or is there any other configuration needed to make TableAdapter faster?
Thanks for reading.
Hmmm.. There are 4 DataTables in the DataSet. Each is linked with each other
in a seriel form, meaning that table 1 is related to table 2, table 2 is
related to table 3 and so on.
Why?
"Sahil Malik [MVP C#]" <co************ *****@nospam.co m> wrote in message
news:uD******** ******@TK2MSFTN GP15.phx.gbl... Are you filling a DataSet, or a DataTable with a lot of relations in it?
- Sahil Malik [MVP] ADO.NET 2.0 book - http://codebetter.com/blogs/sahil.ma.../13/63199.aspx _______________ _______________ _______________ _____________
"Programati x" <N$************ ********@msn.co m> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Hi,
Have anyone ever benchmark the TableAdapter performance compared to DataTable's Load method? I found out that the DataTable's Load method is about 10x faster than TableAdapter's Fill method.
I used the same SELECT query and DataSet (predefined), for both test.
For the DataTable's Load method, we first need to create a DataReader.
Anyone know why? Or is there any other configuration needed to make TableAdapter faster?
Thanks for reading.
Okay try this -
On the 4 tables, call "BeginLoadD ata" before you start filling, and
"EndLoadDat a" after the data has been filled. See if that helps.
- Sahil Malik [MVP]
ADO.NET 2.0 book - http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
_______________ _______________ _______________ _____________
"Programati x" <N$************ ********@msn.co m> wrote in message
news:ur******** ******@TK2MSFTN GP14.phx.gbl... Hmmm.. There are 4 DataTables in the DataSet. Each is linked with each other in a seriel form, meaning that table 1 is related to table 2, table 2 is related to table 3 and so on.
Why?
"Sahil Malik [MVP C#]" <co************ *****@nospam.co m> wrote in message news:uD******** ******@TK2MSFTN GP15.phx.gbl... Are you filling a DataSet, or a DataTable with a lot of relations in it?
- Sahil Malik [MVP] ADO.NET 2.0 book - http://codebetter.com/blogs/sahil.ma.../13/63199.aspx _______________ _______________ _______________ _____________
"Programati x" <N$************ ********@msn.co m> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. Hi,
Have anyone ever benchmark the TableAdapter performance compared to DataTable's Load method? I found out that the DataTable's Load method is about 10x faster than TableAdapter's Fill method.
I used the same SELECT query and DataSet (predefined), for both test.
For the DataTable's Load method, we first need to create a DataReader.
Anyone know why? Or is there any other configuration needed to make TableAdapter faster?
Thanks for reading.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: GaryDean |
last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much
in answers so I'm reposting some questions posted by some of the programmers
here in our organization that never got answered...
There are articles on the new TableAdapters where it says that a key new
advantage is that a single TableAdapter, which can have multiple queries,
can be used on multiple forms. Now that was in an article on using
TableAdapters with...
|
by: Mike |
last post by:
Dear Group,
When I add a DataTable to a Typed Dataset, and a TableAdapter to the
DataTable, I am able to create methods to send updates directly to the
database (GenerateDBDirectMethods), however when my TableAdapter Fill SQL
contains a WHERE clause which looks up a field from another joined table,
the Fill works perfectly, but I cannot Insert, Update or Delete using the
TableAdapter.
Does anyone know why this is?
|
by: philip |
last post by:
On a form, I have a datagridview.
This datagridview is constructed on a dataset filled by a tableadapter.
The table adapter do very well what it must do when filling dataset.
Insertions, modifications and deletions functions very well in the dataset.
But impossible to transmit modifications in ACCESS database. Impossible to
WRITE in database.
Here is the code for data transmission from tableadapter to Access database
:
|
by: Demetri |
last post by:
I have a question / concern regarding the new suggested way of creating a
data access layer in an n-tier application. Typically, a web application
specifically, using the SOA (Service Oriented Architecture) approach.
At various sites such as 15 Seconds
(http://www.15seconds.com/issue/050721.htm) they advocate using the
TableAdapter wizard to generate the data access layer.
Describing the TableAdapter wizard, here is a quote from the...
|
by: GaryDean |
last post by:
I'm comparing use of DataView -ObjectDataSource -TableAdapter to
DataView -SqlDataSource using the Customers table on the NorthWind
database.
The SQL given to both wizards is:
SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address,
City, Region, PostalCode, Country, Phone, Fax
FROM Customers
But the two wizards generate different UPDATE statements (Pasted below) and
| |
by: =?Utf-8?B?UmljaCBIdXRjaGlucw==?= |
last post by:
I'm not really sure how to ask this question because I'm still getting my
feet wet with data access and VB.NET, but here goes:
To start off with, I'm using VB 2005 Express to connect to an Access database.
I have a dataset in which a parameterized query returns the correct result
set in the forms of a tableadapter and a bindingnavigator. In other words, I
can perform my query and see that the tableadapter and bindingnavigator
contain...
|
by: Yin99 |
last post by:
Do the TableAdapters have any limitations, gotcha's, or anything that
may bite ya in the rear down the road?
I'm looking for lessons learned and/or past experience. I'm starting
a new application and learning towards using the .NET 2.0 Strongly
Typed Dataset, TableAdapter, & partial classes for my DAL.
(For example, I was told performance was horrible, and from past
experience a company totally abandoned strongly typed datasets....
|
by: Yin99 |
last post by:
I'm using TableAdapter with .NET 2.0 and SQL 2005.
In SQL Database, a column's type is "float".
Default TableAdapter methods update, insert, get, etc. maps this
automatically to c# type "double"
Question- Why is it when I create a new SQL Query, Insert Method,
all of a sudden the tableadapter is calling the variable "float" when
the default Insert method to tableadapter it is "double" ? What is
|
by: Tony Johansson |
last post by:
Hello!
Is it always that a TableAdapter and a DataTable is a pair.
When I use the Dataset Designer and create a sql clause a TableAdapter and a
DataTable is created which act like a pair.
I mean when you have a TableAdapter you must always have a corresponding
DataTable for this TableAdapter.
Is it right what I have written here?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |