DEV Community

Discussion on: Flask Tutorial - The Interactive way, Ask Me Anything for three hours

Collapse
 
abuakram profile image
abuakram

Hi... thanks for your effort...
I was thinking of creating a folder in my flask project which is synchronized with my database... So that to speed up the speed...
Is this possible???

Collapse
 
sm0ke profile image
Sm0ke

Hello,
Your pattern is quite original. Can you elaborate, please?
If you want to speed up things, not only in Flask, you have at least two options:

  • Tune-up the database - define indexes on tables, using stored procedures, views
  • Use Redis to cache in memory critical information

If you have the time, please access this guide related to Flask:

How to increase Flask performance

Collapse
 
abuakram profile image
abuakram

Your link is so rich of important information... I couldn't stop reading... Are you by any chance Smirnov???

Concerning speed, since querying a database takes time... I thought of creating a folder that does a query to the db only after each update for synchronization (mirror of db) ... So it should be acting similar to flatpages.

Thread Thread
 
sm0ke profile image
Sm0ke

Smirnov??? .. who's this guy?

Between flatpages and DB pretty sure DB is faster and easier to locate the information.
On top of this, Redis is usually a solution to by-pass the DB queries.

Cheers!

Thread Thread
 
abuakram profile image
abuakram
Thread Thread
 
sm0ke profile image
Sm0ke

Nope :)