Read-through/write-behind and queued deletes (and updates)
Hi,
If I am changing the state of objects in a cache and using the write-behind and read-through mechanism what happens when I have deleted or updated an object in the cache but the change has not yet been committed to the database?.
If I delete and object in the cache and the delete DB operation is being queued and during this time try and perform a get against the key for the object is the value read through from the database or is it ignored since the database delete is pending?
For updates I presume that the value in the cache will be used - as the value exists in the cache and a read-through from the database will not be triggered.
Can you clarify the behavior of Coherence under these circumstances, particularly that of a pending delete.
Thanks,
Dave
Hi Dave,
If I am changing the state of objects in a cache and
using the write-behind and read-through mechanism
what happens when I have deleted or updated an object
in the cache but the change has not yet been
committed to the database?.
If I delete and object in the cache and the delete DB
operation is being queued and during this time try
and perform a get against the key for the object is
the value read through from the database or is it
ignored since the database delete is pending?I seem to remember a forum post mentioning that the removes from a write-behind cache are performed synchronously (they are done as part of the backingMap.remove(key)) operation so even if there are were pending updates in the write-behind queue. If I remember correctly, then the above mentioned problem cannot happen.
>
For updates I presume that the value in the cache
will be used - as the value exists in the cache and a
read-through from the database will not be
triggered.
Exactly.
Best regards,
Robert
Similar Messages
-
TS3221 ipod touch not reading through my computer and downloaded new I tunes already help
ipod touch not reading through my computer and downloaded new I tunes still nothing help
Try here:
iOS: Device not recognized in iTunes for Windows -
What triggers a write-through/write-behind of entry processor changes?
What triggers a write-through/write-behind when a cache entry is modified by a custom entry processor (subclass of AbstractProcessor)? Is it simply the call to Entry.setValue() that triggers this or are entry modifications detected in some other way?
The reason I am asking is that in our Coherence cluster it looks like some entry modifications through entry processors have not triggered a write-behind, and I see no logical pattern as to which ones have and which ones haven't except that some specific entries are just never written to our database. We see from our logs that our implementation of the CacheStore.store() method is not called in these cases, and we also see that the cache entry has been modified successfully.
We are using Coherence 3.3 on a three machine cluster with 8 nodes on each machine, accessed from clients through a TCP extend proxy.
Regards,
Mikael Carlstedt
mBlox Inc
Edited by: user3849225 on 16-Sep-2010 04:57Hi Mikael
Calling setEntry() will result in a call to the CacheStore.store() method unless the value you are setting is the same as the existing entry value. If you are using writebehind then storeAll() will be called instead of store() if there are multiple entries waiting to be stored. Writebehind will also coelesce entries so that only the last entry for a given key will be stored.
What patch level are you using?
Paul
Edited by: pmackin on Sep 17, 2010 12:08 AM -
Help
WiFi only works close to router, DNS fail, Signal Bars present but Safari says no Internet, I've deleted and re-added through to reset and full reset, I had no problem with 4.3.2 only 4.3.3 both my iPhone4 and my iPad2. I am now beside router - no problem, but go 20 metres and WiFi becomes unstable. Only way to get either to work is disable WiFi either as a Hot Spot or turn it off and use the 3G connection. This worked with 4.3 & 4.3.2 what has gone wrong? I raised it at the Apple Store in Belfast as a problem but was told that there was no problem with Apple but I must have a faulty router - yeah - that's a lot of faulty routers, my home, my office, my holiday home, Starbucks, my friends house, my son's house. I've tried all the 'fixes'. I think it is a plan to force us to buy Apple RoutersTwo ways out, I added two more Belkin Access Points in my house in Spain so that I'm not more than 10Mtrs away, (Reinforced Concrete & solar glass 2010)
I bought 3 Apple Airports, 1 x Extreme and 2 x Express (1 as a hard wired AP, 1 as an extender) for my other house (Brick construction 1930's)
Everthing now works perfectly, as I said 'an apple plot', so either blast them with signal or visit your nearest apple store.
Early beta iOS5 (iPad) is also much inproved in Beta 3, I have not had any problem with 'Lion'
Happy hunting!
john -
How to Loop through another list and update a column with SharePoint Designer 2013 Workflow
Hi,
I am trying to get my head around the new 2013 Workflow Engine and SharePoint Designer 2013 Workflow Text-Based Designer.
I have two lists.
List A has 2 columns: Title, Completed (Yes/No)
List B has 3 columns: Title, LookupListATitle, Completed (Yes/No)
All the 2013 Workflow components have been installed and configured and I am selecting the 2013 Workflow option in SPD
I am trying to set off a 2013 Workflow when an item in List A is edited to Loop through List B and select items where the LookupListATitle column's value is equal to the Title value of the current item, and set the value of the Completed column for those
items in ListB to "Yes".
I have the Workflow configured like this:
Stage: Stage 1
IF Current Item:Completed equals Yes
Loop: 1
The contents of this loop will run repeatedly while: ListB:LookupListATitle equals Current Item: Title
Update item in ListB.
(The dialog options for the update item action as follows:
List: ListB
Field: Completed, Value: Yes
In the Find the List Item section
Field: LookupListATitle
Value: Current Item: Title)
Transition to stage
Go to End of Workflow
When I update an item in ListA and set its Completed column to Yes, I would expect the Workflow to find all the items in List B where the Lookup column is equal to ListA's Title (there are 2) and update their Completed column to Yes. But it doesn't work.
When I look at the Workflow Status it says the Internal Status is "Canceled" and the information pop up has the following alien language (and may be truncated):
RequestorId: 95f03b62-8956-ac14-c5cf-dc98c89c589c. Details: System.ArgumentException: Invalid JSON primitive: Item001. Parameter name: value at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ConvertStringToJsonNumber(String value) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ReadPrimitive(String
type, XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(Stream jsonStream, Byte[] jsonBytes)
at Microsoft.Activities.DynamicValue.ParseJson(String json) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)
Unfortunately I don't have access to the server, logs etc.
I would love to find some tutorials, or any books on SharePoint Designer 2013 in general and Workflows in particular but my searches haven't turned up much so far apart from a pre-release Beginning SharePoint Workflows which is in its very early stages and
not much help yet.
Can anyone give me some guidance on how to set up While Loops to iterate through a related list using SharePoint Designer 2013?
MarkHi,
I understand that you wanted to update the items in the other list (Participants) where the Course equals the Current Item.
You need to use “Call HTTP Web Service" action and “Build Dictionary" action to get the Maxid and then loop Participants to update the items.
You can follow the steps as below to achieve what you want:
Create a custom list named Courses, add columns: Title(Single line of text), Course ID(Single line of text), Course Finalised (Yes/No).
Create a custom list named Participants, add columns: Title(Single line of text), Course(Lookup), CourseFinalised (Yes/No).
Create workflow associated to Courses, start the workflow automatically when an item is created or changed.
Add conditions and actions:
The HTTP URL is set to
https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be order by Id and desc.
Then if Course Finalised is equal to Yes, the CourseFinalised of the associated items in Participants will be updated to Yes.
More information:
http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
I know this sounds backwards but I have been encountering many computer problems when I realized that Adobe Reader updates 9.1.2 and 9.1.3 plus Reader 9.1.3-CPSID_49522 were installed on my computer but the system requirements for these programs are above my computer's capability. i.e. I only have a Pentium III processor with 863MHz, 512Mg of RAM. I've already used the Add/Remove program to uninstall 9.1.2, but after reading many of the installation problems here I am afraid to proceed any further without advice since the update 9.1.3-CPSID_49522 says that it cannot be uninstalled. Can anyone tell me how to safely uninstall these so that I can reinstall Reader 8.1.3?
So Reader 9.1.2 is uninstalled, but the 9.1.3 update is still in Add/Remove Programs?
Use the Windows Installer CleanUp Utility to remove this part from the installed programs, then go ahead and install Reader 8.1. Note that the latest update for Reader 8.1 is 8.1.7. -
Read from database (Access) and update fields using MS ADODB
Hello,
I am trying to get records from database using MS ADODB._connection & ADODB._Recordset objects (from LabVIEW 6)
I can:
1. open connection (with ADODB._connection)
2. write into tables (with ADODB._command)
I can not: gets records and update fields using ADODB._connection & ADODB._Recordset.
I do not know:
1. how to connect between the connection that was opened and the recordset object
2. where I can write the SQL text as input to the recordset
Attached is DataBase.llb with DB_read.vi that display my steps.
Thanks.
Attachments:
DataBase.llb 40 KBTry this one, after updating the names for database and the table you want.
Let me know if it's working.
p.s.: if you have problems, it could be a different adodb version ... but the sequence of methods is the same
Attachments:
EditdatabaseMe.vi 57 KB -
IProblems=Can't read from/write to and Flipping through songs
Yeah I'm getting the error "Can't read from or write to.", and the iPod itself will turn on, but when I put it on a playlist or album, it starts flipping through all the songs before it even gets a chance to play part of the songs. What gives?
Please do a Restore - which erase all the music on your iPod.
http://www.apple.com/support/ipod/five_rs/ -
Reading from XML file and updating the table ????
Hi
I have package which reads the hier.XML file and does Update inserts into the 5 tables
i have table called MAIN_tbl with the column cur_date.
The package kicks if this cur_date is one day less than the hier.XML file DT.
Currently i m manually checking this date's to make sure the Main_tbl cur_date is n sync with
hier.XML file DT.
for example :- hier.xml file DT is "20091020" then main_table cur_date should be 10/19/2009
in order to kicks of the pakage.
what i m looking to do ??
compare the hier.xml DT with the main_table cur_date,
if cur_date is -1(Preivous day) of hier.xml DT then run hier_pkg(Package)
if not then update main_table cur_date to -1(previous day) of the hier.xml DATE
Then later write the above logic to update the main_table in a procedure, and
then call the package from the procedure.
below are the top few lines of the hier.XML file which is relevant to the one which we are trying to do
<?xml version = '1.0'?>
<HIER_POSTING num ="111" HIER_TYP="CD" DT="20091020" Global="Y">
FYI : The hier.XML file is located in UNIX space.
How do i accomplish this. any idea ????
Thank you so much in advance. For giving a thought on this problem!!!Any thought on this guys ???
Thanks!! -
How to read a txt file and update DB table
I have to read a table which has some entries in it as plain text file, then I should update my table if the table entries and the data in text file are NOT MATCHING o.w. keep the table entry as it is
It will helps to u
data : begin of t_temp occurs 0,
text(256),
end of t_temp.
data : s_file type string.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-S01.
PARAMETER: P_FILE LIKE RLGRAP-FILENAME.
SELECTION-SCREEN : END OF BLOCK B1.
clear s_file.
move p_file to s_file.
uploade SOURCE file to t_tab1
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = s_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = t_temp
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Text deleted by Moderator. Do NOT request points
Regards
Saimedha -
Reading data from ODS and update current layout?
Hi,
when i execute a planning folder, list of materials are displayed into the current layout.
Now, for each material, I need to bring quantity into the current layout which is (quantity) in an ODS. Initially, Quantity is blank in the infocube. Now, i need to populate Quantity field from ODS into the current layout.
Infocube Quantity field & ODS Quantity field are different but of the same type.
I'm wondering if it can be done using a user exit. Can we read ODS data from a function module and send it back to the current layout?
I appreciate sharing your ideas.
Message was edited by: hari143Hi Hari,
you could use a routine in the upload rule.
declaration area
Tables: /BIC/AODS00.
data: T_MATERIAL Type hashed table of /BIC/AODS00 with unique
key /BI0/0MATERIAL with header line.
Loading of internal Table
data: n type i.
describe table T_MATERIAL lines n.
if n = 0.
SELECT * FROM /BIC/AODS00 INTO TABLE T_MATERIAL.
endif.
finding MATERIAL
read table T_MATERIAL with table key
/BI0/0MATERIAL = COMM_STRUCTURE-/BI0/0MATERIAL.
if sy-subrc = 0.
Additional necessary Values
Values from Communication Structure
RESULT_TABLE-Object1 = COMM_STRUCTURE-Object1.
RESULT_TABLE-Object2 = COMM_STRUCTURE-Object2.
RESULT_TABLE-VTYPE = COMM_STRUCTURE-VTYPE.
RESULT_TABLE-VERSION = COMM_STRUCTURE-VERSION.
RESULT_TABLE-FISCYEAR = COMM_STRUCTURE-FISCYEAR.
RESULT_TABLE-FISCVARNT = COMM_STRUCTURE-FISCVARNT.
RESULT_TABLE-G_CWWCON = COMM_STRUCTURE-G_CWWCON.
RESULT_TABLE-/BIC/C7_ERGBER = COMM_STRUCTURE-/BIC/C7_ERGBER.
RESULT_TABLE-CO_AREA = COMM_STRUCTURE-CO_AREA.
RESULT_TABLE-SOURSYSTEM = COMM_STRUCTURE-SOURSYSTEM.
RESULT_TABLE-CURTYPE = COMM_STRUCTURE-CURTYPE.
RESULT_TABLE-CURRENCY = COMM_STRUCTURE-CURRENCY.
RESULT_TABLE-COUNTRY = COMM_STRUCTURE-COUNTRY.
RESULT_TABLE-G_CWWTEC = COMM_STRUCTURE-G_CWWTEC.
RESULT_TABLE-SALES_DIST = COMM_STRUCTURE-SALES_DIST.
Values from Hyperion Mapping ODS
RESULT_TABLE-G_CWWPT2 = T_HYP_ACCT-G_CWWPT2.
RESULT_TABLE-G_CWWPD3 = T_HYP_ACCT-G_CWWPD3.
RESULT_TABLE-G_CWWPD6 = T_HYP_ACCT-G_CWWPD6.
RESULT_TABLE-G_CWWNEW = T_HYP_ACCT-G_CWWNEW.
RESULT_TABLE-CUSTOMER = T_HYP_ACCT-/BIC/C7_DUMMY3.
RESULT_TABLE-SHIP_TO = T_HYP_ACCT-/BIC/C7_DUMMY3.
Not assigned Values
RESULT_TABLE-SALES_GRP = ''.
RESULT_TABLE-PROFIT_CTR = ''.
RESULT_TABLE-SALESORG = ''.
RESULT_TABLE-G_CWWPD1 = ''.
RESULT_TABLE-G_CWWPD4 = ''.
RESULT_TABLE-G_CWWPD5 = ''.
RESULT_TABLE-DISTR_CHAN = ''.
RESULT_TABLE-DIVISION = ''.
RESULT_TABLE-BUS_AREA = ''.
RESULT_TABLE-CUST_GROUP = ''.
RESULT_TABLE-/BIC/C7_HIE01 = ''.
RESULT_TABLE-SALESEMPLY = ''.
RESULT_TABLE-VALUATION = ''.
RESULT_TABLE-REC_TYPE = ''.
RESULT_TABLE-VAL_TYPE = ''.
RESULT_TABLE-G_CWWMRK = ''.
*Deriving values
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE1.
CONCATENATE COMM_STRUCTURE-FISCYEAR '001' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE2.
CONCATENATE COMM_STRUCTURE-FISCYEAR '002' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE3.
CONCATENATE COMM_STRUCTURE-FISCYEAR '003' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE4.
CONCATENATE COMM_STRUCTURE-FISCYEAR '004' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE5.
CONCATENATE COMM_STRUCTURE-FISCYEAR '005' into
RESULT_TABLE-FISCPER..
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE6.
CONCATENATE COMM_STRUCTURE-FISCYEAR '006' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE7.
CONCATENATE COMM_STRUCTURE-FISCYEAR '007' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE8.
CONCATENATE COMM_STRUCTURE-FISCYEAR '008' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALUE9.
CONCATENATE COMM_STRUCTURE-FISCYEAR '009' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALU10.
CONCATENATE COMM_STRUCTURE-FISCYEAR '010' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALU11.
CONCATENATE COMM_STRUCTURE-FISCYEAR '011' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RESULT_TABLE-G_AVVDAA = COMM_STRUCTURE-/BIC/C7_VALU12.
CONCATENATE COMM_STRUCTURE-FISCYEAR '012' into
RESULT_TABLE-FISCPER.
APPEND RESULT_TABLE.
RETURNCODE = 0.
ABORT = 0.
Else.
RETURNCODE = 1.
ABORT = 0.
endif.
ELSE.
RETURNCODE = 1.
ABORT = 0.
ENDIF. -
Looping through database columns and updating new
Hi new to SQL.
I have table_a with 2 columns called Column_1 and Column_2 - plus another table_b with Column_3. I want to read every entry in table_b Column_3
because it could be in table_a column_2 multiple times. If it is then I want to insert table_a column_1 value plus table_b Column_3 value into a new table
called table_c with these 2 new columns.
thanksA bulk insert (if you can work out the logic) should be more efficent (execute faster) than a cursor loop with an insert - BUT it might be easier to do the loop with the insert with less time to develop if performance isn't too bad. The bulk insert will avoid context switching between PL/SQL and SQL which can use a lot of resources.
The bulk insert could look something like (you will have to iron out the lookup logic yourself)
insert into new_table (col1, col2)
select col1, col2 + col3
from table_a a1, table b
where a1.key = b.key
and exists(
select 0
from table_a a2
where a2.col1 = a1.col1
group by col1
having count(col1) > 1
) -
Read a csv file and update sql db
I'm a newbie to C#. I've put together the code below - see two commented lines where the for loop starts. need advise as to the correct approach. you may insert pseudo
code in appropriate places. Thanks in advance.
Below is my code:
public class MailingConfirmationService
private SqlConnection _con = new SqlConnection(ConfigurationManager.AppSettings.Get("ConnectionString"));
public void ProcessFilesForMailingConfirmation()
//Process file(s)
IResource resourceFile = ResourceFactory.GetResourceFile(ResourceList.FileLocation);
DirectoryInfo dataFiles = new DirectoryInfo(resourceFile.GetString("filesourcelocation"));
if (dataFiles.GetFiles().Length > 0)
log.Info("File Processing started");
foreach (FileInfo dataFile in dataFiles.GetFiles("*.csv"))
log.Info("Processing Data File: " + dataFile.Name);
if (dataFile != null && dataFile.Name.Contains("IN"))
foreach (string sLine in File.ReadLines(dataFile))
_con.Open();
cmd.ExecuteNonQuery();
_con.Close();The foreach (string sLine in File.ReadLines(dataFile))
should be foreach (string sLine in File.ReadLines(dataFile.FullName))
its expecting path as param.
Check also for this example to enumerate files and their lines:
https://msdn.microsoft.com/en-us/library/dd383503%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
Fouad Roumieh -
How to loop through report records and update the record
I have a updateable report. And there is a select LOV in that report. How to loop though the report and save all the changes to the LOV.
1. Please tell us your first name and put it in your handle and/or profile to help us.
2. Explain your question in more detail, perhaps with an example and by showing code you already are using.
Scott -
How safe is it to pull the plug on the Apple TV after one hour of a flashing light?
No, sounds like when you dropped it an cracked the screen it may have also damaged the logic board or the repair person damaged a cable.
Maybe you are looking for
-
I am trying to find the serial number that is required by itunes for troubleshooting. But the trouble is, I don't know what it is. My computer is a HP (not a MAC). I have the itunes serial number. Before loosing my almost 5000 songs I was using an ol
-
Charges with Tmobile if you port a number. I was misinformed.
I was not informed by Verizon that when I opened this account that I would be charged a whole billing cycle with my prior cell provider which was Tmobile. In fact the people at Verizon where I purchased the plan told me I did not need to do anythin
-
Can't open Pagemaker files in InDesign Cs2
In the past i could usually open any Pagemaker 6 or 6.5 file in InDesign CS2. However this doesn't work anymore. I get a message o the screen telling me the file is corrupt and can't be opened. ( i can't really post the original message i get as it i
-
Hi All, I've a question about potential use case for Oracle spatial. Data structures are following: Clients Account (have a dimension of balance, can be zero or above zero) Client to account relationship E.g. Client C1 is a borrower to Account A1 (ba
-
Images become unproportional when publishing
Please see below. This image was much wider in muse and when published in became unproportional. And this is a button, on some pages it displays well and on others it loses its styling.