Tuesday, February 1, 2011

memory, time, 1000 lines model or 100 models with 10 lines

I have an object, which described in one model has 1000 lines.
Another way is to split object to 100 pieces with 10 lines length.

In both cases the 1000 lines will be filled in memory.

I am going to create tens of thousands entrances of this object.

If the object model will be split to 100 models, than the number of
entrances in database increase 100 times.

What is better performance of the Django, Sqlite3.
Have 20.000 entrances in the table with 1000 columns
or 2.000.000 entrances in the table with 10 columns

regards,
gintare

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment