The sizes given are in bytes. So 200,000 instances of this class, plus
the list to hold them, would take approximately 34 megabytes. An entry
level PC these days has 1000 megabytes of memory. "Huge"? Not even
close.
The items hold a lot of metadata, which I didn't provide in my example.
Depen
On Tue, 31 Aug 2010 12:44:08 am Knacktus wrote:
> Hey everyone,
>
> I have a huge number of data items coming from a database.
Huge?
Later in this thread, you mentioned 200,000 items overall. That might
be "huge" to you, but it isn't to Python. Here's an example:
class K(object):
def __ini
Am 30.08.2010 17:53, schrieb Francesco Loffredo:
Two questions and one doubt for you:
1- How many "generations" do you want to keep in a single item (call it
dictionary or list, or record, whatever)? I mean, what if some children
have children too, and some of those have more children, etc ?
The
On 30/08/2010 16.44, Knacktus wrote:
Hey everyone,
I have a huge number of data items coming from a database. So far
there're no restrictions about how to model the items. They can be
dicts, objects of a custom class (preferable with __slots__) or namedTuple.
Those items have references to each