If =you have a multi-dimensional array, where one of the dimensions has a ="[DimSize_]" of
over a billion, I would think that is going to be =unwieldy and probably not the solution you are really looking =for.
If you post the code that you are trying to use, I may be =able to better understand what you are trying to do...
However, =I'm guessing that you are only creating that large of an array because =you need one of the dimensions to
to match a cart number... (which =leaves a *lot* of wasted cells).
(in that case, I'd =probably create a database or table for a keyed reference to the cart).. =ie:
keyed.db
------------------------------------------
kCart=<tab>kCartID
100000012353<tab>1
100000010453<tab>2=
------------------------------------------
# Find num =records
[text]t_numcarts=3D[search =db=3Dkeyed.db&nekCartdatarq=3Dfind_all][numfound][/search][/text]
<=br># Then you could create a much smaller array:
[arrayset =name=3Dyourarray&dim=3D[t_numcarts],2,2][/arrayset]
# =Populate your Array however you like (I'm just populating values for the =example):
[text]t_Cart=3D[lookup =db=3Dkeyed.db&value=3D[cartReference]&lookinfield=3D[kCart]&re=turnfield=3DkCartID][/text]
[arrayset =name=3Dyourarray]([t_Cart],1,2)=3DTo&([t_Cart],2,1)=3DDonovan[/arrayse=t]
# To display: (remember, [t_Cart] =3D ='1')
[yourarray([t_Cart],1,2)] (parses to ='To")
[yourarray([t_Cart],2,1)] (parses to ='Donovan')
Anyway, the only possible benefit of doing it =this way, instead of just using a table or database is that once
the =data set is loaded into your array, actual references to it would be =fast. Otherwise, just use a table or
.db I =guess.
(this is all assuming I'm understanding your question) =;-)
DonovanOn Wednesday 19/12/2012 at 9:57 am, =Palle Bo Nielsen wrote:Well, you are right I would like to create a lot of =cells but not all of them to be utilized.--------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list
Let me try to explain. =I want to be able to use any cell from 0 to a-very-big-number, but not =all cells will be utilized; only very specific numbers (cells) based on =cart values which in the other dimensions related to specific content in =those cells.
Dim CART, A VALUE, A STRING
100000012353=01Hello
10000001045301=To
10000001045310Donovan
In this case I =can find a CART and very easily display any of the other =cells.
So baseline is that I do not need ALL billions of cell's, =only selected.
Does it make sense?
/Palle
On =19/12/2012, at 01.38, Donovan Brooke <dbrooke@webdna.us> =wrote:Donovan =Brooke wrote:---------------------------------------------------------You are =trying to create an array with (likely over) 1 billion =dimensions?
What I meant to say Palle is that it =appears you are trying to create an array with at least or over 1B =cells. I've never created an array that large, and I would guess you are =running into RAM issues perhaps??
Maybe post your =code?
Donovan
--
Donovan =Brooke
WebDNA Software Corporation
http://www.webdna.us
**[Square =Bracket =Utopia]**
---------------------------------------------------------
=This message is sent to you because you are subscribed to
the mailing =list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
This =message is sent to you because you are subscribed to
the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us. To =unsubscribe, E-mail to: archive=s: http://mail.webdna.us/l=ist/talk@webdna.us Bug Reporting: support@webdna.us
|
If =you have a multi-dimensional array, where one of the dimensions has a ="[DimSize_]" of
over a billion, I would think that is going to be =unwieldy and probably not the solution you are really looking =for.
If you post the code that you are trying to use, I may be =able to better understand what you are trying to do...
However, =I'm guessing that you are only creating that large of an array because =you need one of the dimensions to
to match a cart number... (which =leaves a *lot* of wasted cells).
(in that case, I'd =probably create a database or table for a keyed reference to the cart).. =ie:
keyed.db
------------------------------------------
kCart=<tab>kCartID
100000012353<tab>1
100000010453<tab>2=
------------------------------------------
# Find num =records
[text]t_numcarts=3D[search =db=3Dkeyed.db&nekCartdatarq=3Dfind_all][numfound][/search][/text]
<=br># Then you could create a much smaller array:
[arrayset =name=3Dyourarray&dim=3D[t_numcarts],2,2][/arrayset]
# =Populate your Array however you like (I'm just populating values for the =example):
[text]t_Cart=3D[lookup =db=3Dkeyed.db&value=3D[cartReference]&lookinfield=3D[kCart]&re=turnfield=3DkCartID][/text]
[arrayset =name=3Dyourarray]([t_Cart],1,2)=3DTo&([t_Cart],2,1)=3DDonovan[/arrayse=t]
# To display: (remember, [t_Cart] =3D ='1')
[yourarray([t_Cart],1,2)] (parses to ='To")
[yourarray([t_Cart],2,1)] (parses to ='Donovan')
Anyway, the only possible benefit of doing it =this way, instead of just using a table or database is that once
the =data set is loaded into your array, actual references to it would be =fast. Otherwise, just use a table or
.db I =guess.
(this is all assuming I'm understanding your question) =;-)
DonovanOn Wednesday 19/12/2012 at 9:57 am, =Palle Bo Nielsen wrote:Well, you are right I would like to create a lot of =cells but not all of them to be utilized.--------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list
Let me try to explain. =I want to be able to use any cell from 0 to a-very-big-number, but not =all cells will be utilized; only very specific numbers (cells) based on =cart values which in the other dimensions related to specific content in =those cells.
Dim CART, A VALUE, A STRING
100000012353=01Hello
10000001045301=To
10000001045310Donovan
In this case I =can find a CART and very easily display any of the other =cells.
So baseline is that I do not need ALL billions of cell's, =only selected.
Does it make sense?
/Palle
On =19/12/2012, at 01.38, Donovan Brooke <dbrooke@webdna.us> =wrote:Donovan =Brooke wrote:---------------------------------------------------------You are =trying to create an array with (likely over) 1 billion =dimensions?
What I meant to say Palle is that it =appears you are trying to create an array with at least or over 1B =cells. I've never created an array that large, and I would guess you are =running into RAM issues perhaps??
Maybe post your =code?
Donovan
--
Donovan =Brooke
WebDNA Software Corporation
http://www.webdna.us
**[Square =Bracket =Utopia]**
---------------------------------------------------------
=This message is sent to you because you are subscribed to
the mailing =list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us
This =message is sent to you because you are subscribed to
the mailing list =<talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archi=ves: http://mail.webdna.us/l=ist/talk@webdna.us
Bug Reporting: support@webdna.us. To =unsubscribe, E-mail to: archive=s: http://mail.webdna.us/l=ist/talk@webdna.us Bug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...