Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Python vs PhP Searchable Database

Hello Treehosue,

I have a simple question, along the lines of Searchable Database what lingo would be best, Python or PhP.

I know PhP works great with MySQL but Python is so easy to learn, and I have read a huge amount of software use Python so I would imagine building a Searchable Database with it would be doable.

I am asking as I have an idea for a website that NEEDS a Searchable Database that users can type in into a search bar and it will give web pages with the corresponding word.

Thanks guys!

1 Answer

Justin Ellingwood
Justin Ellingwood
12,545 Points

Danny: I think that whatever language that you plan on using will likely have the necessary libraries to interact with the database of your choice. You should choose what language you are most comfortable with if you have no other requirements.

That being said, in terms of searchable databases, it might be worthwhile to look into something like elasticsearch (either by itself or to index another database system) for these types of use-cases. It is flexible, powerful, and can be integrated into most any kind of application or website.

Thank you Justin, I have far more knowlage of Python than PhP, I may stick with Python and work with it. As it is very useful and very fun to use.

I have just had a look at elasticsearch seems like it would be a good read.

Thanks for your help!