Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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!