Commit 1cafc2e
authored
cache ResultSet metadata in getMetaDataMapByMessageId to reduce per-row metadata lookups (#282)
* cache ResultSet metadata in getMetaDataMapByMessageId to reduce per-row metadata lookups
Cache ResultSetMetaData (column count, types, and names) before iterating rows so getColumnType/getColumnName are not called for every row. Adjust column indexing and decryption logging to use the cached metadata. This reduces repeated metadata calls and improves performance when reading connector metadata from the database.
Signed-off-by: Nico Piel <nico.piel@hotmail.de>
* Remove comments
Signed-off-by: Nico Piel <nico.piel@hotmail.de>
* Cache ResultSet metadata before iterating rows to avoid per-row lookups
Cache ResultSetMetaData (column count, types, and names) up front instead of calling getColumnType/getColumnName for every row. This reduces repeated metadata lookups and improves performance when reading metadata rows from the database.
Signed-off-by: Nico Piel <nico.piel@hotmail.de>
* Whoops
Signed-off-by: Nico Piel <nico.piel@hotmail.de>
* Unnecessary comments
Signed-off-by: Nico Piel <nico.piel@hotmail.de>
* Cache ResultSet metadata and use 1-based indexing to avoid per-row metadata lookups
Cache ResultSetMetaData (column count, types, and names) before iterating rows and switch to 1-based arrays/loops so resultSet getters can be called directly with the column index. This prevents repeated getColumnType/getColumnName calls for every row and reduces per-row metadata lookups when building connector metadata maps.
Signed-off-by: Nico Piel <nico.piel@hotmail.de>
---------
Signed-off-by: Nico Piel <nico.piel@hotmail.de>1 parent a6ae879 commit 1cafc2e
1 file changed
Lines changed: 13 additions & 8 deletions
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2935 | 2935 | | |
2936 | 2936 | | |
2937 | 2937 | | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
2938 | 2947 | | |
2939 | 2948 | | |
2940 | 2949 | | |
| |||
2951 | 2960 | | |
2952 | 2961 | | |
2953 | 2962 | | |
2954 | | - | |
2955 | | - | |
2956 | | - | |
2957 | 2963 | | |
2958 | | - | |
2959 | 2964 | | |
2960 | 2965 | | |
2961 | | - | |
| 2966 | + | |
2962 | 2967 | | |
2963 | 2968 | | |
2964 | 2969 | | |
2965 | 2970 | | |
2966 | 2971 | | |
2967 | 2972 | | |
2968 | | - | |
| 2973 | + | |
2969 | 2974 | | |
2970 | 2975 | | |
2971 | 2976 | | |
2972 | 2977 | | |
2973 | 2978 | | |
2974 | 2979 | | |
2975 | | - | |
| 2980 | + | |
2976 | 2981 | | |
2977 | 2982 | | |
2978 | 2983 | | |
| |||
2983 | 2988 | | |
2984 | 2989 | | |
2985 | 2990 | | |
2986 | | - | |
| 2991 | + | |
2987 | 2992 | | |
2988 | 2993 | | |
2989 | 2994 | | |
| |||
0 commit comments