I am working with HBase DB through Phoenix, and I need to compare two Strings of epoch timestamp. the method to_number("ts") takes too long to compute for big amount of data.
What is the best practice for comparing two string of epoch timestamps without converting them into number or any other conversion.
Using string comparison works well for number of the same length e.g 456 < 654. But for number of different length it might fail, e.g 456 < 65.
I considered planting zeroes before each number in the insertion progress so that all strings will be of the same length, but there must be a better way to do it.