@@ -133,7 +133,7 @@ def callee(session):
133133 return pool .retry_operation_sync (callee )
134134
135135
136- def select_prepared (pool , path , series_id , season_id , episode_id ):
136+ def select_parametrized (pool , path , series_id , season_id , episode_id ):
137137 def callee (session ):
138138 query = """
139139 PRAGMA TablePathPrefix("{}");
@@ -171,7 +171,7 @@ def callee(session):
171171 commit_tx = True ,
172172 settings = ydb .table .ExecDataQuerySettings ().with_keep_in_cache (True ),
173173 )
174- print ("\n > select_prepared_transaction :" )
174+ print ("\n > select_parametrized_transaction :" )
175175 for row in result_sets [0 ].rows :
176176 print ("episode title:" , row .title , ", air date:" , row .air_date )
177177
@@ -180,8 +180,8 @@ def callee(session):
180180 return pool .retry_operation_sync (callee )
181181
182182
183- # Prepared query with session-based cache (obsolete)
184- def select_prepared_session_based (pool , path , series_id , season_id , episode_id ):
183+ # Prepared query with session-based cache
184+ def select_prepared (pool , path , series_id , season_id , episode_id ):
185185 def callee (session ):
186186 query = """
187187 PRAGMA TablePathPrefix("{}");
@@ -386,5 +386,8 @@ def run(endpoint, database, path):
386386 select_prepared (pool , full_path , 2 , 3 , 7 )
387387 select_prepared (pool , full_path , 2 , 3 , 8 )
388388
389+ select_parametrized (pool , full_path , 2 , 3 , 9 )
390+ select_parametrized (pool , full_path , 2 , 3 , 10 )
391+
389392 explicit_tcl (pool , full_path , 2 , 6 , 1 )
390- select_prepared (pool , full_path , 2 , 6 , 1 )
393+ select_parametrized (pool , full_path , 2 , 6 , 1 )
0 commit comments