improve rendering speed by caching LevelGeometry in database
This commit is contained in:
parent
24977b80fe
commit
a9594b0cc5
5 changed files with 93 additions and 38 deletions
21
src/c3nav/mapdata/migrations/0037_level_geoms_cache.py
Normal file
21
src/c3nav/mapdata/migrations/0037_level_geoms_cache.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.6 on 2017-10-19 11:21
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mapdata', '0036_geometry_bounds'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='level',
|
||||
name='geoms_cache',
|
||||
field=models.BinaryField(default=b''),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue