+ Reply to Thread
Results 1 to 7 of 7
This is a discussion on Searching, general method within the Salesforce Coding Discussions forums, part of the Salesforce category; Hi all, We'll have around 300,000 products in our SF implementation, and
  1. #1
    BillKat is offline Junior Member
    Join Date
    Jun 2009
    Posts
    6

    Searching, general method

    Hi all,

    We'll have around 300,000 products in our SF implementation, and need to search those. At the moment they're in MySQL and we use fairly complex SQL including reg exp's and scoring and stuff.

    So more of a general question here - can we form such queries in PHP, have them run over multiple related objects, and get results back, with reasonable performance?
    I'm new to SF and haven't delved into SOQL and such things very much at all.

    Or what you do, in overview, to build a search...? I'm just after a rough idea of what basic method(s) to chase,

    cheers all.

    edit: We're on PHP 5.1.2

  2. #2
    jarrettcoggin is offline Junior Member
    Join Date
    Jul 2009
    Posts
    14
    I know that SOQL is a fairly limited subset of SQL, so you won't be able do certain types of joins and other things. I haven't looked into too much, but when I was working with certain data types, I couldn't join tables. I have a feeling there is some overhead limitation in play.

  3. #3
    BillKat is offline Junior Member
    Join Date
    Jun 2009
    Posts
    6
    Cheers. Sorry for delay replying, been away.
    I need to look hard at this. It just seems that SF won't give us the power we need, compared to a MySQL/PHP setup. Using SF would make sense in principle, but in practice ... not so sure.

  4. #4
    mike's Avatar
    mike is offline Administrator
    Join Date
    May 2007
    Location
    Wylie, Texas
    Posts
    607
    Blog Entries
    16
    Hate to say it but seems that staying with the MySQL application would be the best bet Bill!

    The SOQL is limited indeed and needs a lot of work

  5. #5
    BillKat is offline Junior Member
    Join Date
    Jun 2009
    Posts
    6
    Thanks Mike. Shame, that. Would make a lot of sense strategically but we live by our search so SOQL is a major issue. We build regexp's to create ranking as part of the content search. Off to dig deep into manuals and things ...
    cheers
    Bill

  6. #6
    sfisher is offline Junior Member
    Join Date
    Feb 2010
    Posts
    7

    Salesforce/Apex is not useful for large datasets

    If you were planning on using Apex at all, there is one other consideration when it comes to record sets of that size. As of the spring '10 release they have removed the restrictions on list/map/set/array sizes. However, they haven't removed heap size limitations. They also have very low limits on things like the number of SOQL and DML statements. Then, if you can get all of your data into a list or map you still have to worry about things like the number of lines of code they allow you to execute in a class or trigger while processing your data, and cpu utilization. Also, if you update the data in that big array and are ready to write it back, you might not be able to because of the limited batch size for DML statements like insert. The bottom line is that Apex is good for smallish data sets only.

  7. #7
    BillKat is offline Junior Member
    Join Date
    Jun 2009
    Posts
    6
    Thanks - that's very useful info.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO 3.5.2