Searching with a wildcard can use an index provided the search criteria doesn’t start with a wildcard and the column is indexed.
You can only read the data once from a fifo file. If you want to read a 2nd time you’ll have to write a 2nd time.
You can try and copy the data to a temp table where people can search without affecting the base table but with a lot of updates and inserts your temp table/file/whatever will become outdated quickly and the search will not find the correct results. Investigate using NOLOCK for your query and submitting your contention problem on the Oracle forum.
But
Quote:
|
Originally Posted by alfrednone
how to use this FIFO
|
Below is an example of how I use a pipe to copy data from one Sybase server to another.
Code:
mkfifo bcp.tmp
bcp maydb.dbo.mytable out bcp.tmp –Ssrv1 -Usa -Pxxxxxx -T1024000 -n &
bcp testdb.dbo.mytable in bcp.tmp -Ssrv2 -Usa -Pxxxxxx -T1024000 -E -n -b10000
rm bcp.tmp
mkfifo make the FIFO special file
bcp is a bulk copy program that can transfer data from a table to a file or vice versa
The bcp out is submitted in background to write to the pipe
And bcp in then read from the pipe