11# VFBquery Performance Test Results
22
3- ** Test Date:** 2025-11-19 10:40:43 UTC
4- ** Git Commit:** 74074fbf0f7892b2693dad1d66f19516e613868c
3+ ** Test Date:** 2025-11-19 10:54:14 UTC
4+ ** Git Commit:** 57e5b72eaa13765b0b45b1bd3a815a201c4fa682
55** Branch:** dev
6- ** Workflow Run:** [ 19498394303 ] ( https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19498394303 )
6+ ** Workflow Run:** [ 19498771245 ] ( https://github.com/VirtualFlyBrain/VFBquery/actions/runs/19498771245 )
77
88## Test Overview
99
@@ -105,9 +105,7 @@ Test NBLAST similarity queries ... ok
105105test_09_neuron_input_queries (src.test.test_query_performance.QueryPerformanceTest)
106106Test neuron input/synapse queries ... ok
107107test_10_expression_queries (src.test.test_query_performance.QueryPerformanceTest)
108- Test expression pattern queries ... ok
109- test_11_transcriptomics_queries (src.test.test_query_performance.QueryPerformanceTest)
110- Test scRNAseq transcriptomics queries ... VFBquery functions patched with caching support
108+ Test expression pattern queries ... VFBquery functions patched with caching support
111109VFBquery: SOLR caching enabled by default (3-month TTL)
112110 Disable with: export VFBQUERY_CACHE_ENABLED=false
113111
@@ -119,131 +117,132 @@ TERM INFO QUERIES
119117DEBUG: Checking cache for term_info, term_id=FBbt_00003748, cache_term_id=FBbt_00003748_preview_True, should_cache=True
120118DEBUG: Attempting cache lookup for term_info(FBbt_00003748_preview_True) with full results
121119DEBUG: Cache lookup result: True
122- get_term_info (mushroom body): 1.9620s ✅
120+ get_term_info (mushroom body): 1.7937s ✅
123121DEBUG: Checking cache for term_info, term_id=VFB_00101567, cache_term_id=VFB_00101567_preview_True, should_cache=True
124122DEBUG: Attempting cache lookup for term_info(VFB_00101567_preview_True) with full results
125123DEBUG: Cache lookup result: True
126- get_term_info (individual): 1.7901s ✅
124+ get_term_info (individual): 1.4368s ✅
127125
128126================================================================================
129127NEURON PART OVERLAP QUERIES
130128================================================================================
131129DEBUG: Checking cache for neurons_part_here, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
132130DEBUG: Attempting cache lookup for neurons_part_here(FBbt_00007401) with full results
133131DEBUG: Cache lookup result: True
134- NeuronsPartHere: 1.7101s ✅
132+ NeuronsPartHere: 1.7262s ✅
135133
136134================================================================================
137135SYNAPTIC TERMINAL QUERIES
138136================================================================================
139137DEBUG: Checking cache for neurons_synaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
140138DEBUG: Attempting cache lookup for neurons_synaptic(FBbt_00007401) with full results
141139DEBUG: Cache lookup result: True
142- NeuronsSynaptic: 1.9023s ✅
140+ NeuronsSynaptic: 1.6153s ✅
143141DEBUG: Checking cache for neurons_presynaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
144142DEBUG: Attempting cache lookup for neurons_presynaptic(FBbt_00007401) with full results
145143DEBUG: Cache lookup result: True
146- NeuronsPresynapticHere: 1.6235s ✅
144+ NeuronsPresynapticHere: 1.5970s ✅
147145DEBUG: Checking cache for neurons_postsynaptic, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
148146DEBUG: Attempting cache lookup for neurons_postsynaptic(FBbt_00007401) with full results
149147DEBUG: Cache lookup result: True
150- NeuronsPostsynapticHere: 1.3946s ✅
148+ NeuronsPostsynapticHere: 1.5040s ✅
151149DEBUG: Checking cache for neuron_neuron_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
152150DEBUG: Attempting cache lookup for neuron_neuron_connectivity_query(VFB_jrchk00s) with full results
153151DEBUG: Cache lookup result: True
154- NeuronNeuronConnectivity: 1.4191s ✅
152+ NeuronNeuronConnectivity: 1.5000s ✅
155153
156154================================================================================
157155ANATOMICAL HIERARCHY QUERIES
158156================================================================================
159157DEBUG: Checking cache for components_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
160158DEBUG: Attempting cache lookup for components_of(FBbt_00003748) with full results
161159DEBUG: Cache lookup result: True
162- ComponentsOf: 1.8225s ✅
160+ ComponentsOf: 1.4221s ✅
163161DEBUG: Checking cache for parts_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
164162DEBUG: Attempting cache lookup for parts_of(FBbt_00003748) with full results
165163DEBUG: Cache lookup result: True
166- PartsOf: 1.4264s ✅
164+ PartsOf: 1.3358s ✅
167165DEBUG: Checking cache for subclasses_of, term_id=FBbt_00003748, cache_term_id=FBbt_00003748, should_cache=True
168166DEBUG: Attempting cache lookup for subclasses_of(FBbt_00003748) with full results
169167DEBUG: Cache lookup result: True
170- SubclassesOf: 1.4346s ✅
168+ SubclassesOf: 1.4250s ✅
171169
172170================================================================================
173171TRACT/NERVE AND LINEAGE QUERIES
174172================================================================================
175173DEBUG: Checking cache for neuron_classes_fasciculating_here, term_id=FBbt_00003987, cache_term_id=FBbt_00003987, should_cache=True
176174DEBUG: Attempting cache lookup for neuron_classes_fasciculating_here(FBbt_00003987) with full results
177175DEBUG: Cache lookup result: True
178- NeuronClassesFasciculatingHere: 1.4059s ✅
176+ NeuronClassesFasciculatingHere: 1.3019s ✅
179177DEBUG: Checking cache for tracts_nerves_innervating_here, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
180178DEBUG: Attempting cache lookup for tracts_nerves_innervating_here(FBbt_00007401) with full results
181179DEBUG: Cache lookup result: True
182- TractsNervesInnervatingHere: 1.4100s ✅
180+ TractsNervesInnervatingHere: 1.1806s ✅
183181DEBUG: Checking cache for lineage_clones_in, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
184182DEBUG: Attempting cache lookup for lineage_clones_in(FBbt_00007401) with full results
185183DEBUG: Cache lookup result: True
186- LineageClonesIn: 1.4125s ✅
184+ LineageClonesIn: 1.2842s ✅
187185
188186================================================================================
189187IMAGE AND DEVELOPMENTAL QUERIES
190188================================================================================
191189DEBUG: Checking cache for images_neurons, term_id=FBbt_00007401, cache_term_id=FBbt_00007401, should_cache=True
192190DEBUG: Attempting cache lookup for images_neurons(FBbt_00007401) with full results
193191DEBUG: Cache lookup result: True
194- ImagesNeurons: 1.4380s ✅
192+ ImagesNeurons: 1.1762s ✅
195193DEBUG: Checking cache for images_that_develop_from, term_id=FBbt_00001419, cache_term_id=FBbt_00001419, should_cache=True
196194DEBUG: Attempting cache lookup for images_that_develop_from(FBbt_00001419) with full results
197195DEBUG: Cache lookup result: True
198- ImagesThatDevelopFrom: 1.4091s ✅
196+ ImagesThatDevelopFrom: 1.1815s ✅
199197DEBUG: Checking cache for expression_pattern_fragments, term_id=FBtp0000001, cache_term_id=FBtp0000001, should_cache=True
200198DEBUG: Attempting cache lookup for expression_pattern_fragments(FBtp0000001) with full results
201199DEBUG: Cache lookup result: True
202- epFrag: 1.4042s ✅
200+ epFrag: 1.1892s ✅
203201
204202================================================================================
205203INSTANCE QUERIES
206204================================================================================
207205DEBUG: Checking cache for instances, term_id=FBbt_00003982, cache_term_id=FBbt_00003982, should_cache=True
208206DEBUG: Attempting cache lookup for instances(FBbt_00003982) with full results
209207DEBUG: Cache lookup result: True
210- ListAllAvailableImages: 1.4145s ✅
208+ ListAllAvailableImages: 1.3442s ✅
211209
212210================================================================================
213211CONNECTIVITY QUERIES
214212================================================================================
215213DEBUG: Checking cache for neuron_neuron_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
216214DEBUG: Attempting cache lookup for neuron_neuron_connectivity_query(VFB_jrchk00s) with full results
217215DEBUG: Cache lookup result: True
218- NeuronNeuronConnectivityQuery: 1.4109s ✅
216+ NeuronNeuronConnectivityQuery: 1.2796s ✅
219217DEBUG: Checking cache for neuron_region_connectivity_query, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s, should_cache=True
220218DEBUG: Attempting cache lookup for neuron_region_connectivity_query(VFB_jrchk00s) with full results
221219DEBUG: Cache lookup result: True
222- NeuronRegionConnectivityQuery: 1.4161s ✅
220+ NeuronRegionConnectivityQuery: 1.1847s ✅
223221
224222================================================================================
225223SIMILARITY QUERIES (Neo4j NBLAST)
226224================================================================================
227225DEBUG: Checking cache for similar_neurons, term_id=VFB_jrchk00s, cache_term_id=VFB_jrchk00s_score_NBLAST_score, should_cache=False
228226DEBUG: Attempting cache lookup for similar_neurons(VFB_jrchk00s_score_NBLAST_score) with full results
229227DEBUG: Cache lookup result: False
228+ DEBUG: Executing similar_neurons with original parameters for quick return
230229✅ Neo4j connection established
231- SimilarMorphologyTo: 10.8700s ✅
230+ DEBUG: Background: Executing similar_neurons with full results for caching
231+ DEBUG: Started background caching thread for similar_neurons(VFB_jrchk00s)
232+ SimilarMorphologyTo: 10.9210s ✅
232233
233234================================================================================
234235NEURON INPUT QUERIES (Neo4j)
235236================================================================================
236- NeuronInputsTo: 3.0867s ✅
237+ NeuronInputsTo: 2.7888s ✅
237238
238239================================================================================
239240EXPRESSION PATTERN QUERIES (Neo4j)
240241================================================================================
241- ExpressionOverlapsHere: 0.8132s ✅
242- └─ Found 3922 total expression patterns, returned 10
243-
244- ================================================================================
245- TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
242+ ExpressionOverlapsHere: 0.8328s ✅
246243ok
244+ test_11_transcriptomics_queries (src.test.test_query_performance.QueryPerformanceTest)
245+ Test scRNAseq transcriptomics queries ... ok
247246test_12_nblast_queries (src.test.test_query_performance.QueryPerformanceTest)
248247Test NBLAST similarity queries ... ok
249248test_13_dataset_template_queries (src.test.test_query_performance.QueryPerformanceTest)
@@ -252,55 +251,59 @@ test_14_publication_transgene_queries (src.test.test_query_performance.QueryPerf
252251Test publication and transgene queries ... ok
253252
254253----------------------------------------------------------------------
255- Ran 15 tests in 55.150s
254+ Ran 15 tests in 51.324s
256255
257256OK
257+ └─ Found 3922 total expression patterns, returned 10
258+
259+ ================================================================================
260+ TRANSCRIPTOMICS QUERIES (Neo4j scRNAseq)
258261================================================================================
259- anatScRNAseqQuery: 0.8162s ✅
262+ anatScRNAseqQuery: 0.7043s ✅
260263 └─ Found 0 total clusters
261- clusterExpression: 0.8591s ✅
264+ clusterExpression: 0.5444s ✅
262265 └─ Found 0 genes expressed
263- expressionCluster: 0.7331s ✅
266+ expressionCluster: 0.6464s ✅
264267 └─ Found 0 clusters expressing gene
265- scRNAdatasetData: 0.6903s ✅
268+ scRNAdatasetData: 0.6631s ✅
266269 └─ Found 0 clusters in dataset
267270
268271================================================================================
269272NBLAST SIMILARITY QUERIES
270273================================================================================
271- SimilarMorphologyTo: 0.8700s ✅
274+ SimilarMorphologyTo: 0.9770s ✅
272275 └─ Found 227 NBLAST matches, returned 10
273- SimilarMorphologyToPartOf: 0.5760s ✅
276+ SimilarMorphologyToPartOf: 0.5772s ✅
274277 └─ Found 0 NBLASTexp matches
275- SimilarMorphologyToPartOfexp: 0.5947s ✅
278+ SimilarMorphologyToPartOfexp: 0.6056s ✅
276279 └─ Found 0 reverse NBLASTexp matches
277- SimilarMorphologyToNB: 0.6731s ✅
280+ SimilarMorphologyToNB: 0.6443s ✅
278281 └─ Found 15 NeuronBridge matches, returned 10
279- SimilarMorphologyToNBexp: 0.5915s ✅
282+ SimilarMorphologyToNBexp: 0.5686s ✅
280283 └─ Found 15 NeuronBridge expression matches, returned 10
281284✅ All NBLAST similarity queries completed
282285
283286================================================================================
284287DATASET/TEMPLATE QUERIES
285288================================================================================
286- PaintedDomains: 0.6974s ✅
289+ PaintedDomains: 0.5436s ✅
287290 └─ Found 0 painted domains
288- DatasetImages: 0.5967s ✅
291+ DatasetImages: 0.6528s ✅
289292 └─ Found 0 images in dataset
290- AllAlignedImages: 0.5811s ✅
293+ AllAlignedImages: 0.5169s ✅
291294 └─ Found 0 aligned images
292- AlignedDatasets: 0.8888s ✅
295+ AlignedDatasets: 0.8129s ✅
293296 └─ Found 0 aligned datasets
294- AllDatasets: 0.8099s ✅
297+ AllDatasets: 0.7484s ✅
295298 └─ Found 115 total datasets, returned 20
296299✅ All dataset/template queries completed
297300
298301================================================================================
299302PUBLICATION/TRANSGENE QUERIES
300303================================================================================
301- TermsForPub: 0.5367s ✅
304+ TermsForPub: 0.4696s ✅
302305 └─ Found 0 terms for publication
303- TransgeneExpressionHere: 0.6555s ✅
306+ TransgeneExpressionHere: 0.6246s ✅
304307 └─ Found 2339 transgene expressions, returned 10
305308✅ All publication/transgene queries completed
306309
@@ -313,7 +316,7 @@ test_term_info_performance (src.test.term_info_queries_test.TermInfoQueriesTest)
313316Performance test for specific term info queries. ... ok
314317
315318----------------------------------------------------------------------
316- Ran 1 test in 2.876s
319+ Ran 1 test in 2.455s
317320
318321OK
319322VFBquery functions patched with caching support
@@ -329,9 +332,9 @@ DEBUG: Cache lookup result: True
329332==================================================
330333Performance Test Results:
331334==================================================
332- FBbt_00003748 query took: 1.4177 seconds
333- VFB_00101567 query took: 1.4579 seconds
334- Total time for both queries: 2.8756 seconds
335+ FBbt_00003748 query took: 1.2348 seconds
336+ VFB_00101567 query took: 1.2197 seconds
337+ Total time for both queries: 2.4544 seconds
335338Performance Level: 🟡 Good (1.5-3 seconds)
336339==================================================
337340Performance test completed successfully!
@@ -350,4 +353,4 @@ Track performance trends across commits:
350353- [ GitHub Actions History] ( https://github.com/VirtualFlyBrain/VFBquery/actions/workflows/performance-test.yml )
351354
352355---
353- * Last updated: 2025-11-19 10:40:43 UTC*
356+ * Last updated: 2025-11-19 10:54:14 UTC*
0 commit comments