• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
fetch limit vs FrontBase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fetch limit vs FrontBase


  • Subject: fetch limit vs FrontBase
  • From: OC <email@hidden>
  • Date: Thu, 05 Mar 2015 14:16:43 +0100

Hello there,

unless I am missing something, it looks like with FrontBase, EOF/Wonder alas limits fetches application-side, e.g., my code

===
        def fs=...
        fs.fetchLimit=1
        ec.objectsWithFetchSpecification(fs)
===

with SQL logging switched on yields a result of

===
14:00:57.072 DEBUG  === Begin Internal Transaction
14:00:57.073 DEBUG  evaluateExpression: <com.webobjects.jdbcadaptor.FrontbasePlugIn$FrontbaseExpression: "SELECT t0."C_EDITED_AUCTION_ID", t0."C_CREATION_DATE", t0."C_CREATOR_ID", t0."C_IP_ADDRESS", t0."C_KIND", t0."C_MARKET_ID", t0."C_TITLE", t0."C_UID", t0."C_EDITED_USER_ID" FROM "T_AUDIT" t0 ORDER BY t0."C_CREATION_DATE" ASC" withBindings: >
14:00:57.592 DEBUG fetch canceled
14:00:57.592 DEBUG 1 row(s) processed
14:00:57.600 DEBUG  === Commit Internal Transaction
===

FrontBase, nevertheless, does support fetch limits with the TOP syntax, e.g., this SQL would work database-level:

===
SELECT TOP(1) t0."C_EDITED_AUCTION_ID", t0."C_CREATION_DATE", t0."C_CREATOR_ID", t0."C_IP_ADDRESS", t0."C_KIND", t0."C_MARKET_ID", t0."C_TITLE", t0."C_UID", t0."C_EDITED_USER_ID" FROM "T_AUDIT" t0 ORDER BY t0."C_CREATION_DATE" ASC
===

Is there anything I could do to fix that my applicatio(s) really use this and don't try to fetch the complete table?

Thanks,
OC


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: fetch limit vs FrontBase
      • From: Ramsey Gurley <email@hidden>
    • Re: fetch limit vs FrontBase
      • From: Patrick Middleton <email@hidden>
  • Prev by Date: Re: first version of deployment config scripts for Ubuntu/AWS
  • Next by Date: Re: fetch limit vs FrontBase
  • Previous by thread: Re: first version of deployment config scripts for Ubuntu/AWS
  • Next by thread: Re: fetch limit vs FrontBase
  • Index(es):
    • Date
    • Thread