projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
002b261
)
decreased memory footprint
author
Bryan
<btbonval@gmail.com>
Tue, 14 Jan 2014 08:45:36 +0000
(
03:45
-0500)
committer
Bryan
<btbonval@gmail.com>
Tue, 14 Jan 2014 08:45:36 +0000
(
03:45
-0500)
karmaworld/apps/notes/management/commands/populate_indexden.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/management/commands/populate_indexden.py
b/karmaworld/apps/notes/management/commands/populate_indexden.py
index d80106ca56373a3ef4bf42737ce681c9df7624da..2ce38358043f371dd9a042a145076dcc79e11622 100644
(file)
--- a/
karmaworld/apps/notes/management/commands/populate_indexden.py
+++ b/
karmaworld/apps/notes/management/commands/populate_indexden.py
@@
-14,9
+14,7
@@
class Command(BaseCommand):
"in the index that are not overwritten will still be around."
def handle(self, *args, **kwargs):
- notes = Note.objects.all()
-
- for note in notes:
+ for note in Note.object.iterator():
try:
print "Indexing {n}".format(n=note)
add_document(note)