09-23-2009 03:33 AM
09-23-2009 03:42 AM
The method adapted can be related to size of the queue. if size is too large then just read elements one by at a faster rate if the elements are too low in the queue then flush queue is preferable. Because the flush queue returns some complex output like Array of cluster arrays [for array data type] which is again a tedious task to unbundle and seggregate the elements.
So for larger number and complex data types read elements one by one..for smaller elements flush queue is prefarable.
09-23-2009 07:11 AM