Change the OSS magnetic download site to python and the OSS magnetic download site to python.

Source: Internet
Author: User
Tags django website

Change the OSS magnetic download site to python and the OSS magnetic download site to python.

I haven't written a blog for more than a year and a half, so I don't know what to write.

Oracle magnetic download-http://www.oshoh.com is now using CENTOS 7,

 

Osho magnetic download (www.oshoh.com) has undergone several technical changes. The open-source version is rewritten using the django website framework. Previously, it was Flask and tornado. The film FM also uses tornado, and later found that tornado is not applicable to any scenario. The content-based website is good at django, but it takes longer time to get started than other frameworks. Early databases used MongoDB, because it was very convenient to read and write data with Python, and there was no need to pay attention to the data structure. The search function used built-in keywords for searching. However, as the number of resources increased, the performance also obviously failed. This year, we changed the WiredTiger engine, and our own fulltext search is still not powerful. In addition, Amazon's cloudsearch is a pitfall. local tyrants can consider that the performance is really good, that is, it is relatively expensive. Finally, we should build a SphinxSearch, and replace the database with MySQL (MyISAM engine), which is also very convenient to work. The speed of creating full-text indexes in Sphinx is very powerful, and the official self-evaluation is also very high. I tested million resources (about 3 GB) by myself, and the index was completed in about 1 minute. Believe it or not, you can test it yourself.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.