Category Archives: Technology

Efficient Way to handle deep paging in Solr 4.7

Efficient Way to handle deep paging in Solr 4.7

One thing Solr has never been very efficient at is a problem that people refer to as “Deep Paging”. What is the Deep Paging?

What is Deep Paging:
Imagine the following problem – we have an application that expects Solr to return the results sorted on the basis of some field or Score. Those results will be than paged in the GUI.

However, if the person using the GUI application immediately selects the tenth, twentieth, or fiftieth page of search results there is a problem – the wait time because Solr need to lot of work for it.

Continue reading

Category: Technology | Tags: ,

Searching an Element in a Rotated Sorted Array

What is Rotated Sorted Array
It is nothing but a sorted array, which is twisted/rotated with some pivot element.
So if you observe rotated array then it can be classified as two sub-array that is sorted.

For example your sorted array A:
A = { 0,1,2,3,4,5,6,7,8,9 }
and your rotated sorted array look like this:
A = { 2,3,4,5,6,7,8,9,0,1 }

Now how do you find an element in the rotated array efficiently? You may assume no duplicate exists in the array.

Continue reading

How to generate a random, unique string using numbers and letters

While creating API for Android App, i came across with very simple but difficult (for me) problem.

How would it be possible to generate a random, unique string using numbers and letters for verfiy user, Something like api_key which is unique to user but at the same time it shuold be safe and it will always associate with user.
Continue reading

Subfolders v/s Subdomains: Which one to choose for SEO?

Subfolders and Subdomains have their own pros and cons if viewed from business viewpoint. However, these day’s website owners more interested in  focusing their efforts on SEO.

Which one to choose Subfolder or Sub Domain for my blog promotion?
If you are thinking of launching a new blog, then using a sub-folder will bring better rankings on search engines.

Continue reading

Category: SEO, Technology | Tags: , ,

Memcache

Memcache:
Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Continue reading