Hi:
I need make a calculation from database and the result may have 20,000,000
records which format is just a string. Can I add them into an ArrayList
object one by one? Is there any upper limitation on ArrayList object?
Even there is no limit, I don't think this is not a good solution. It must
take much memory. Any suggestion?
Thanks
Q. 4 3075
Well, you're limited only by memory, but that's quite a few strings. It
would take a long time to read all that into memory and would probably
consume all your memory and a lot of swap space.
You don't describe the calculation you need to make. If you describe what it
is you're trying to do as well as tell us what kind of database it is
(Access, SQL Server, etc), we can probably provide a better solution.
Pete
"Quentin Huo" <q.***@manyworl ds.com> wrote in message
news:uZ******** ******@TK2MSFTN GP12.phx.gbl... Hi:
I need make a calculation from database and the result may have 20,000,000 records which format is just a string. Can I add them into an ArrayList object one by one? Is there any upper limitation on ArrayList object?
Even there is no limit, I don't think this is not a good solution. It must take much memory. Any suggestion?
Thanks
Q.
Why not do the calculation in the query?
bobc
"Quentin Huo" <q.***@manyworl ds.com> wrote in message
news:uZ******** ******@TK2MSFTN GP12.phx.gbl... Hi:
I need make a calculation from database and the result may have 20,000,000 records which format is just a string. Can I add them into an ArrayList object one by one? Is there any upper limitation on ArrayList object?
Even there is no limit, I don't think this is not a good solution. It must take much memory. Any suggestion?
Thanks
Q.
The hard limit would appear to be Int.MaxValue as int is used for things
like count and the indexer.
--
William Stacey, MVP http://mvp.support.microsoft.com
"Quentin Huo" <q.***@manyworl ds.com> wrote in message
news:uZ******** ******@TK2MSFTN GP12.phx.gbl... Hi:
I need make a calculation from database and the result may have 20,000,000 records which format is just a string. Can I add them into an ArrayList object one by one? Is there any upper limitation on ArrayList object?
Even there is no limit, I don't think this is not a good solution. It must take much memory. Any suggestion?
Thanks
Q.
Quentin,
I would only ask meself those questions when my reference would exceed an
integer conform the used processor. I assume that that is the address width
that forever is used in Net classes.
However, when you have calculated the values, from an extraction from your
database, why don't you than not just calculate them everytime new?
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CajunCoiler \(http://www.cajuncoiler.tk\) |
last post by:
I've seen no reference to this in the MSDN library, so I ask here... what
is the known upper limit for the RichTextbox control? And when this
limit is exceeded, what error is generated?
|
by: Jax |
last post by:
I have an arraylist of objects. This arraylist is bound to a repeater. That repeater then creates a set of controls like so
<asp:repeater id="garmentRepeater" runat="server" OnItemCommand="Repeater_ButtonClick"><HeaderTemplate><asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 250px; POSITION: absolute; TOP: 80px" runat="server
Width="200px" Height="50px" Font-Names="Impact" Font-Size="Large">Garments on...
|
by: Matthew Woods |
last post by:
Hi, is there any way to format and order the columns displayed in a datagrid
bound to a class that inherits from IBindingList? i have used
DataGridTableStyle and added DataGridTextBoxColumns to it in the correct
order which works fine if the dataGrid.dataSource = "ArrayList", but it
doesn't work for my IBindingList wrapper.
If i bind the datasource to the arraylist method then the
ListChangedEventHandler is never invoked and my grid only...
|
by: phlian |
last post by:
I've got a dropdownlist (webform) bound to an arraylist which holds my
several of a custom object as follows:
fldOption.DataSource = prod.Items
fldOption.DataTextField = "Options"
fldOption.DataValueField = "ID"
fldOption.DataBind()
(prod.Items is an arraylist containing objects of type cItem)
|
by: Dave |
last post by:
Hi all,
I have a listbox that is complex bound by an arraylist. The problem is that
when I delete an object from the arraylist, the listbox does not reflect
those changes. I tried refreshing the listbox with no luck and, because it
is already bound, I can't just delete the item directly from the listbox
without an error (because it already has a datasource, you are not allowed
to delete/add anything to the listbox directly).
The...
| |
by: Marcus Kwok |
last post by:
I am having a weird problem with my DataGrid that is bound to an
ArrayList. My situation is as follows:
I have two DataGrids on a modal form. The top grid populates an
ArrayList from a file, then the datagrid is bound to it, and it works
fine. The bottom DataGrid is bound to a different ArrayList that holds
the same type as the first ArrayList. Both DataGrids are set to
Read-Only.
The user selects a row from the top DataGrid, then...
|
by: g.o.atkins |
last post by:
Hi,
I've bound an ArrayList to a datagrid and succesfully managed to
display the data via an ItemTemplate column and using <%#
Container.DataItem %>.
The problem I have however is trying to read the value back out of the
datagrid. Basically I have checkboxes next to each item in the datagrid
- when the user clicks on a button im looping through each item in the
datagrid and then trying to read the value out. This works for when a
|
by: Jerry West |
last post by:
I'd like to get the upper bound index of an integer array. I've tried the
following:
Dim i as Integer
Dim arrayIng() as Integer
i = arrayIng.GetUpperBound
This doesn't work. It seems GetUpperBound behaves more like a function in
that it wants a passed parameter. Is there not a property similar to VB6
|
by: Vic |
last post by:
I have a ArrayList bound to a DataGridView.
The objects in de arryalist have 5 propertie but i need only 3 of then in de
datagridview.
Cane somebody tell me how to prevent that some of the properties are not
show.
Best Regards
Vic
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |