database - Counts over a large set of records in DB -


i have table [id,item_name,item_price,item_status,item_type,item_owner,item_date]

the application can query table number of search conditions item date and/or item owner etc.

in resultset, need fetch counts different status in item_status.

its causing timeouts when try counts based on status.

how case handled in large volume applications. y mail. have counts of how many in inbox, how many read/unred/sent , not..almost instantly. how can such experience achieved?

other indexing, , bitmap indexes flexible , performant kind of thing if can deal concurrency issues in maintaining them, consider materialised views cover common aggregation levels.

defining multi-level materialised views can give instant response times, , allow effective indexing on having clauses.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -