<div dir="ltr">Hi Team,<br><br>Thanks for your support.<br><br>Could you please suggest on below query.<br><br>EnvironmentPostgreSQL: 9.5.15<br>Postgis: 2.2.7<br><br>The table contains GIS data which is fiber data(underground routes).<br><br>We are using the below query inside the proc which is taking a long time to complete.<div><br></div><div>*************************************************************<br><br>SELECT seq_no+1 INTO pair_seq_no FROM SCHEMA.TABLE WHERE (Column1 like '%,sheath--'||cable_seq_id ||',%' or Column1 like 'sheath--'||cable_seq_id ||',%' or Column1 like '%,sheath--'||cable_seq_id  or Column1='sheath--'||cable_seq_id) order by seq_no desc limit 1 ;<br><br>****************************************************************<br><br>We have created an index on parental_path Column1 still it is taking 4secs to get the results.<br><br>Could you please suggest a better way to execute the query.<br><br>Thanks for your support.<br><br>Regards,<br>PostgAnn.<br></div></div>