Wow. Thanks for the excellent suggestions and analysis! There are lots of great ideas there. <snip>If I didn't want to update the table with my clustering information, is there any way to improve the query to grab multiple records in one go? For example, if I know I want to process features 1, 47, 68 and 71 together, is there a form of query that I could use to grab these records that would be more efficient than SELECT * FROM table WHERE OBJECTID = 1 or OBJECTID = 47 or OBJECTID = 68 or OBJECTID = 71Sorry if this is a dumb question, but I am not an SQL guy, and the efficient methods of dealing with records sets eludes me.Cheers,Tom
SELECT * FROM table WHERE OBJECTID = 1 or OBJECTID = 47 or OBJECTID = 68 or OBJECTID = 71
((87 - 1) / 20) * 20 + 1 = 81
1 2 2 3 ... N N 1
1 N 2 1 N-1 ... N N-1
1 7 2 4 3 6 4 5 5 1 6 2 7 3
SEQ Sequential read of table contents, without regard for the "next" row ID Simple row seeking, one query per row RANGE Blocked row seeking, one query per optional block size, with an optional number of cached blocks
A - table name (tN_sM) B - mode C - number of columns* D - Size of cache blocks (in rows) E - number of blocks in the cache F - Number of rows read G - Number of row.Get{datatype} executions H - Number of table.Search invocations I - query time (time spend in table.Search and enumRows.Next) J - get IO time (time spent in row.Get{datatype} K - elapsed time (total time to execute)
A B C D E F G H I J K t1_s1 SEQ 3 0 0 10k 30k 1 0.0ms 17.7ms 25.81ms t1_s2 SEQ 3 0 0 100k 300k 1 0.0ms 162.4ms 171.56ms t1_s3 SEQ 3 0 0 1m 3m 1 0.0ms 1.6sec 1.58sec
A B C D E F G H I J K t1_s1 ID 3 0 0 10k 30k 10k 2.4sec 22.8ms 2.46sec t2_s1 ID 3 0 0 10k 30k 10k 2.4sec 22.3ms 2.47sec t3_s1 ID 3 0 0 10k 30k 10k 2.4sec 23.2ms 2.46sec t4_s1 ID 3 0 0 10k 30k 10k 2.4sec 22.2ms 2.45sec t5_s1 ID 3 0 0 10k 30k 10k 2.4sec 23.1ms 2.45sec t1_s2 ID 3 0 0 100k 300k 100k 24.1sec 223.8ms 24.35sec t2_s2 ID 3 0 0 100k 300k 100k 24.1sec 232.8ms 24.31sec t3_s2 ID 3 0 0 100k 300k 100k 24.4sec 232.6ms 24.60sec t4_s2 ID 3 0 0 100k 300k 100k 24.0sec 221.0ms 24.21sec t5_s2 ID 3 0 0 100k 300k 100k 24.1sec 219.7ms 24.36sec t1_s3 ID 3 0 0 1m 3m 1m 4.0min 2.3sec 4.02min t2_s3 ID 3 0 0 1m 3m 1m 4.1min 2.3sec 4.13min t3_s3 ID 3 0 0 1m 3m 1m 4.0min 2.3sec 4.02min t4_s3 ID 3 0 0 1m 3m 1m 4.0min 2.2sec 4.05min t5_s3 ID 3 0 0 1m 3m 1m 4.0min 2.3sec 4.02min
A B C D E F G H I J K t1_s1 RANGE 3 200 1 10k 30k 50 754.6ms 16.1ms 778.98ms t2_s1 RANGE 3 200 1 10.2k 30.6k 51 0.8sec 17.0ms 0.82sec t3_s1 RANGE 3 200 1 1.96m 5.87m 9.8k 2.6min 3.3sec 2.64min t4_s1 RANGE 3 200 1 655k 1.97m 3.3k 49.9sec 1.0sec 50.91sec t5_s1 RANGE 3 200 1 873k 2.62m 4.4k 1.1min 1.4sec 1.12min t1_s1 RANGE 3 200 9 10k 30k 50 799.2ms 16.3ms 0.82sec t2_s1 RANGE 3 200 9 10.0k 30.1k 51 767.8ms 16.0ms 791.88ms t3_s1 RANGE 3 200 9 1.62m 4.87m 8.1k 2.1min 2.6sec 2.13min t4_s1 RANGE 3 200 9 19k 58k 97 1.5sec 32.0ms 1.52sec t5_s1 RANGE 3 200 9 10k 30k 50 762.1ms 16.4ms 781.71ms t3_s1 RANGE 3 200 15 1.38m 4.15m 6.9k 1.8min 2.3sec 1.79min t4_s1 RANGE 3 200 15 10k 30k 50 764.2ms 16.3ms 783.65ms t5_s1 RANGE 3 200 15 10k 30k 50 770.3ms 15.5ms 788.86ms t3_s2 RANGE 3 200 15 1.94m 5.81m 96.7k 191min 32.9sec 191.02min t4_s2 RANGE 3 200 15 100k 300k 500 57.3sec 157.2ms 57.44sec t5_s2 RANGE 3 200 15 100k 300k 500 57.7sec 160.4ms 57.91sec t3_s1 RANGE 3 200 25 984.2k 2.95m 4.9k 1.3min 1.7sec 1.31min t4_s1 RANGE 3 200 25 10k 30k 50 745.9ms 16.5ms 765.51ms t5_s1 RANGE 3 200 25 10k 30k 50 780.5ms 16.8ms 0.80sec t3_s2 RANGE 3 200 25 18.9m 56.8m 94.7k 182min 30.2sec 182.61min t4_s2 RANGE 3 200 25 100k 300k 500 55.5sec 166.1ms 55.71sec t5_s2 RANGE 3 200 25 100k 300k 500 56.9sec 163.8ms 57.05sec
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.