Last change
on this file since 9158 was 9147, checked in by rick, 14 years ago |
Alternative heatmap generation 'framework'. Simple/Single file with no
persistent storage, making debugging easy.
This proves that the heatmap code itself is not causing the issues, but the
image manipulation PIL is not so fast (or properly utilized). Might want to
consider a more advanced image generation toolkit. (2000 entries: 5+ secs).
Also loading a large dataset into Objects seems to be very slow. The database
call is effient (just a single one), but building all the related objects,
makes is slow (2000 entries: 1+ sec). Might want to check if raw queries suit
to avoid conversion our needs:
http://docs.djangoproject.com/en/dev/topics/db/sql/
|
File size:
540 bytes
|
Line | |
---|
1 | from django.conf.urls.defaults import *
|
---|
2 | from django.views.generic.simple import direct_to_template
|
---|
3 | from django.views.generic.base import TemplateView
|
---|
4 | from django.conf import settings
|
---|
5 |
|
---|
6 | class HomeView(TemplateView):
|
---|
7 | template_name = 'home.html'
|
---|
8 |
|
---|
9 | urlpatterns = patterns('',
|
---|
10 | ('^$', HomeView.as_view())
|
---|
11 | )
|
---|
12 |
|
---|
13 | urlpatterns += patterns('website.tile',
|
---|
14 | url(
|
---|
15 | # Example : today/fire/12/3,2.png
|
---|
16 | regex = r'^tile/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$',
|
---|
17 | view = 'serve_tile',
|
---|
18 | name = 'serve_tile',
|
---|
19 | ),
|
---|
20 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.