the django docs are very well organised... it shouldn't take much effort to find what you need
AND... it will get you more familiar with what's available
subbero
Is right. how about the performance penalty on annotate?
In the manage.py shell it was fast, well i will implement it and test
HowardwLo joined the channel
onizo has quit
leonhaynes joined the channel
BojanBG has quit
cewing joined the channel
ustunozgur joined the channel
Goopyo has quit
FunkyBob
subbero: I think by the time you reach any performance penalty fron using it, you'll know that adding an index to Image.date will be the way to fix it :)
dlogs has quit
dlogs joined the channel
rjco has quit
ustunozgur has quit
shutchie2 has quit
theslow1 has quit
subbero
Yes, must evaluate which index now are most important. As it now changes somewhat so that other indexes are not so good anymore
FunkyBob
subbero: how many images/categories are you talking?
subbero
But with python-django-south all i easy
Not very much
FunkyBob
10? 100? 1000?
subbero
Less than 50 categorys
FunkyBob
fewer than 50 categories... and how many images?
subbero
115 Images lol
theslow1 joined the channel
FunkyBob
total? or per category?
subbero
13 CAT
total
FunkyBob
huh?
hirokiky joined the channel
subbero
115 Images total, 13 cat total
fisa joined the channel
Is ok, it is only that i am running on a intel atom, but the site is also not a heavy load site
Before i migrated to that intel atom i was using a via eden, there the performance on django was very bad
FunkyBob
index won't help with that few items
subbero
Yes
FunkyBob
which DBMS?
subbero
Just to be right. Wrong indexes also can cause weird stuff :)
On way more data for sure :)
PolCPP joined the channel
bmonty has quit
I am currently only having the problem that some categorys have names like "FooEvent - 2006", "FooEvent - 2010" and as i had initially put in the images now those are not in order :)
NotproN has quit
Changing the date of the added dates in the database would fix it
johnkevinmbasco joined the channel
magicflakes joined the channel
hirokiky has quit
hirokiky joined the channel
cbsw joined the channel
PolCPP has quit
b10n1k has quit
mgrouchy has quit
mgrouchy joined the channel
b10n1k joined the channel
KrauserIII joined the channel
joelones has quit
gremmie joined the channel
johnkevinmbasco has quit
asarch joined the channel
johnkevinmbasco joined the channel
NotproN joined the channel
asarch
When you "update" a record using the admin module, it actually deletes the original record and insert a new one with the same id, right?
johnkevinmbasco has quit
djapo
what is a routing_key? and how is it diffrent than a queue? in celery
schinckel joined the channel
cbsw has quit
valgrind has quit
munderwo has quit
b10n1k has quit
mitha has quit
pastry has quit
NotproN has quit
FunkyBob
asarch: no, it updates it...
van- has quit
coolnewb joined the channel
asarch: as in, overwrites it
aribao has quit
asarch
I thought it deletes and recreates because PostgreSQL database say it need a "vacuum operation" :-(
munderwo joined the channel
Z_A_M has quit
munderwo has quit
FunkyBob
asarch: well, that's an implementation detail...
Django does an UPDATE... PG does that by creating a new record, then retiring the old one
asarch
Oh
FunkyBob
also, PGs autovacuum daemon should keep things tidy for you
asarch
I was about to blame Django for that
FunkyBob
nope
it's nothing bad... it simply is
asarch
Thank you FunkyBob
Thank you very much for your help :-)
Ododo has quit
b10n1k joined the channel
FunkyBob
(also, many DBMSs work similary... and need vacuuming occasionally)
hirokiky has quit
harijay has quit
asarch
I see
Since my first approach with Django was with a SQLite3 database
FunkyBob
think of it as defraging their data files
asarch
I was worried for my data
FunkyBob
sqlite has a vacuum, too
asarch
Really?
Wow
harijay joined the channel
FunkyBob
as I said, most of the time it's just defragmenting their data files... since data are added/removed/resized/etc over time
we had a table where we deleted 16million old records... stayed huge, even with autovacuum [because it won't move records to other pages]
Kayra joined the channel
did a full vacuum, removed a metric arseload of space :P
asarch
Wow
LysergicDreams joined the channel
And I was worried for my 245 entries :P
asarch has left the channel
asarch joined the channel
Wrong button
bwreilly joined the channel
end0 joined the channel
Kayra has quit
end0 has left the channel
robbyoconnor joined the channel
chrisramon has quit
snurfery has quit
faldridge joined the channel
t-tan has quit
hirokiky joined the channel
ustunozgur joined the channel
Laybunz joined the channel
PolCPP joined the channel
sgeos has quit
chrisramon joined the channel
garnertb joined the channel
chrisramon has quit
dlogs has quit
dlogs joined the channel
gremmie has quit
ustunozgur has quit
jnuss joined the channel
PolCPP has quit
b10n1k has quit
neruson is now known as zz_neruson
robbyoconnor has quit
robbyoconnor joined the channel
heedly
Should request be available in templates if I use TemplateView?