coderkoala / crap-news Goto Github PK
View Code? Open in Web Editor NEWA rudimentary, hacky, opensource news app for Laravel. Autopulls news from popular RSS feeds. Will most certainly blow up whilst using at random. You have been warned.
A rudimentary, hacky, opensource news app for Laravel. Autopulls news from popular RSS feeds. Will most certainly blow up whilst using at random. You have been warned.
The optimization is horrendous right now for the front page.
First, it pick up categories from the sources tree, then via relationships, fetches an arbitrary number of queries per category. The number of transaction, as one might be aware, increases the number of categories goes up.
A quick napkin math suggests me 36+ queries just to get the front page news. As of right now, there are 80+ queries running in the front page. That is alone alarming, and this is deteriorate the bigger the articles table gets.
My approach: get rid of the relationship, and introduce the category column in the articles table as well. Migration script has to be written, but in the end, you could potentially, in the best case scenario, need a single query with maybe a union or two (to make sure to filter 15-20 latest news of the same category) in order to achieve this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.