I recently reindexed some of my tables with half a million records in it. this is the first time we reindexed those tables. most of the stuff seeems to work faster except one User defined function which gets stuck and doesnt return anything. i tried to play around with that query and turned it into a simple query and even that takes alot of time to come up.
i tried all options that i found while browing through differnet forums. I tried rebuilding,reorganizing indexes, update statistic with and without fullscan, recompiled all procedures. even created a table from scratch and put those index on it and copied data from original table. but the problem persists.
this was working fine before we reindexed those tables. i used simple dbcc dbreindex command with 80 fillfactor to reindex them. database file grew almost double after reindexing and log file remained almost same. Database autogrowth option set to default 10%. recover mode is 'simple'
btw, this query that fails to come up after reindexing uses lot of subqueries in select field list. i.e. select customer.name, (select orders.orderId from orders where order.customerid = customer.id) as orderid etc. just an example but something like that. does this make any difference?
can somebody please try to help on this issue. thanks very much in advance.
preguntado el 27 de agosto de 11 a las 17:08