If I have a sql query that uses 'distinct' (in oracle), would it be faster than retrieving the non-distinct then getting the unique results via java programming?

I heard somewhere that oracle sql distinct is heavy, but is it heavier than manual 'distinction' via java programming?

Thanks, Franz

Edit
Report