index on url or hashing considering RAM
问题 I am working on a project which needs to add/update around 1 million urls daily. Some days are mostly updates and some days are mostly add and some days are mix. So, on every query there is need to look up uniqueness of url in url table. How look up for url can be made really fast because at the moment index is set at url column and it works good but in coming weeks RAM would not be enough if index are kept on same column and new records will be added in millions. That's why I am looking for