Flickr API and cflickr - performance issue with my code.

I use cflickr to access the api of Flickr and view photos in a lightbox. My code is functional, but incredibly slow. I guess I go about it in an improper way and hoping that someone can point out a better way to do what I'm trying to accomplish. My speed problems develop when I try to extract the descriptions of images within a loop that is show the pictures on the page.

Here is an example of the code that I use:

using the following to enter photos:

< cfset photos = cflickr.photosets_getPhotos (photoset_id = 72157624340881708, auth_token = token) / >

I then use the following for loop through the array of photos and and also to retrieve the description for each image.

< div style = "width: 423px; margin: auto; "id = 'Gallery' >
< = cfloop '1' to = "#arraylen (photos.photoset.photo) ' # ' index 'i' = >"
< cfset = photos.photoset.photo [i] p / >
< cfset img_desc = cflickr.photos_getInfo (photo_id = p.id).photo.description / >
< cfset img_desc = replace (img_desc, 'TRAVEL', ' < br / > TRIP ') / >
< cfset title photos.photoset.photo [i] .title = / >
< cfset title = title & "< br / >" & img_desc / >
< cfoutput >
< a href = "#cflickr.getPhotoUrl(p, '')" # "title =" #title #"> < img src =" #cflickr.getPhotoUrl(p, 's') # "/ > < / has >.
< / cfoutput >
< / cfloop >
< / div >

The problem with the code is when it applied for the img_desc inside the loop to the api of Flickr. Each instance of this call takes an average of 300 to 400 MS and the table has more than 300 points, so it times out. I would retrieve all image descriptions at once before the loop and if so, how much better would connect these with the image data that they belong with? It seems that I go about it rather inefficiently.

I was hoping that I could call a function that pulls all the data I need in a single call, but so far, I've been unable to conclude that.

(Grrr... this forum trashes e-mail better than any application I have ever seen.)  Here's what my previous answer said in fact...)

I can't say that I used it. But the use of cfc seems to follow very closely the API . So, I took a glance on flickr forums, and someone suggests that you can retrieve descriptions too by adding the parameter 'extras '.

http://www.Flickr.com/groups/API/discuss/72157594456853637/#comment72157623785775034

So try using:
   
auth_token = token, options = "description") >

Tags: ColdFusion

Similar Questions

  • Windows Vista and especially performance issue with M/B AsRock P4i45GV R5.0

    4 years ago, I bought AsRock P4i45GV-M/B 5.0 R, with Intel Pentium 4 processor with 2.40 GHz, 1 MB of L2 Cache.

    I have installed Windows Vista, since Intel 82845 G onbaord graphics does not support Windows Vista, I havd to installed an add - in AGP card. I installed NVIDIA GeForce FX 5500 and I also tried NVIDIA GeForce FX 5200, but my system does not at all. It's really slow.

    Is this due to add - on card AGP?

    I installed 2 GB of RAM, which is the maximum amount of RAM my M/B can support.

    I also tried with Windows 7, but it works worse than Windows Vista on my PC.

    Please, help me to boost the performance of my system. I don't want to go back to Windows XP.

    The problem may be because my M/B does not support Windows Vista and higher?

    Rannvijay Kapoor

    The processor and the graphcis card are old and not the fastest.

    Buy a new basic system of AMD (Athlon II X 2/X 3, at least 2 GB of DDR3 RAM, a mainbaord with AMD 880 G chipset (integrated graphics card), you can use the old HARD disc), it is not too expensive, but gives you a boost huge performance.
    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • Hello I would like to create a Muse site with homepage and a member area with access code to access the other page of the site is possible this? Thank you

    Hello I would like to create a Muse site with homepage and a member area with access code to access the other page of the site is possible this? Thank you

    No. you're looking completely in the wrong place. These things requires a dynamic system that is appropriate like Wordpress, Joomla and so on. That or a paid Business Catalyst Pro account.

    Mylenium

  • Performance issues with large number of nodes

    I am creating an application to display graphics (large), for example:

    graph.png

    But I ran into some performance issues, even for a relatively small number of nodes in the scene graph (+-2000 in the picture above). The graph is built, step by step, adding circles and paths to a StackPane. Circles and paths can be semi-transparant. For a small number of nodes, I get a solid 60 FPS, but this decreases over time to about 5 frames per second. As soon as I stop adding new nodes, the framerate shoot again up to 60 images per second. The framerate drop even when all the nodes are outside the viewport.

    My questions are:

    * Is Platform.runLater () call to 2000 times a minute too?

    * This might just be a problem with my graphics card? (I have an Intel HD Graphics 3000)
    * JavaFX pulse recorder says such things, are there meaningful information in that I'm missing?

    PULSE: 1287 [163MS:321MS]

    T14 (0 + 0ms): col of CSS

    T14 (0 + 5ms): layout pass

    T14 (6 + 152ms): waiting for the minutes of the previous

    T14 (158 + 0ms): copy the State for graphic rendering

    T12 (159 + 0ms): dirty opts calculated

    T12: Path of the slow form for null

    T12 (159 + 160ms): painted

    T12 (319 + 2ms): Presentable.present

    T12 (321 + 0ms): completed the presentation of painter

    Counters:

    Background image of the region used cached: 14

    NGRegion renderBackgroundShape slow path: 1

    Nodes displayed: 1839

    Nodes visited during rendering: 1840

    Kind regards

    Yuri

    Basically, try some optimization of performance ranging from the simple to the complex.   Each of the changes below may provide you with an increase in performance.  Some will probably increase performance much more that others (depending on where is the real bottleneck).  I would probably start by replace the paths to the lines and reduce the number of Platform.runLater calls (as adding nodes that fall within the viewport can be difficult only).

    > The framerate drop even when all the nodes are outside the viewport.

    Place the nodes in the graph, which fall inside the viewport.

    > Is Platform.runLater () call to 2000 times a minute too?

    Yes, there is no reason to call it more than 60 times a minute when the framerate of JavaFX is capped at 60 frames per second by default.

    > This might just be a problem with my graphics card? (I have an Intel HD Graphics 3000)

    Yes, it's a graphics system relatively low-end.  But, look at the comment of developer below - your CPU and choice of graphic primitives can also affect rendering speed.

    > Adding circles and the paths to a StackPane

    You don't need a StackPane to this, a group is a container easier and probably better.

    > may be semi-transparant

    Remove transparency * may * cause acceleration.

    ----

    You run may be:

    https://JavaFX-JIRA.Kenai.com/browse/RT-20405 : improve the rendering of path performance

    Maybe if you use lines rather than the paths, performance might improve.

    A comment by a developer on this performance tweak application is:

    «It is quite normal for applications that use arbitrary paths (if the node path objects, SVGPath, polyline, or polygon) because these paths are rendered in software.» As card circle, Ellipse, line and Rectangle very primitive forms easily to the operations that can be performed entirely on the GPU, which makes them essentially cheap. There is no need to compare the rendering of a complicated shape for rendering of simple primitives for this reason. »

    ----

    Setting the cache indicators can help, but probably only if you animate nodes.

    ----

    Present level of detail of your graph functionality so a chart with zoom out is not make as many nodes as a part of zoomed in.

    ----

    You run any code important calculation on the JavaFX application thread that could stall it?

    Can make you available a ftom so that others can reproduce your problems?

  • Performance issues with Photoshop CS6 64-Bit

    Hello-

    Issue at hand: in recent weeks, I noticed significant problems with performance since the last update PS CS6 using the Adobe Application Manager, from the unexpected shut downs to bring my computer to a crawl (literally, my cursor seems to crawl on my screens). I'm curious to know if anyone knows these issues, or if there is a solution I have not yet tried. Here is a list of actions that give rise to these performance issues - there are probably more that I have not experienced due to my frustration, or were not documented as occurring several times:

    • Opening files - results by hanging processes, takes 3-10 seconds to solve
    • Paste from the Clipboard - results by hanging processes, takes 3-10 seconds to solve
    • Saving files - takes 3-10 seconds to open the dialog box, another 3 to 10 seconds to return to the normal window (saving an image PNG compressed)
    • The eyedropper tool - will crash Photoshop on the desktop, or take 5 to 15 seconds to load
    • Try to navigate any menu - Photoshop crash on the office or take 5 to 15 seconds to load

    Attempts I took to solve this issue, which failed:

    • Uninstalled all fonts I have added since the last update (it's a pain in the *, thanks to be glitch Windows Explorer)
    • Uninstall and reinstall the application
    • Edition 32-bit use
    • Change process priority to above normal
    • Confirm the process for all available cores of the processor affinity
    • Change the configuration of the performance of Photoshop options
      • 61% of memory is available to Photoshop to use (8969 MB)
      • History States: 20; Cache levels: 6; Tile cache size: 1024K
      • Records of work: active on the production of SSD, ~ 10GB of available space
      • Dedicated graphics processor is selected (2 x nVidia cards in SLI)

    System information:

    • Intel i7 2600 K @ 3.40 GHz
    • 16 GB of RAM Dual Channel DDR3 memory
    • 2 x nVidia GeForce GTS 450 cards, 1 GB each
    • Windows 7 Professional 64 bit
    • Adobe Creative Cloud

    This problem is cost me time that I work every day, and I'm about to start looking for alternatives and cancel my subscription if I can't get this resolved.

    Have you tried to restore your preferences to set the parameters of performance return to their default values and restart Photoshop? http://blogs.Adobe.com/Crawlspace/2012/07/Photoshop-basic-troubleshooting-steps-to-fix-MOS t - issues.html #Preferences

  • Performance issue with the submodels

    Hello
    I'm working on submodels and my requirement needs only one main calling location several specific submodels (a location may have several own submodels, e.g.: US_subtemp1, US_subtemp2, US_subtemp3... in the same way to other locations).
    I would like to know is there any performance issue associated with calls in the submodels and on how this decrease in performance can be minimized.

    Kind regards
    Arvind

    Use of the submodels with components imported alongside repeated sections in the main template layout is not recommended when the number of repetitions is high and the size of the document is large. BI Publisher optimize the xsl transformation internally, but it is not applied to xsl inside models of void.
    One of the extreme scenario is a main model set only a repeating section that matter a submodel of the header and the footer.
    A body of the repeating section is defined in the subtemplate. In this scenario, there is no xsl optimization made and you can easily see some differences in performance.

    As long as you don't need to repeat the layouts of submodels, you don't need to worry about this performance issue.

    Thank you
    Shinji

  • Performance issue with an external HARD drive

    Hi all

    I wish you all a happy new year and good luck for 2008

    I have a performance problem with a HARD drive: 3.5 inch USB 2.0 HDD with Alu - case. (320 GB of capacity)
    The average copy files is about 470 KB/Sec.

    When I connect the external HARD drive to my laptop (for any USB port), I have a ToolTip message: "this device can perform faster - this USB device can be faster if you connect it to a USB 2.0 port. I can assure you, my computer laptop USB USB 2.0 port.

    I conneted my drive external HARD to both PC and I have the same ToolTip message: "this device can perform faster - this USB device can be faster if you connect it to a USB 2.0 port.

    Is this problem known to you?
    I think the problem is in the firmware of the external HARD drive.

    + Other ++ information: +.

    + OS: Windows XP Pro SP2 +.
    + USB port all tested are USB 2.0 +.
    + HARD drive divided on 4 logical drives.
    + Antivirus: Symantec. I had test with and without my antivirus. +
    + I have had this problem for 3 weeks and before that I had no problem. +

    Thanks in advance & best regards,
    Marouane

    Hello

    I got the same info after the connection of a digital camera.
    The same message appears in the taskbar. I simply disbled this message;
    In Device Manager, click the USB host controller, click the Advanced tab, and then check the box at the bottom of the window that says don't tell me about USB errors.

    You must do this for each USB controller listed under USB in Device Manager, so that the error message no no matter which controller is used.

    I goggled for this + this device can perform faster + and got many successes. It seems that this is not a hardware problem, but simply a problem of operating system software

    That s all I can suggest

  • Performance issue with multiple jumps of FCoE

    At at - it implemented FCoE multihop on the new firmware 2.1? I moved my UCS lab he and storage performance stagnated. Here's what I have in my lab.

    2 nexus 5500 s - used for LAN and FC switch

    EMC CX4-120 - connected to the 5500 s Nexus 2

    UCS 6120/FEX 2104 - Pre-FCoE to installation has been a port-channel 2 SAN ports in every tissue of the Nexus 5ks.

    6 servers B200 M1

    ESXi 5

    I wired to the top a twinax addition on a fabric of interconnection to 5548 Nexus in FC fabric

    I wired to the top a twinax addition on interconnection fabric Nexus 5548 FC fabric b B

    Configured interfaces such as FCoE uplink in UCS

    Placed the FCoE interfaces in the proper VSAN

    A tissue at the same time, I have disabled port-channel SAN FC to force the vHBAs to connect to the uplink of FCoE. Didn't have any problems with this and vHBAs appeared in the table flogi to the couple of 5ks on the interface correct vfc.

    Reloaded my ESXi (SAN boot) hosts and guests restarted very well using uplink of FCoE to Nexus 5ks.

    When I turned on a virtual machine, it took more than 20 minutes for it to start and he was to the point where it was usable.

    No drops or errors on the FCoE interfaces or the fabric of interconnections vfc and Nexus 5ks.

    As soon as I have reactivated the CF port-channel SAN using 4 GB SFP modules and disable the performance of uplink FCoE was fine again.

    I hope that it is something to do with the older hardware of the generation 1 6100 s and the IOM s 2100 and not a bug.

    I have 2 other servers HP rack mount with CNAs Qlogic FCoE on the VMFS LUNS even without any problem.

    Case ID: 624922297

    The Nexus switches as well as technical support UCSM are attached.

  • Performance issue with select only one option

    Hello

    We have performance problems with the selected component to a choice that we use on our page. As soon as I have one in the drop-down list select downwards, it displays a "BUSY" icon Here is the code of the component I have on my jsff.
    <af:selectOneChoice id="socInterval" label="Interval"
                                                  value="#{pageFlowScope.usageMB.selectUsageTrend}"
                                                  autoSubmit="true">   
                                <f:selectItem id="si023" itemLabel="Hourly"
                                              itemValue="Hourly"/>
                                <f:selectItem id="si123" itemLabel="Daily"
                                              itemValue="Daily"/>
                                <f:selectItem id="si112" itemLabel="Weekly"
                                              itemValue="Weekly"/>
                                <f:selectItem id="si113" itemLabel="Monthly"
                                              itemValue="Monthly"/>
                                <f:selectItem id="si1123" itemLabel="Yearly"
                                              itemValue="Yearly"/>
                              </af:selectOneChoice>
    Please let me know if you have any suggestions.

    Thank you and best regards,
    Kiran

    Why meet autoSubmit = "true" for the component?
    Are you doing any treatment/PPR on the same? This can cause the problem.

    Thank you
    Nini

  • Potential performance issue with the mobile app

    Hello

    I'm working on a small mobile project to see how the view system and its performance.

    To see what is happening with the objects, I tried the Profiler today and I was surprised to see that the Navigator object does not use view previous instances.

    For example if I navigate between 2 displays the browser instead of using the 2 objects already created, it creates each time it's push() function is called.

    Maybe there is something that I do not understand that it makes the behavior desired, if so can someone explain it to me please? If this isn't the case, then I'm worried about leaks memory after an intensive use of the views in the app.

    I have to make it clear that I do not use any weird code that could disable the browser work properly, my app is less basic at this point and I'm also using weak references on each event listener to avoid problems of memory.

    I didn't not try your code, but you could run this question: http://bugs.adobe.com/jira/browse/SDK-28396 , which was set after the beta version.

    -Ryan

  • I'm having trobles bases of microsoft update and it comes up with error code 0 x 80070424

    "I had a security problem, a virus hoax" XP internet security ', I got rid of that and installed "microsoft essentials" but it won't update comes up with error code ' 0 x 80070424 "when I try to update

    Either the malware damaged and made a necessary update service unusable or malware peut even reside on the system.

    ERROR_SERVICE_DOES_NOT_EXIST 80070424
    The specified service does not exist as an installed service.

    There is a forum dedicated to the problems with Microsoft Security Essentials update-
    Updating virus and spyware definitions

    But, since it can still be malware residing on your system, suggest you either wait until a moderator moves your forum post MSE of scanning, detection and removal of threats or see if the Safety Scanner care can detect and remove any malware resident - OneCare Safety Scanner
    If your system cannot access the OneCare Safety Scanner while it is usually a sign that the malware still resides.

  • Performance issue with the query when join OKS and tables of the IB

    Hello

    I'm developing an integration for the automation of RMA through repair. The type of repair order is based on the details of the guarantee. This check must be made for each record.

    Request for detailed below, I wrote, but it of a long way and slows down my program. Without this validation, it works perfectly.

    The problem is the join of tables with OKS IB, he kills performance. I also try to my side,

    any suggestion or help is appreciated. Here's the query in the program:

    SELECT DISTINCT (TYPE |) '-' || service | '-' || status)

    IN v_war_details

    FROM (SELECT TO_NUMBER (linesb.line_number) line,

    DECODE

    (fnd_profile. VALUE

    ('OKS_LINE_MIRR_NAME_OR_DESC'),

    'DISPLAY_NAME', sysitems.concatenated_segments,

    "DISPLAY_DESC", sysitems.description

    ) service.

    linestyletl.NAME TYPE,

    status of ststl.meaning,

    start_date linesb.start_date,

    linesb.end_date end_date,

    oks_misc_util_web.duration_period

    (linesb.start_date,

    linesb.end_date

    ) DURATION OF,.

    TimeUnit.unit_of_measure_tl period

    Of okc_k_lines_b linesb,.

    okc_k_lines_tl linestl,

    okc_line_styles_b linestyleb,

    okc_line_styles_tl linestyletl,

    okc_k_headers_all_b hdr,

    oks_k_lines_b slines,

    okc_k_items kitems,

    mtl_system_items_b1_kfv sysitems,

    okc_statuses_b stsb,

    okc_statuses_tl ststl,

    mtl_units_of_measure_tl timeunit,

    okc_lookups_v rentype,

    Glu mtl_units_of_measure_tl

    WHERE linesb.cle_id IS NULL

    AND linesb.ID = linestl.ID

    AND linestl. LANGUAGE = USERENV ("LANG")

    AND linesb.lse_id = linestyleb.ID

    AND linesb.lse_id (1, 12, 14, 19, 46)

    AND linestyleb.ID = linestyletl.ID

    AND linestyletl. LANGUAGE = USERENV ("LANG")

    AND linesb.chr_id = hdr.ID

    AND linesb.ID = slines.cle_id

    AND linesb.ID = kitems.cle_id

    AND kitems.object1_id1 =

    SysItems.inventory_item_id

    AND kitems.object1_id2 =

    SysItems.organization_id

    AND kitems.uom_code = uom.uom_code (+)

    AND unit of measure. LANGUAGE (+) = USERENV ("LANG")

    AND linesb.sts_code = stsb.code

    AND stsb.code = ststl.code

    AND ststl. LANGUAGE = USERENV ("LANG")

    AND timeunit.uom_code =

    oks_misc_util_web.duration_unit

    (linesb.start_date,

    linesb.end_date

    )

    AND timeunit. LANGUAGE = USERENV ("LANG")

    AND linesb.line_renewal_type_code = rentype.lookup_code (+)

    AND rentype.lookup_type (+) =

    'OKC_LINE_RENEWAL_TYPE '.

    AND (IN) hdr.ID

    SELECT kh.ID

    Of okc_k_headers_all_b kh.

    okc_k_lines_b kl,

    Ki okc_k_items,

    okc_line_styles_v ks,

    csi_item_instances c,

    mtl_system_items_b I have

    WHERE kh.org_id = p_org_id

    AND c.instance_id = p_instance_id

    AND c.serial_number = p_serial_num

    AND i.inventory_item_id =

    p_inventory_item_id

    AND kh.contract_number_modifier IS NULL

    -can be filled

    AND kh.ID = kl.dnz_chr_id

    AND kh.ID = ki.dnz_chr_id

    AND kl.ID = ki.cle_id

    AND kl.lse_id = ks.ID

    AND IN ki.jtot_object1_code

    ("OKX_CUSTPROD")

    AND c.last_vld_organization_id =

    i.organization_id

    AND TO_NUMBER (ki.object1_id1) =

    c.INSTANCE_ID

    AND c.inventory_item_id =

    i.inventory_item_id))

    Service = 'GUARANTEE '.

    AND TRUNC (SYSDATE) BETWEEN start_date AND end_date;

    Not sure where it would be so I put it in the section SQL/PLSQL.

    Kind regards

    Prashant

    Found the solution

    AND TO_NUMBER (ki.object1_id1) = c.instance_id

    replaced by to_char (c.instance_id) = ki.object1_id1 AND

  • Performance issues with Photoshop CC and iMac 5 k

    I have recently bought an iMac with 5 k Retina display and photoshop CC is trolling - especially when doing any options of selective color, curves, levels, etc.   I am a photographer and desperately need to Photoshop CC to run effectively.    Are there options for me who don't understand resume my new iMac to the store and stick with the PC?

    Many people, I think I solved the problem in 3 ways. Not sure that one was the winner then try them one at a time.

    1. I upgraded to El Capitan

    2. I checked (open in low resolution) within the cc Photoshop app.

    3. go to preferences in Photoshop, select performance, then change the basic design mode.

  • Performance issues with built-in security and ODP

    Hello

    During the performance test for opening a database connection, I noticed that there is a problem of performace huge when using externally identified users and ODP with Oracle 11.1.0.6 client and .net 3.5. The test runs 30 times slower with an external user identified compared to a database of identified user.

    I also noticed that System.Data.OracleClient does not lead to alterations in the significant performance for users of database identified outside vs.

    The test environment is Vista 64 and VS2008 and I see no significant difference by using 32-bit vs 64-bit Oracle client.

    Is this a known problem and is - it a solution for this?

    Kind regards
    Oyvind

    It just occurred to me that you are on x 64. If you use 64-bit software, you need to apply 11107 RDBMS patch to the client because there are currently no group ODAC 11106.20 for x 64, but patch 11107 customer will give the same functionality that is in ODAC 11106.21.

  • Facing problems with Windows Update and other performance issues.

    Hi, I have a Windows 7 (64 bit) for HP Pavilion dv6 laptop. Since January 5, 2014, my computer had problems. Windows Update stopped working. Whenever I try to run it, it says that the service is not running. When I try to set the agenda by running Microsoft Fix it, an error occurs. It says "Troubleshooting cannot continue because an error has occurred" and when I try to repair Microsoft Fix it with "DIAG_MATS_NETWORK_global", it does not detect any problems. The first time I met the problem was when I tried to play Minecraft; It wouldn't connect and when I tried to relog I get a "SocketException: unrecognized Windows Socket Error: 86 create." Microsoft Security Essentials has update problems as well and my Hamachi can not connect. Skype and all my other programs and video games, such as League of Legends and Maplestory all will work perfectly well. I've looked everywhere in the Microsoft Web site and cannot find a solution. Please help me solve this problem!

    Thanks, but I fixed it! I used the Microsoft Safety Scanner, and it fixed the problem. :)

Maybe you are looking for

  • Efficiency

    Hello world. I need help, and it will be appreciated. I need to find the efficiency in the use of a group of rooms. I have a table with 4 columns: Column number that we called 'derivatives date' contains a number obtained an old date column by using

  • L5V-00001 Sculpt ergonomic keyboard mouse with KVM and Wireless Office

    Transmitter/receiver plugs directly into the PC, the keyboard and mouse both work very well. When the transmitter/receiver plugs into the USB port on the KVM switch, only works for keyboard, the mouse seems dead, but gives PC meet the win button (blu

  • Hitcnt of compensation on an access list

    I've searched and can't seem to find a way to clean the hitcnt on an access list other than the deletion and restoration of the access list. Does anyone know how to do this? Thank you J Allow Access-list ip x.x.x.x 255.255.255.240 sheep a (hitcnt = 7

  • Acrobat Reader plugin signature yellow question mark

    I develop a plugin for digital signature (mainly for the reader but should work as well in Acrobat format). I have a basic proof of concept works, with the signing and verification and custom signature appearance, but I am getting a yellow question m

  • Do not seem to have the ability to view banner content items in the default Collection

    HelloI can't get the banner content items to display in the form of options in the menu of the default Collection. I'm previewing the AEMM Preflight app on iOS. This is a feature that should work?The idea is to have elements of banner link on (think