In my django application I have a global variable 'gv' which is
accessed by different requests coming from the end users.
Now 'gv' holds a data of 2 MB size which needs to be update at regular
interval, pulling 2 MB data from the database for every request
doesn't make sense.
For this I have plan
For the below models:
class Customer(models.Model):
id = models.IntegerField(primary_key=True)
class OrderA(models.Model):
name = models.CharField(max_length=20)
foo = models.FloatField()
customer = models.ForeignKey(Customer)
type = models.IntegerField()
class OrderB(models.
Hi,
How can I have an application scope variable which should be loaded
everytime the app starts app, be in memory and accessible by all until
the app stops.
Thanks
Vishal
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
3 matches
Mail list logo