What is the better and faster way to get the results

I'm looking for suggestion for my application.
I need to write an application where in certain section I need to do some checking for the SSN, I need to find if the SSN in table A is a duplicate in Table B.
Table B consist of more than 1 million SSN and table A may have a couple of thousands SSNs.
The SSN in table B consist of good and invalid SSN,such as, SSN with 000 on the first 3 digits or 00 on the second 2 digits or 0000 the the 4 last digits or even all 9 digits consist of 000 00 0000
If I do the regular select SSN from table B where SSN = 'SSN_from_table_A" for 3 to 5 thousands records in a cf loop than it may takes awhile before I can see the result.
Is there a better way to do this?

alecken,
Can you explain some more about the workflow of your application.  I'm not clear so to what is being returned to the client and what tasks are handled on the CF server, on the database server, and on the client's browser. Are you trying to return thousands or records to the client or having problems looping through thousands of records on the server.  Is the client providing a single SSN to check or are you comparing all values in TableA to TableB?   If possible could you post your CF and SQL code?

Similar Messages

  • Updating 3GS from 3.1.2 to 6.1.3 taking way too long. Is there a better and faster way?

    How long does it take to update an original 3GS to 6.1.3? I followed the iTune instructions and it has been updating for hours already. Is there a better and faster way to do this?

    SO if I want to represent the London Underground
    network as a Graph how would I be able to do it?By writing classes of your own or using some one else's. I don't think that the collections framework has out-of-the-box support for graphs.... So try google first.
    The implementation details depend on the API you are going to use, of course...
    from A to B 5 min
    from B to C 4 min
    from A to C 9 min
    this information is redundant, the third info should be omitted. <nit-picking>
    No it's not - What if there's a special, more direct route from A to C? Also, getting from A to B to C will usually take more time than the time from A to B plus the time from B to C. The trains have to stop at B, don't they?
    </nit-picking>
    Maybe this approach is more complex, but it solves the problem Have I understood correctly - isn't what you describe just another way to implement a graph?

  • Step by step what's an easy and fast way to transfer photos and videos from my iphone to my imac?

    step by step what's an easy and fast way to transfer photos and videos from my iphone to my imac?

    Same as you would from any digital camera.  Open iphoto, connect iphone, import photos
    iOS: Importing personal photos and videos from iOS devices to your computer

  • Is there any better and faster way to copy...

    can anyone teel me any better and faster way to copy...
    InputStream in = null;
              OutputStream out = null;
              try {
                   in = new FileInputStream(src);
                   out = new FileOutputStream(dest);
                   byte[] buf = new byte[1024];
                   int len;
                   while ((len = in.read(buf)) > 0) {
                        out.write(buf, 0, len);
              }catch(Exception e){
    }

    Here's a small program as a sample and for testing. Just ran a few tests with a file of 1.5 MB (buffered slightly faster) and a file of 45 MB (NIO much faster) ...
    import java.io.*;
    import java.nio.channels.*;
    public class Copy {
         public static void main(String[] args) {
              if (args.length == 3) {
                   File from = new File(args[1]);
                   File to = new File(args[2]);
                   if (from.exists()) {
                        long start = System.currentTimeMillis();
                        try {
                             if (args[0].equals("nio")) {
                                  copyNIO(from,to);
                             else {
                                  copyBuffered(from,to);
                        catch (Exception ex) {
                             ex.printStackTrace();
                        System.out.println("Time: " + (System.currentTimeMillis() - start) + " ms");
         private static void copyBuffered(File from,File to) throws IOException {
              FileInputStream fis = null;
              FileOutputStream fos = null;
              try {
                   fis = new FileInputStream(from);
                   fos = new FileOutputStream(to);
                   BufferedInputStream in = new BufferedInputStream(fis);
                   BufferedOutputStream out = new BufferedOutputStream(fos);
                   byte[] buf = new byte[8192];
                   int r = 0;
                   while ((r = in.read(buf)) > 0) {
                        out.write(buf,0,r);
              finally {
                   if (fis != null) {
                        try {
                             fis.close();
                        catch (Exception ex) {}
                   if (fos != null) {
                        try {
                             fos.close();
                        catch (Exception ex) {}
         private static void copyNIO(File from,File to) throws IOException {
                   FileInputStream fis = null;
                   FileOutputStream fos = null;
                   try {
                        fis = new FileInputStream(from);
                        fos = new FileOutputStream(to);
                        FileChannel chin = fis.getChannel();
                        FileChannel chout = fos.getChannel();
                        long size = from.length();
                        long total = 0;
                        while (total < size) {
                             total += chin.transferTo(0,size,chout);
                   finally {
                        if (fis != null) {
                             try {
                                  fis.close();
                             catch (Exception ex) {}
                        if (fos != null) {
                             try {
                                  fos.close();
                             catch (Exception ex) {}
    }

  • So i had my ipod stolen and i backed up everythink on to my itunes before, i cant really afford another one and all i really want is the notes what i saved. is there a way to get to them???

    so i had my ipod stolen and i backed up everythink on to my itunes before, i cant really afford another one and all i really want is the notes what i saved. is there a way to get to them???

    No. If you had configured Find My Phone in icloud.com, then you can lock it or erase it, but you cannot recover data from it.
    There probably are third-party utilities that might be able to extract data from the backup file itself. Look for them at MacUpdate.

  • I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have reduced functionality what it this about and how do I get my product back

    I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have reduced functionality what it this about and how do I get my product back

    Hi there
    I have version 5.7 and every time I opened it I was told that updates are available and to click on the icon to access these.  Instead it just took me to the
    adobe page with nowhere visible to update.  I then  sought to download lightroom cc and this is when I could not access the 'develop' section due to reduced
    functionality  It was apparent that my photos had been put in cc but no way to access them unless I wanted to subscribe. 
    I have since remedied the problem as  my original lightroom 5.7 icon is still available on the desktop and have gone back to that.  I do feel that this is a bit
    of a rip off and an unnecessary waste of my time though.
    Thank you for your prompt reply by the way.
    Carlo
    Message Received: May 04 2015, 04:52 PM
    From: "dj_paige" <[email protected]>
    To: "Carlo Bragagnolo" <[email protected]>
    Cc:
    Subject:  I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have
    reduced functionality what it this about and how do I get my product back
    dj_paige  created the discussion
    "I have just sought  to update my lightroom and am now unable to access the develop function and get a note stating that I have reduced functionality what it
    this about and how do I get my product back"
    To view the discussion, visit: https://forums.adobe.com/message/7510559#7510559
    >

  • Which is better and faster in bootcamp xp or vista or 7

    i have installed windows 7 by boot camp i have noticed its boot is very slow
    i m thinking to remove it and try xp
    anyway my question is which is better and faster xp or vista or 7? in bootcamp in the boot and in the normal use applications inside windows?

    sorry i meant i have istalled windows vista by bootcamp now i want to remove it i m asking which is faster and better xp or vista or 7 ?

  • I synced my iphone 3 to my pc and i had about 90 songs on it and when i looked at my phone to check if it worked, it deleted about 80 of the songs, what happened to them and how do i get them back

    I synced my iphone 3 to my pc and i had about 90 songs on it and when i looked at my phone to check if it worked, it deleted about 80 of the songs, what happened to them and how do i get them back

    You might have better luck in the iPhone community. I'll ask the hosts to relocate your post.
    iPhone community
    Have you tried syncing the iPhone to your computer and restoring from the backup to see if you can get your other songs back? If you purchased the new album with your Apple ID, you should be able to download it to your computer to sync.

  • I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    If your Mac is new-ish and has one of the Lions as its OS, the drives, cards, USB sticks no longer show up, even though they're there. Go to Finder's Preferences and tick the corresponding items in the General and Sidebar tabs.

  • I have an iMac (the desktop) I've stupidly left the cable you plug the monitor into the wall with there. What are they called and where can I get a new one?

    I have an iMac (the desktop) I've stupidly left the cable you plug the monitor into the wall with there. What are they called and where can I get a new one?

    Presumably the mains cable, which you can get from an Apple Store.

  • I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on- and how do I get the show to cycle indefinitely?

    I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on… and how do I get the show to cycle indefinitely?  (I have set the server to NEVER sleep)

    Welcome to the Apple Community.
    Have you also set the Apple TV not to sleep.

  • I have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    i have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    Perfectly Clear is a 3rd party commercial plugin for Lightroom.
    http://www.athentech.com/products/plugins/
    Have you ever installed it as a trial in the past?

  • I tried to save a video to IPhoto, and then when I tried to open IPhoto it told me I can't open the application because classic environment is no longer supported.  What does this mean, and how do I get back all my photos and fix this? thanks.

    I tried to save a video to IPhoto, and then when I tried to open IPhoto it told me I can't open the application because classic environment is no longer supported.  What does this mean, and how do I get back all my photos and fix this? thanks.

    With the amount of information you've provided it's impossible to offer a potential solution.  We can't see your computer so we need to know some details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    what fixes have you tried?
    where is you library located?
    did you apply any updates or upgrades just prior to the problem occurring?
    are you running a "managed" or "referenced" library?
    what type of Mac?
    how much free space on your boot drive?
    OT

  • In the top right corner of my i phone screen there is a small padlock with a circle around it, what is this for and how do i get rid of it,, it has only just popped up

    in the top right corner of my iphone screen there is a small padlock with a circle around it, what is this for and how do i get rid of it, it has just popped up...

    That is the orientation lock indicator. It means that you phone will not go into landscape mode when tilted on it's side.
    To turn orientation lock off double tap the home button, to access the multitasking menu, then swipe your finger to the right over the multitasking bar at the bottom and touch the big button on the left with the padlock.

  • I opened my brand new MacBook Pro the other day and noticed a straight green line from top to bottom near the center of the screen. What is it from and how do I get rid of it????

    I am having a problem with my brand new MacBook Pro. After opening my laptop the other day I noticed a straight green line from top to bottom near the center of the screen. What is this from and how do I get rid of it? It is most annoying. Please Help!

    "What is this from and how do I get rid of it?"
    Such symptoms bode serious hardware issues and you shouldn't think about fixing it yourself when you are still in waranty. Get to an Apple Store, like the other poster suggests.

Maybe you are looking for

  • JSF page rendering

    In my application, i am rendering the jsff pages by using ADF regions. I am on page A(a jsff page), from where i go to page B(another jsff page). when the page B is loaded first time all the getters and setters for components(buttons,input box, butto

  • Where are the local radio playlists/charts in the new iTunes 7.0.1.8?

    Q: Where are the local radio playlists/charts in the new iTunes 7.0.1.8? I like to see what the local radio stations and surrounding markets are playing. I used this feature all the time in iTunes 6. A. I just found the answer, but I'll post this any

  • Digital inputs. PFI trigger inpurs

    Hi, I want to be able to to start the data acquistion by the use of digital tigger, say on the rising edge. Do i use the PFI inputs and if so how. Or can use one of the digital input channels. Any help would be grateful. Note that I am using NI PCI 6

  • Virtual KF with Infoset possible ???

    Hi. I need to calculate a KF depending of the result of another KF in a query. I think that a virtual KF is a solution but the problem is that my infoprovider is a Infoset. Can I use virtual KF with Infosets ? If not, any idea to solve this problem ?

  • Adobe Content Viewer focus delay?

    I am wondering if viewing with the Adobe Content Viewer causes delays in articles/pages coming into focus? I have tried building using all three formats: PNG, JPG & PDF. They all have some delay. PNG has least delay followed by JPG then PDF.