Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Dev List »

[hibernate-dev] Forcing an optimize call after a purgeAll

John Griffin

2008-07-13

Replies: Find Java Web Hosting

Author LoginPost Reply
I would not force it, but I would allow it to happen probably by a config
option. As you know optimize causes a rewrite of the Lucene document numbers
and the user may not want to do that until THEY decide to do it. My 2 cents.

John G.

-----Original Message-----
From: hibernate-dev-bounces@(protected)
[mailto:hibernate-dev-bounces@(protected)
hibernate-dev-request@(protected)
Sent: Sunday, July 13, 2008 10:00 AM
To: hibernate-dev@(protected)
Subject: hibernate-dev Digest, Vol 25, Issue 13

Send hibernate-dev mailing list submissions to
 hibernate-dev@(protected)

To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.jboss.org/mailman/listinfo/hibernate-dev
or, via email, send a message with subject or body 'help' to
 hibernate-dev-request@(protected)

You can reach the person managing the list at
 hibernate-dev-owner@(protected)

When replying, please edit your Subject line so it is more specific
than "Re: Contents of hibernate-dev digest..."


Today's Topics:

 1. fullTextSession.purgeAll() (Emmanuel Bernard)
 2. Hibernate join problem (sylvain mouquet)


----------------------------------------------------------------------

Message: 1
Date: Sat, 12 Jul 2008 15:57:18 -0400
From: Emmanuel Bernard <emmanuel@(protected)>
Subject: [hibernate-dev] fullTextSession.purgeAll()
To: hibernate-dev@(protected)
Message-ID: <095C2590-2D16-453D-BF7A-6813612D88A6@(protected)>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Should we force an optimize call after a purgeAll operation? This
sounds sensible as it will reclaim unused space. OTOH it will likely
break opened readers.
--
Emmanuel Bernard
http://in.relation.to/Bloggers/Emmanuel | http://blog.emmanuelbernard.com
| http://twitter.com/emmanuelbernard
Hibernate Search in Action (http://is.gd/Dl1)



------------------------------

Message: 2
Date: Sun, 13 Jul 2008 12:20:36 +0200
From: "sylvain mouquet" <flashman22@(protected)>
Subject: [hibernate-dev] Hibernate join problem
To: hibernate-dev@(protected)
Message-ID:
 <6c528ebf0807130320n4a8bf728me1a0b7ffd9a3fe92@(protected)>
Content-Type: text/plain; charset="iso-8859-1"

Hi

I have not understand why you tell that you have 3 tables. HQL is based on
core model (mapping files) not on SQL tables.

You must write the query in hql and you must use objects in your core model
not id :

  select dm.id, dm.drug_name, sum(cds.qty_available)
    from drug_master dm
    left join cds_drugstore.drug_master cds
       and cds.cds_id = 1
       and cds.source_id = 'sourceName'
       and cds.source_type = 'c'
    group by dm.id
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/hibernate-dev/attachments/20080713/bc5c5c6c
/attachment-0001.html

------------------------------

_______________________________________________
hibernate-dev mailing list
hibernate-dev@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-dev


End of hibernate-dev Digest, Vol 25, Issue 13
*********************************************

_______________________________________________
hibernate-dev mailing list
hibernate-dev@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-dev
©2008 gg3721.com - Jax Systems, LLC, U.S.A.