You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because it goes through the file system and parses the files, gets some info from the git log, as the author/dates.
I mean if you have so many posts it could be slow on startup. But in a production environment you want be starting it up often?
Otherwise you can resolve it if you use some DB (maybe a plugin to Blogit) as cache - it could be mnesia, postgres, mongo, whatever. You can cache the parsed posts with the metadata in it and update it when a post was edited, renewed.
By default blogit works with a git repository provider, but it is an extendable behavior, so you can write whatever repository for the posts. It can be a new one Git+Cache or just Postgres provider.
I made it highly extensible.
BTW this repository is only the Phoenix view application of Blogit. The core functionality for reading and parsing the posts is here : https://github.com/meddle0x53/blogit
You can even have a terminal view + blogit to have notes and etc. I mean even how you present the parsed posts can be changed.
I have around 500 posts, the server first time startup for the loading of post taking too long time.
Almost take 6 mins to load them. I found a lot of "git log" external process running, each at a time, taking too much time to load.
Any idea how to resolve this?
The text was updated successfully, but these errors were encountered: