When I add a lot of records into JavaDB, it becomes very sluggish

StackOverflow https://stackoverflow.com/questions/20242560

  •  05-08-2022
  •  | 
  •  

Вопрос

Do I have to index it? But How do I keep it consistent with the main table. I heard about re-indexing, but when do I do a re-index where appropriate? Thanks Jack

Это было полезно?

Решение

What is becoming sluggish? The inserts? In this case adding an index is probably not going to help. You could look for bulk insert in the docs.

If queries against the large table are getting slow, it may help with an index? If, or how much it helps, depends on how your table is defined and how you access it.

To create an index consult CREATE INDEX statement in the ref manual. It is kept consistent with base table automatically.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top