Page 1 of 1

Data in fields(cards) instead of custom properties?

Posted: Sun Mar 15, 2009 1:18 pm
by gyroscope
Hi, I've been reading a webpage here:

http://www.nabble.com/the-Visible-Varia ... 21244.html

One of my projects is my own Rev script collector (something that a few other people have done before, I know). I'll be honest, keeping each set of records in a custom property has confuddled me; i.e still don't quite understand the principle/process.

So I'm going down the route of each record set as a new card. Reading the above posts, it seems that in the main there aren't any speed considerations to worry about.

But what about number of cards? i.e eventually one could land up with 3000 cards or more, i.e 3000 separate record set entries. Would this be a problem in any way does anyone know please :?:

Edit: just read a reply by Sarah:
I make sure that each data field, check box,menu button or radio
button has it's own unique name, then I collate all these names & the
name of their card into a custom property of the data stack. I have
generalised setData, getData handlers & functions that look at this
list, find the appropriate data object on it's card, and either change
or return it's value.
If anyone could post a small stack on Rev Online showing these principles, i.e specifically with commented stuff about putting the whole card containing the record set and retrieving and putting from a custom property, I'd be soooo grateful, thank you.:roll: (Bit much to ask though, I know...)

Posted: Sun Mar 15, 2009 3:39 pm
by Mark
Hi gyroscope,

i have a very simple database example on RevOnline, which uses custom properties. You'll find it under user name Mark.

Once your stack has more than 10000 cards, you will notice that the find command slows down considerably. Obviously, repeat loops that search data in an objecet on a particular card will get slower as the number of cards increases. These problems can be avoided by using custom properties, files, single data fields, and some other methods.

Best,

Mark

Posted: Sun Mar 15, 2009 7:09 pm
by gyroscope
Thank you Mark, that gives me some ideas.

It's interesting to see that adding a record set in your stack example doesn't actually add a card; all info is called up on the same card. I guess there might be an advantage to this, i.e inputting custom properties as text on the same card?

:)